Arduino Logobot

by C.V.Hariharan in Circuits > Robots

1719 Views, 11 Favorites, 0 Comments

Arduino Logobot

IMG_20151122_211314.jpg

Hello there! When Arduino released its robot I was particularly fascinated by the logobot sketch. I thought, logobot could be used to teach children about robotics and programming and they would also have a lot of fun with the robot. So I decided to build my own version of the logobot.

Materials

5651e57967400c9fbd000975.jpeg
5651e52650e1b6cd520000e0.jpeg
IMG_20151121_203020-01.jpeg
IMG_20151121_202749-01.jpeg

This build requires:

  1. Arduino
  2. L293D motor driver (You can also use a shield but you may have to tweak the code a little)
  3. 5 pushbuttons
  4. Perfboard / Breadboard
  5. Motors and wheels (You can also get a ready-made chassis that can be really helpful)
  6. Wires
  7. 2 x 9 v batteries (one for Arduino and one for the motors)

Switches and Circuit

logobot_1.jpg

Connect the switches according to the circuit diagram. Use the 5v power supply from the Arduino to power the switches. Next connect the motors to the motor driver. The terminals will be labelled. Do not forget to connect the enable pins to a positive voltage. You can connect the enable pins to the battery powering the motors or the 5v power supply from the Arduino. I would go with the first one.

Programming the Arduino

IMG_20151121_202749-01.jpeg

Download the Arduino code and upload it to the Arduino. Make sure that you have made all the necessary connections before testing the robot. For the first time, connect the Arduino to the computer and use the Serial Monitor to debug if the robot doesn't work. If the robot works as it should, use an external power supply for the Arduino.

Downloads

How It Works?

IMG_20151121_203040.jpg

The program is simple. Each key press is assigned a unique number and every time a particular key is pressed, the corresponding number is stored in an array. When the execute button is pressed the array is read and the numbers are converted into corresponding movements. Feel free to comment and ask doubts.