Hercules: The Motion Controlled Android Robot

 by Jayvis Vineet Gonsalves
Contest WinnerFeatured
When I was in the 8th grade, I was intrigued while playing the motion games on Nokia 5800. I was thrilled, how I could control the racing car by only tilting the phone. I used to dream of making this same car in the real world. 

Now, in 11th  grade ( Age 17) having got an Arduino Uno and learnt how to program it, I was able to build my "Hercules" robot. 

Hercules is the name given to my motion controlled robot because of its immense torque and speed. The robot is controlled by an android phone through bluetooth. The advantage of using an android phone to control the robot, is that I can use any android phone to control it and am not confined to using only one controller for the robot. The use of an android phone as a controller, significantly reduces the cost of the project, since money is not spent in building a controller for the robot.    

The Hercules was built for the 2012 Indian Institute of Technology, Mumbai's IIT Techfest ( Asia's largest tech festival ). The objective was to build a motion controlled robot that could race around an obstacle track.
 
Remove these adsRemove these ads by Signing Up

Step 1: Step 1: Parts Needed:

For making this robot you need the following parts :

         Supplies :

1.     Arduino Uno. 
2.     
Bluetooth Transceiver Chip ( Serial Bluetooth Modem).
3.     L298 Dual H-Bridge IC.
4.     4pcs of Geared Motor (Specifications depend on application of the robot).
5.     4pcs of wheels.
6.     12v 1Ah SLA Battery.
7.     Base plate for the robot components.
8.     3cms x 7cms PCB.
9.     4pcs of Project Enclosure / boxes .
10.   SPST Switch.
11.   Male Header Pins (Straight).
12.   Wire.
13.   Small Screws and nuts.
14.   Resistors ( 1pc 10K ohms and 1pc 20k ohms).
15.   Android phone.


            Tools :

1.   Soldering iron.
2.   Solder.
3.   Soldering wax.
4.   Drill.
     


1-40 of 87Next »
priyadarshu says: May 3, 2013. 3:53 AM
i built the robot as u said but it s not working. bluetooth s getting paired with my mobile but the robot s not moving so pls help me i dont know what to do.pls reply me as early as possible
pbzhedugova says: Apr 11, 2013. 8:15 AM
Thank you for a fast reply.
Ok, got it about the disconnected blth module. About the second problem: i guess something might be wrong with the blth module itself. I tried to detach it from the system and power just with the 3v battery.
The phone still doesn't see it. Im scanning for bluetooth devices in settings.
P1110129.JPGP1110130.JPG
pbzhedugova says: Apr 11, 2013. 12:39 AM
Hi Jayvis! I made this robot according to your instructions but I now face some problems.
1)The code doesn't want to upload. It uploads only if I detach all the wires from arduino.
2)My android phone doesn't see the robot by bluetooth

What can I do here?

