Gesture-Controlled Robot – Sensor

Lesson Details
What is an accelerometer and how to read a Smartphone’s accelerometer on evive using Dabble? How does a gesture-controlled robot work?


  • Creating a script to display the accelerometer data on evive display.
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:
    • Circuitry and testing the circuit.
    • Programming of the robot.
      • Reading sensor values and printing it on TFT display.

Material Required

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

Lesson Outline

Introduction and Demonstration of the robot - 10 minutes
Circuitry - 10 minutes
  • Connect the motors to evive.
  • Connect the Bluetooth module to evive.
Printing sensor values on evive display - 35 minutes
  • Make the script to print the accelerometer X and accelerometer Y value on TFT Display.
Wrapping up the lesson - 5 minutes

Download Lesson Resources

Next Lessons