How to Make a Infrared (IR) Remote Controlled Car With a TV Remote for University Project, Science Fair and Robotics Competition

Follow the instructions below to build the remote control car. This project is ideal for science fair, robotics competition and university projects. The design is highly adaptable, you can modify it easily and add your own components.

How to Make a Infrared (IR) Remote Controlled Car

Table of contents

Step 1: video demo

Step 2: circuit diagram

Step 3: Arduino code (software)

Step 4: Fixing common error, if your car does not work

Step 5: Notes for modifying this design

Safety instructions:

  1. Take the batteries out of car when not in use. If you cannot see/supervise the car, take the batteries out.
  2. Do NOT short the circuit. A common symptom of this is the circuit overheats.
  3. If you are using your own power supply, use less than 12 volts, unless you know what you are doing.

Supplies

Supplies
  1. DIY infrared (IR) remote car kit (from https://www.ebay.com.au/itm/224993090875 , only ships within Australia, and select the option “Arduino and breadboard kit” for electronics on eBay page)
  2. TV remote (ensure its batteries have charge)
  3. 6X AA rechargeable* batteries
  4. A cross-head screw driver

To build the car without the kit, go to the eBay page linked above to see the list of components in the kit.

*rechargeable ones are recommended, since DIY car typically have poor power efficiency and drains batteries quickly

Step 1: Watch the Video

Timestamp in the video:

0:17 assembling the chassis and motors

4:30 electronics

5:48 circuit diagram

5:54 software (Arduino code)

7:50 demo of the driving (with precision mode code)

8:20 demo of the driving (with racing mode code)

Step 2: Circuit Diagram

Step 2 Circuit Diagram

Wire it up according the diagram above.

Step 3: Arduino Code

Step 3 Arduino Code

There are two modes on offer:

Precision Mode: when it turns left/right, it spin on a fixed axis (see Step 1 video at timestamp 7:49)

  1. Download ‘IR_car_precision.ino’ AND ‘PinDefinitionsAndMore.h’, which are attached below
  2. Then save them into a folder called ‘IR_car_precision’
  3. To change the speed of car, find the variable “carSpeed” and change it
  4. To change how fast the car turns left/right, change the variable “turnTime”

Racing Mode: it turns left/right, while going forward, like a real-life road car. (see Step 1 video at timestamp 8:19)

  1. Download ‘IR_car_racing.ino’ AND ‘PinDefinitionsAndMore.h’, which are attached below
  2. Then save them into a folder called ‘IR_car_racing’
  3. To change the speed of car, find the variable “upperSpeed” and “lowerSpeed”
  4. To change how fast the car turns left/right, change “upperSpeed” and “lowerSpeed”, so the difference between them is bigger/smaller

If you have never used an Arduino before, check out https://www.arduino.cc/en/Guide/ArduinoUno

Step 4: Fixing Common Errors

Step 4 Fixing Common Errors

If you do not have any errors, skip this step (and congratulations!).

Arduino does not respond to infrared signals.

  1. Go into serial monitor of the Arduino, which would provide you with information
  2. Check the TV remote’s battery has power
  3. Have you change ‘command’ number, which is shown in Step 1’s video at timestamp 7:15?
  4. Have you inserted the capacitor into the circuit?
  5. Move the car closer to the TV remote
  6. Do the check mentioned under ‘Arduino is not powered on‘section below, voltage under 7 volts leads to instability and inaccurate reading by the infrared sensor

Arduino is not powered on

  1. Use a multimeter or voltmeter to measure the voltage between the black and red wire of battery holder. Then measure voltage between pin 8 and 4 of L293D chip, when it is connected to the battery. If any of the two voltage measurements is less than 7 volts, replace with fully charged batteries.

Motor does not move, or very weakly.

  1. Check if the Arduino is powered on
  2. Ensure pin 16 of L293D is connected to 5V on Arduino.
  3. Both wires of each motor are plugged in properly

Car does not drive straight.

  1. A bit of deviation from straight path is expected, and there is little can be done.
  2. Ensure the wheels are mounted properly and are parallel to each other
  3. Ensure pin 16 of L293D is connected to 5V on Arduino.
  4. Try all the commands: drive forward, backward, left, right and stop. You might have mixed up the keys.

For all issues.

  1. Ensure everything is connected as shown in Step 2’s diagram
  2. Read the error message in the black window at the bottom of Arduino IDE. Copy the error message into Google.
  3. Go to Tools in Arduino, ensure the Board is “Arduino UNO”. And port is usb something, not BlueTooth.

Source: How to Make a Infrared (IR) Remote Controlled Car With a TV Remote for University Project, Science Fair and Robotics Competition


About The Author

Muhammad Bilal

I am a highly skilled and motivated individual with a Master's degree in Computer Science. I have extensive experience in technical writing and a deep understanding of SEO practices.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top