Remote Controlled Robot Using Arduino and T.V. Remote
This remote controlled car can be moved around using practically any kind of remote such as TV,AC etc.
It makes use of the fact that the remote emits IR(infrared).
This property is made use of by using an IR receiver,which is a very cheap sensor.
In this instructable you will learn how to
- Interface IR receiver to Arduino.
- Interface 2 motors to Arduino.
- Combine the above 2 setups.
Note:This remote controlled car has a disadvantage of not work outside in sunlight.
Note:For those of you looking to download all the code, schematics and other pictures at one place and would prefer to use GitHub ,look at the end of this instructable.
Step 1: Materials Required
- Arduino Uno and USB cable
- Arduino software
- 100rpm dc motors
- IR receiver(SM0038 or TSOP1738)
- L293D motor driver IC
- Jumper wires
- Chassis and wheels
- 9V batteries(2 nos)
- Battery clips
Total cost of materials:Rs 600=$ 9(excluding cost of Arduino)
Step 2: Assembly
Fix the wheels to the chassis.
Attach the 2 motors to the back wheels and use dummies for the front.
Make holes on the chassis and fix Arduino using screws.
Fix the breadboard by using the double sided tape provided on it.
Mount the L293D on the breadboard with notch facing front.
Step 3: IR Receiver Connections
Facing the notch on the receiver, the connections from left to right are
- left pin-ground.
- middle pin-5V.
- right pin-digital pin 6 on Arduino.
Refer to the schematic for more details.
Step 4: Saving the IR Library
Go to the following link-
Save the files within a folder named IRremote and save the folder in the libraries directory of your Arduino IDE i.e. arduino-1.0.6>libraries folder as IRremote.
Step 5: Finding Hexadecimal Values of Remote Keys
1.Upload the given code into the Arduino
2.Open the serial monitor.
3.Press different remote keys and obtain their hexadecimal values.(Note that the values will not be obtained with 0x which represents hexadecimal also some values are obtained in middle like FFFFFFFF, ignore them).
Here I have obtained the values of the front,back,left,right and middle keys which are
These values of these buttons are mapped to move front,move back,move left,move right and brake respectively.