loading

Hello friends,

In this Instructable you will learn how to make a IR remote(TV remote) car using Arduino and IR receiver TSOP.

This is every simple to build, eveything required are explained in simple steps. So proceed...

Step 1: Requirements

Hardware:

  • Car Chassi
  • 2 tyres
  • 2 100-300rpm motors
  • 1 caster wheel
  • IR Remote
  • Breadboard
  • TSOP(here i used 1838)
  • Arduino Uno board
  • Power supply(9-24V)-as per requirement
  • Male to Male wires

Software

  • Arduino

Step 2: Hardware Setup

Setup your car as shown in figure above or as you like to.

use double sided tap to fix breadboard and Arduino

Interesting:

To Check whether your remote is working or not ...

We can't see IR light but our mobile can...so see IR LED of remote through camera...you will find IR LED glowing

Step 3: Connections

Made Connections as shown in figure

L293D

  • We use it because maxiumum output from Arduino is 5V. But our motor require more than that --about 9V-32V, therefore this IC provide voltage ouput to our motors equal to the the voltage we supply to its 8th pin.
  • Here enable pins enable their respective side pins for example: EN pin 1 enables the pins 2,3,6,7. In same way En pin 9 dose.
  • provide about 5V to pin no. 1,9,16.
  • 16 pin no. require 5v for IC internal working.

Arduino

  • Don't input voltage more than 12v and less than 6v for its proper working.a
  • Paste double sided tape below Arduino to prevent shot circuiting of pins.

TSOP 1838

  • Pin diagram is shown in fig.

NOTE:keep all connections tight for proper working of circuit.

If any confusion feel free to write.

Step 4: Arduino Code

Before writing this code don't forget to import IRremote library file

To download click on the link:

https://drive.google.com/file/d/0B4eY-jcXDOueb1YyT...

In this code Hex code received will be different from different remote. So first note down the HEX code of buttons which you like to use, to do this just upload the code to arduino after making connections and press button of remote facing toward TSOP sensor.....you will see HEX code in your Serial Monitor...

Now you can made changes in given code according to your HEX code.

you can download code--.ino file ..available in this step.

#include <IRremote.h>//ir library ...you must import it... Go to Sketch->Include Library->Add .ZIP Library

int RECV_PIN = 9;//pin to which connect TSOP output pin int statusled = 13; IRrecv irrecv(RECV_PIN); decode_results results; void setup() { irrecv.enableIRIn(); pinMode(statusled,OUTPUT); pinMode(2,OUTPUT); pinMode(3,OUTPUT); pinMode(4,OUTPUT); pinMode(5,OUTPUT); digitalWrite(statusled,LOW); Serial.begin(9600); } void loop() { if (irrecv.decode(&results)) { digitalWrite(statusled,HIGH); Serial.println(results.value, HEX);//This will show HEX code from Remote in Serial Monitor delay(100); irrecv.resume(); if (results.value == 0x1FED827) // type your remote FORWARD robot control button hex value. { digitalWrite(2, HIGH); digitalWrite(3, LOW); digitalWrite(4, HIGH); digitalWrite(5, LOW); } else if(results.value == 0x1FEF00F)// type your remote BACK robot control button hex value. { digitalWrite(2, LOW); digitalWrite(3, HIGH); digitalWrite(4, LOW); digitalWrite(5,HIGH); } else if(results.value == 0x1FE708F)// type your remote RIGHT robot control button hex value. { digitalWrite(2, HIGH); digitalWrite(3, LOW); digitalWrite(4, LOW); digitalWrite(5, LOW); } else if(results.value == 0x1FE30CF)// type your remote LEFT robot control button hex value. { digitalWrite(2, LOW); digitalWrite(3, LOW); digitalWrite(4, HIGH); digitalWrite(5, LOW); } else if(results.value == 0x1FEB04F)// type your remote STOP robot control button hex value. { digitalWrite(2, LOW); digitalWrite(3, LOW); digitalWrite(4, LOW); digitalWrite(5, LOW);; } } }

Step 5: Last

After uploading code and making connections..

now you are free to control your car from TV remote..

Range of controlling is about 1-2metres

If like to build Mobile control car follow the link:

https://www.instructables.com/id/Mobile-Controlled-Car-Using-ArduinoBluetooth-Modul/

Thank You.

About This Instructable

1,854views

26favorites

License:

Bio: Likes to build circuits, electronics project in free time... Also love coding...have knowledge of JAVA, C, C++, Arduino, HTML, Android Studio, LabView, CoDeSys, OrCAD.....
More by Kitu Singh:Smart Solar Lamp Mobile control LED(Arduino+Bluetooth module) App for Mobile control LED(Arduino+Bluetooth module) 
Add instructable to: