Robotics Enrichment Program

Middle School Robotics Majors

EasyGoPiGo Documentation

Sessions 2, 3 & 4

Search & Rescue Mission

Navigate in a maze with lights blinking and sound blasting without hitting anything until locate a lost object (reach the end). Once located, take a picture.

LED Lights

LED Blinkers Code

LED Eyes Code


  1. Install the camera on a raspberri pi.
  2. Try out the program called TakingPhotos.ipynb located on gopigo under “Examples”


  1. Plug in the speaker
  2. Find a open-source tune
  3. Try it in the code
import pygame

# Play music

Distance Sensor

  1. Plugin the distance sensor
  2. Try it out in the code
import easygopigo3 as easy

gpg = easy.EasyGoPiGo3()
my_distance_sensor = gpg.init_distance_sensor() # init the distance sensor
steps = 100 # times
t = 0
while t < steps:
    dist = my_distance_sensor.read_inches()
    if dist > 20:
    t = t + 1

Session 1

Getting started with gopigo:

  1. Turn on battery and turn on the robot
  2. Go to
  3. Write Python code for robot movement
  4. Shut down the robot

Middle School Robotics Minors

Exploring gopigo:

  1. Turn on battery and turn on the robot
  2. Go to
  3. Drive the robot around using remote control (buttons)
  4. Go to Code -> Bloxter
  5. Write block-based code for robot movement
  6. Write Python code for robot movement
  7. Shut down the robot