MultiTasking Robot

by Dimas Sheldon in Circuits > Arduino

12131 Views, 110 Favorites, 0 Comments

MultiTasking Robot

Manual Control Robot
Android+Arduino
Obstacle Avoider Mode
P_20150723_152041.jpg
P_20150724_203950.jpg
MultiTasking Robot

Bluetooth-controlled robot, doing some task based on commands: Manual control (RC Mode), Autonomous (Obstacle avoider Mode), shows a text on LCD, also control the Robot's speed.

Parts Needed

P_20150723_102149.jpg
P_20150723_101330.jpg
P_20150723_102306.jpg
P_20150723_101626.jpg

You will need:

  1. Arduino Uno/Genuino
  2. Motor Driver (I'm using 2A Motor Shield from DFRobot)
  3. Three of Ultrasonic sensors HC-SR04
  4. HC-05 Bluetooth module
  5. 16x2 LCD with I2C
  6. Jumper wires
  7. Mini-breadboard
  8. 9V battery for Arduino, 7.5-12 V battery pack for motors (custom)
  9. Robot chassis (I'm using DFRobot Devastator Tank Mobile Platform)
  10. Soldering tools
  11. Any tools that may help you work easily
  12. Creativity

Next...

Modifying Some Parts

P_20150723_104147.jpg
FSKAI30HMMFE6UO.LARGE.jpg
IICLCD3-600x600.jpg

Here, you need to modify some parts, the HC-05 bluetooth module and the LCD. You have to make a voltage divider for the bluetooth module and add an I2C module to the LCD.

Build It..

P_20150723_103403.jpg
P_20150723_104021.jpg
P_20150723_100950.jpg
P_20150723_111736.jpg

Attach your arduino and parts in their proper place, based on your creativity. For good looking, neat the jumper wires.

Wiring Diagram & Programming

MultiPurpose Robot_bb.jpg
P_20150724_140340.jpg

Follow this wiring diagram to hook up the parts. Instructions also included in the program. Install the libraries then upload the program. Make sure to release the HC-05 RX TX pins from the Arduino pins before uploading.

Play With Your Robot

TT.PNG
TTE.PNG
Screenshot_2015-07-24-19-52-56.jpg
Screenshot_2015-07-24-19-53-11.jpg

To control Robot from PC, use TeraTerm software. Software download available here: Tera Term

To control over Android, you can use this app: Arduino Bluetooth Controller

Pair your HC-05 with your device first. When it is asking for password, enter 1234 (default HC-05's password).

Then:

If you use TeraTerm: open the software, click 'Serial', choose your bluetooth port, play.

If you use Android, open the app > Proceed > choose HC-05 > open the Controller Mode > set your controller keys (Set Commands), play. You can also use the Vehicle Mode, set the controller keys too.

These commands based on the codes:

w : Move Forward

a: go Left

s: Move Backward

d: go Right

q: Stop

e: decrease speed

r: increase speed

x: LED ON

z: LED OFF

1: Obstacle Avoider Mode

2: Showing the text on LCD

0: Clear n turn off the LCD backlight

You can modify the codes for another commands. If you fail once, don't give up! That's what make this fun. Do troubleshoots. Hope you make it!