When I turn on the switch all the lights turn on. On Arduino it's "on" and "L". Bluetooth light is blinking.
Jayvis Vineet Gonsalves (author) in reply to pbzhedugovaApr 11, 2013. 3:20 AM
Hi,
I have written somewhere in this instructable that the code must be uploaded only when the bluetooth module is disconnected from the Arduino or else the bluetooth module could get damaged.
Regarding the connection issue, you must first pair with the robot through bluetooth settings menu in the android phone. Then you must connect the robot with the phone using the Amarino Software. Hope this helps!
janandh says: Nov 5, 2011. 9:17 PM
can i get any android apps for both motion controll and video receiving if so plz reply
janandh says: Mar 11, 2013. 8:33 AM
what are all the applications of it in real time problem if you have any idea plz tell me
janandh says: Mar 11, 2013. 8:27 AM
i have an error while compiling your program.'meetandroid does not a name type'this error which i had faced.eventhough i ve imported library from amarino im facing this error.what can i do?plz reply me soon..
maniza2204 says: Mar 4, 2013. 10:51 PM
can i use 12v DC motor which has lower than 500 rpm ? plz help
i cant find any at nearest shop in my town.
maniza2204 says: Feb 21, 2013. 11:07 PM
hi jayvis, i was so thrilled at first when trying to built the same robot like u did/
but im having problem with the programme, help me plezz
it says :
In file included from sketch_feb22a.cpp:1:
C:\Users\LaPtOp PuNoH\Desktop\mat\arduino-1.0\libraries\MeetAndroid/MeetAndroid.h:104: error: conflicting return type specified for 'virtual void MeetAndroid::write(uint8_t)'
C:\Users\LaPtOp PuNoH\Desktop\mat\arduino-1.0\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)'
bhar92 says: Jul 13, 2012. 10:31 AM
Hey Jayvis! Your robot inspired our first robot, the Mastadon! http://blimp12.blogspot.in/2012/07/mastodon-10-and-diy-dinner.html
Thank you so much!
Jayvis Vineet Gonsalves (author) in reply to bhar92Jul 26, 2012. 4:41 AM
I'm glad hearing about how you replicated the robot. Enjoy with it now. You can customize it in a number of ways to suit different purposes. All the best !! Btw where do you live in India ?
bhar92 in reply to Jayvis Vineet GonsalvesJul 26, 2012. 5:56 AM
I live in Bangalore, and you?
Jayvis Vineet Gonsalves (author) in reply to bhar92Jul 31, 2012. 11:10 AM
I live in Mumbai
Pranavthegreat in reply to Jayvis Vineet GonsalvesAug 10, 2012. 3:45 AM
hey jayvis i liked ur robot and i m too from mumbai


love to so many Indians on instructables !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Jayvis Vineet Gonsalves (author) in reply to PranavthegreatAug 15, 2012. 10:25 AM
Every sixth person on this Earth is an Indian, so you could somewhat expect the same proportion here to. Hehe
Pranavthegreat in reply to Jayvis Vineet GonsalvesJan 19, 2013. 2:25 AM
can u tell me frm where did u get the blue tooth module and instead of L298 can i use l293D??
Jayvis Vineet Gonsalves (author) in reply to PranavthegreatJan 19, 2013. 8:43 AM
The L298 is quite common and can be purchased from Lamington Road. As for the Bluetooth Module, I ordered it from Ebay.com (Not Ebay.in)
Pranavthegreat in reply to Jayvis Vineet GonsalvesJan 21, 2013. 6:51 AM
can i get a bluetooth module frm lamington rod?
and while a upload the sketch i get this error
In file included from sketch_jan19a.cpp:1:
C:\Documents and Settings\PRANAV JAIN\My Documents\arduino-1.0.1\libraries\MeetAndroid/MeetAndroid.h:104: error: conflicting return type specified for 'virtual void MeetAndroid::write(uint8_t)'
C:\Documents and Settings\PRANAV JAIN\My Documents\arduino-1.0.1\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t what should i do?
Jayvis Vineet Gonsalves (author) in reply to PranavthegreatJan 21, 2013. 7:45 AM
I do not know about the error as I am able to compile the program. Have you downloaded the Amarino plugin?

And about the bluetooth module, try your luck at Lamington but expect it to be overpriced if available.
Pranavthegreat in reply to Jayvis Vineet GonsalvesJan 23, 2013. 7:16 AM
which module did u buy frm ebay i m geting AUBTM20 with RS232 frm lamington road will it work???

Pranavthegreat in reply to Jayvis Vineet GonsalvesJan 21, 2013. 8:34 AM
What did u when u compile the sketch i.installed the amaranio libaray on the computer then wat should I do
Pranavthegreat in reply to PranavthegreatJan 22, 2013. 8:24 AM
does it need any plugin on computer????
Pranavthegreat says: Jan 19, 2013. 2:55 AM
hey i m trying verify the sketch this error cums

