Introduction: Arduino IR Robot

Picture of Arduino IR Robot

Hello guys today i gone a show you how to built your ir controlled robot..

you can control the robot using any tv remote.....

just follow the simple steps .....

Step 1: Material Requirements ...

Picture of Material Requirements ...

1.Arduino

2.LM293 Motor Driver Ic

3.250Rpm dc gare motors

4.12volt battery...

5.IR reciver.

6.TV remote.

7.Etc

Step 2: Connections

Picture of Connections

connect all components correctly ...make sure everything connected properly .

Step 3: Softweres

Picture of Softweres

Before you upload the program first u have to upload the arduino IR arduino ir library

visit this to download arduino ir library....

http://arcfn.com/files/IRremote.zip

after installing library ..The IR sensor's pins are attached to Arduino as so: (from left to right with the sensor's head facing you)

(Vout) Pin 1 to pin 11(Arduino) (GND) Pin 2 to GND(Arduino) (Vcc) Pin 3 to 5v(Arduino)

Now open up granola cereal, wait no, I meant serial monitor. Aim your remote at the sensor and press the POWER button. You should see a list of numbers show. Now you can see we got the numbers:

16753245, 4294967295,

4294967295 ,4294967295

Notice you if hold down whatever button you were pressing that the second number just repeats itself.

16753245, 4294967295, 4294967295,

4294967295 ,4294967295, 4294967295,

4294967295, 4294967295

Note what happens if you press another button

16736925, 4294967295 ,4294967295 ,

4294967295, 4294967295

You get a different first number, and the same second number! Obviously, we just need to use the first number. Try hitting different buttons on the remote. You will notice that each different button has a different first number.

So what you need to do is to open up serial monitor press each button, carefully recording the first number. For example: I press the power button and the mode button, so in my text editor program, I'll type,

Power button = 16753245 ,

Mode button = 16736925

Step 4: Program..

Once you get your tv remote code then upload this program...

just you change the code as per your remote code...shown below

if (results.value == 1086314535) // this is where you put in your IR remote button #

{

change the numbers as per your remote....and program it...

once i upload the video i will add the link ...

....

Comments

Odreys (author)2016-01-31

the code is not working...

satvik.gupta.129 (author)2015-06-09

Can it be operated with any tv remote

U need to decode your tv remote code..then place that codes in program simple

ibenkos (author)2014-11-13

So smart! Thanks for shearing :)

stannathani (author)ibenkos2015-05-25

Dude.....awesome sketch ,design, I jus got first trial motor running within fifteen minutes,,,,,, thanks a lot

About This Instructable

4,753views

47favorites

License:

Bio: ..my name is firazahmed and i am from Karnataka India i completed Information Technology
More by firazpeerjade:Pc controlled robotArduino IR RobotBluetooth RC car
Add instructable to: