IR Remote Control Car Using Arduino and TSOP1738 Sensor

Remote control automation is very frequent in those days. We can see remote control appliances, locks, garage doors etc. The term RC has a dual meaning. One is remote control and the other is radio control. The remote control car uses an IR sensor. In this project, we are going to build an IR Remote Control Car using Arduino.

Here we use a three-pin infrared receiver to build this project. Also, we will show you how to control this car with all types of IR remotes. This IR remote control car can be operated wirelessly through remote keys. To do this, we use the TSOP1738 three-pin infrared receiver and Arduino Nano.

Must Read Top Robotics Projects for Engineering Students

Principle Behind IR Remote Control Car

The principle behind this project is to send infrared modulated signals to the IR receiver. TSOP1738 works here as an infrared receiver. The TSOP1738 IR receiver receives the modulated signal and demodulates it into the Arduino. Then the demodulated signal has some noise that should be filtered. After this, the input signal is extracted. The main part of this project is decoding the remote keys in hex form.

Project

Circuit Diagrams

IR Remote Control Car Circuit Diagram
IR Remote Control Car Circuit Diagram

Components Required

  • Arduino Nano
  • TSOP1738 IR Receiver
  • L298N Motor Driver
  • Gear Motors (x2)
  • Wheel (x2)
  • 3.7V Li-Ion Battery (x2)
  • Li-Ion Battery holder
  • Chassis

About Parts of IR Remote Control Car

TSOP1738 IR Receiver

This is a type of IR receiver which has an inbuilt amplifier. It acts as a switch and converter. TSOP1738 has three pins, which are GND, VSS, Output. Its operating frequency is 38KHz.

L298N Motor Driver

L298N is a dual channel H-bridge motor driver. It can control four DC motors at the same time. The range of the voltage that can be used with it is 5V to 35V.

PCB Design

For removing messy wiring and give a clean look, I designed a PCB prototype for this project. It is also helpful for troubleshooting that runs great without any errors. To design this PCB board, I used EasyEDA as it is too easy to use. For ordering PCB for this, I prefer PCBWay.

Gerber file for IR Remote Control Car Gerber.

You can view the Gerber file from here Gerber File Viewer.

PCB View

IR Remote Control Car 2D View
2D View
IR Remote Control Car 3D View
3D View

Order PCB From PCBWay

There are so many forums or communities for electronics online in today’s technical world, and one of the famous ones for PCB manufacturing is the PCBWay. PCBWay is a place that brings manufacturers and customers together. They have more than a decade of experience in this field of fabrication and prototyping and assembling of PCBs. PCBWay have proved their focus to their customers’ needs in terms of cost-effectiveness, delivery, and quality.

How PCB Manufacturing Process Done in PCBWay

Standard quality for any product needs to be maintained using some parameters. PCBWay gives that opportunity by quality control in designing and manufacturing. At first, they ensure accuracy, clarity, validity of the PCB files that we sent to them.

Then all the boards will go through the most stringent tests other than the basic visual check. They adopt most of the testing and inspecting equipment used in the industry, such as Flying Probe Tester, X-Ray Inspection Machine, Automated Optical Inspection (AOI) Machine. PCBWay are having 50+ new engineers on the daily basis around the world using PCBs for their work, who trust for their reliable quality. They produce high-quality pink, orange, grey, even transparent solder mask. Moreover, according to people needs, they can also provide Black core PCB. Check it out for a High-Quality PCB solder mask. There are some pictures below of the new colours of solder musks.

Features of PCBWay

PCB Prototyping & Manufacturing: PCBWay produces FR-4 and Aluminum boards and advanced PCBs like Rogers, HDI, Flexible and Rigid-Flex boards, at a very reasonable price. Just check this Instant Quote to order premium PCBs for your hobby projects.

PCB Assembly: It not only offers PCB Prototyping but also offers PCB Assembly service. You can order a full PCB board with attached components by uploading your file. SMT & THT assembly starts from only 30$ including free stencil and worldwide shipping. The components can be sourced and provided by PCBWay, or by clients themselves.

Open Source Community: It not only offers PCB Prototype & Assembly service but also gives opportunities to students for sponsorships. I think this is so great. They feature their projects on the website also.

3D Printing & CNC: It also produces Rapid Prototyping like 3D printing, CNC Machining, Sheet Metal Fabrication, and Injection Molding. The quality of the product is too premium and reliable. And also the best part is that you will receive your order within a minimum of 3 days.

PCBWay Store: More boutique gift modules are waiting for you to discover, giving your creativity wings. You can order all types of electronic equipment, components and many more with exciting offers. Go with the link and buy your needs, PCBWay Store.

Services: PCBWay offers great servicing of their products. It takes only 3 to 15 days according to courier service to deliver your products. Also, it has a live support facility. Whenever you have any problems, you can always reach a live customer service person to respond to your emails or messages. They have the “Return and Refund” principle, for every unusable board caused by PCBWay, they will rebuild and refund the order soon.

Guide for Ordering PCB From PCBWay

Decoding Method of Remote keys Using TSOP1738 IR Receiver

IR Key Decoding Circuit Diagram
IR Key Decoding Circuit Diagram

Connect the digital pin 2 of the Arduino with the output pin of TSOP1738. Then you get the IR remote signal. Now download the IR Remote library and go to the Arduino IDE → Sketch → Include Library → Add.ZIP Library. Then choose the right library and click that’s it. After uploading to code to Arduino, open the 9600 baud rate serial terminal to see the result.

Now point the IR remote to the IR receiver and press a button. You can see a hex value when you press the button. Remember this hex value or copy it. After some times repeat this and check the hex value remains the same.

Output of the Decoded IR Signals

IR remote control car hex code
Decoded Hex Code
Remote ButtonsHex Code
Forward (+)0x807F8877
Left (←)0x807F906F
Backward (-)0x807F28D7
Right (→)0x807F10EF

Circuit and Working Principle of IR Remote Control Car

The connection between Arduino and TSOP1738 is quite easy. You have to connect the VSS pin of the TSOP1738 with the 5V pin and connect the ground pin with the ground pin of the Arduino. At last, connect the output pin of the TSOP1738 with the digital pin 11 of the Arduino. You can use any type of IR remote using this method.

To control this car, we need five buttons. These five buttons are used here to control the forward, Left, stop, right and backward of the remote control car respectively.

From the table, you can see the hex code with the function of these buttons. These codes will be sent via IR remote transmitter to the TSOP1738 IR receiver. So we need these codes while writing the program in the Arduino IDE.

When you press one of those buttons, Arduino matches it from the table. If code matched, Arduino takes the action of the particular button you pressed.

Arduino Code for IR Remote Control Car

Leave a Comment