In file included from sketch_jan19a.cpp:1:
C:\Documents and Settings\PRANAV JAIN\My Documents\arduino-1.0.1\libraries\MeetAndroid/MeetAndroid.h:104: error: conflicting return type specified for 'virtual void MeetAndroid::write(uint8_t)'
C:\Documents and Settings\PRANAV JAIN\My Documents\arduino-1.0.1\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t
apoorveinstein says: Oct 4, 2012. 10:42 AM
Hi...
I am experiencing a problem regarding your code...
It says MeetAndroid is not a type???
What to do??
apoorveinstein in reply to apoorveinsteinOct 14, 2012. 6:22 AM
This problem was resolved but i m experiencing another problem...
I remade your project but failed to get serial data from the bluetooth module...
Tell me what to do???
But i m able to send and receive serial data through arduino serial monitor...
Jayvis Vineet Gonsalves (author) in reply to apoorveinsteinOct 5, 2012. 11:16 AM
Hey did you download the Amarino library? Cause I am able to compile the program and it works flawlessly.
Jayvis Vineet Gonsalves (author) in reply to Jayvis Vineet GonsalvesOct 5, 2012. 11:18 AM
If the problem still persists, try to copy the program from this instructable once again. It could be that you may have missed out a line or so in copying it earlier.
aftabsaraz says: Sep 28, 2012. 11:12 PM
Hi
I have created a project same like yours, but by tearing a RC car's circuit and putting my own. I used L298 motor driver, HC-05 bluetooth transreceiver, and two 5v motors with arduino uno. I use four 1.5v battery cells (becomes 6v) for motors and a 9v battery to power the arduino.

The problem:
It does not get much speed that I desired. When I try to turn the car it gets slower and stops, because two motors work together to take a turn. Any help, suggestions, from your side?

Thanks.
Jayvis Vineet Gonsalves (author) in reply to aftabsarazSep 29, 2012. 7:36 AM
Simple use a bigger battery or more number of AA batteries
aftabsaraz in reply to Jayvis Vineet GonsalvesSep 29, 2012. 11:26 AM
won't it effect the motor driver? Can I use 12v?
Jayvis Vineet Gonsalves (author) in reply to aftabsarazOct 1, 2012. 7:52 AM
Try using 4pcs of fresh new batteries to power the motors. If it still does not work then increase the voltage.
apoorveinstein says: Jun 28, 2012. 9:31 AM
Dude i m vry much inspired by ur project n like to make my own Hercules..
Wud u tell me hw much did it cost(INR) u??
Jayvis Vineet Gonsalves (author) in reply to apoorveinsteinJun 29, 2012. 6:40 AM
The robot costs around Rs.3000 . I ordered the parts off Ebay USA
apoorveinstein in reply to Jayvis Vineet GonsalvesJun 29, 2012. 8:53 AM
Thanx...
apoorveinstein in reply to apoorveinsteinJun 28, 2012. 9:37 AM
Also i want to kno from where did u buy the bluetooth module??
apoorveinstein in reply to apoorveinsteinJun 28, 2012. 9:37 AM
Also i want to kno from where did u buy the bluetooth module??
apoorveinstein in reply to apoorveinsteinJun 28, 2012. 9:37 AM
Also i want to kno from where did u buy the bluetooth module??
electrolics says: Jun 9, 2012. 10:55 PM
hello

i really like your project and tried to build it, but didn't work, don't know what went wrong,

in the pics i see you have connected wires to analog outputs of the arduino too,

but h bridge wires go in digital outputs only, Am i right?

may be i am missing something

kindly let me know

thanks & regards
Jayvis Vineet Gonsalves (author) in reply to electrolicsJun 12, 2012. 11:19 AM
Hello Electrolics sorry for my late reply. I have connected wires to the analog pins so that I can connect various sensors to the robot. None of the H-Bridge wires nor Bluetooth Module wires are connected to the Analog Pins.

To answer your second question, there are two ways in which you can use a Wii remote.
1. Using your robot in master mode and connecting the Wii remote as slave.
2. Connecting your Wii remote to your computer, then writing a program for the computer to convert the data from the Wii remote to the commands for running the robot.

All the best with your project !!
electrolics says: Jun 5, 2012. 3:51 AM
Hello,

I like your project, but i want to use wiimote to control the robot, can it be done? i got no android.
rest of the stuff is with me including bc417143 Bluetooth module

kindly help me out
1-40 of 87Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!