Gesture Controlled Robot – Programming

Lesson Details
How to program a gesture-controlled robot that moves based on the movement of a Smartphone?


  • Programming the robot according to the logic.
Classroom Bundle Used: STEM Classroom Bundle, STEM Mini Classroom Bundle
Download Resources

Lesson Overview

  • In this activity, students will make a smartphone gesture-controlled robot whose motion will be controlled when you tilt the smartphone.
    • If the smartphone is tilted forward – the robot will move forward.
    • If the smartphone is tilted backward- the robot will move backward.
    • If the smartphone is tilted left – the robot will turn left.
    • If the smartphone is tilted right – the robot will turn right.
    • If the smartphone is flat or parallel to the ground – the robot should be at rest.
  • During the activity, students will go through the following activities:
    • Logic
    • Programming of the robot.
      • Controlling robot using gestures.
    • Debugging of the robot.

Material Required

1 set of the following material per group of 3-5 students:

Lesson Outline

Logic - 10 minutes

Discuss the logic behind the programming of the robot, like when should the robot do the following things:

  • Move forward
  • Move backward
  • Turn left
  • Turn right
  • Stop
Programming the robot - 30 minutes
Debugging and playing with the robot - 20 minutes

Download Lesson Resources

Next Lessons