Find all your DIY electronics in the MakerShed. 3D Printing, Kits, Arduino, Raspberry Pi, Books & more!

Make: Projects

Add a Demo Button to Your TurtleBot

This tutorial will show you how to add a button to your TurtleBot.

Add a Demo Button to Your TurtleBot

This tutorial shows how to connect a button to the TurtleBot power and gyro board.

Steps

Step #1:

PrevNext
Add a Demo Button to Your TurtleBot
  • You will need:
  • Giant button
  • 10K Resistor
  • Wires
  • TurtleBot Power Board
  • A TurtleBot might be of use as well

Step #2:

PrevNext
Add a Demo Button to Your TurtleBotAdd a Demo Button to Your TurtleBotAdd a Demo Button to Your TurtleBot

Solder one end of the 10K resistor to Pin 8 (5V) on the DB-25 connector of the TurtleBot power board.

Step #3:

PrevNext
Add a Demo Button to Your TurtleBot
  • Solder one of the wires onto Pin 14 (Ground) of the DB-25 connector on TurtleBot Power Board. (white wire in picture)
  • Solder the other wire onto Pin 6 (Digital Input 3) of the DB-25 connector on TurtleBot Power Board. (green wire in picture).
  • Connect the other end of the 10K resistor to the wire attached to Pin 6. (green wire in picture)

Step #4:

PrevNext
Add a Demo Button to Your TurtleBot

Solder the two wires onto the switch.

Step #5:

PrevNext
Add a Demo Button to Your TurtleBot
  • Attach the button to your robot.
  • Try out this script on your ROS-configured TurtleBot laptop. This script makes the robot drive forward, pressing the button toggles motion on or off.