Basic Robot Control

Site: GoLabs
Course: Basic Robot Control
Book: Basic Robot Control
Printed by: Guest user
Date: Tuesday, 16 April 2024, 12:29 PM

Description

Learn how to control GoPiGo with simple keyboard commands.

1. Introduction

This project shows how to control the GoPiGo with simple keyboard commands. You can try out his example to see how the GoPiGo works and adapt this program to make it work with you own projects.

2. Hardware Needed


3. Setting Up The GoPiGo

Make sure that the GoPiGo is set up properly and you have the updated software and firmware. If you are not sure about this, follow the guide here.

If the GoPiGo is properly set up, connect to the GoPiGo via SSH or VNC and open terminal.


4. Running the Example

1. Go to the Basic Robot Control folder:

5. Running the Example

2. Start the basic_robot_control.py example:

6. Controlling the GoPiGo

Use the following keys to control the GoPiGo:

          • w – Move GoPiGo Robot Forward
          • a – Turn GoPiGo Robot Left
          • d – Turn GoPiGo Robot Right
          • s – Move GoPiGo Robot Backward
          • t – Increase Speed
          • g – Decrease Speed
          • x – Stop GoPiGo Robot
          • z – Exit

You can easily adapt this example to any project that you have in mind.

7. Questions?

Have a question? Go check out our support page here or post it on the forums here.