Introduction: Simple CAR Arduino IR Controlled
In this project I will show you how to make a vehicle controlled by a TV remote control. for this we will use an infrared receiver. It will show you how to receive and decode the received button codes.
Step 1: List Elements
List element:
- iR Receiver
- Arduino uno
- L298N motor shield
- Plexi 17cm x 10cm
- 4x TT gear Motor
- 4x wheels
- Battery 9V
- Battery connector
- Wires
- Switch
Step 2: Schema
Schema:
Arduino to L298N:
- D8 to IN1
- D9 to IN2
- D10 to IN3
- D11 to IN4
- Vin to 5V
- GND to GND
Receiver to Arduino:
- Data to D7
- Vcc to 5V
- GND to GND
Step 3: Montage
Step 4: Reading the Button Code
iR Decoder:
For the operation of our receiver, we need the Arduino-IRremote-master library.
- Download the library:
- Open Arduino Ide
- Select : Sketch ->Include Library-> Add .ZIP Library-> select Arduino-IRremote-master.zip.
Now we will upload the sketch to our arduino and open Serial Monitor. Now use the TV's remote control, point it at the receiver and press any button. In the serial monitor window you will see the button code.
Step 5: Sketch
Now copy the button codes to the iR_Car.ino sketch .
2 Comments
Question 4 months ago
I am trying to build the Simple CAR Arduino IR Controlled. i have wired it up as per the instuctions and loaded the coding however, when i press the remote control, the motors just twitch but do not keep going. where am i going wrong?
10 months ago
I build something similar, which can be found on: https://www.instructables.com/How-to-Make-a-Infrared-IR-Remote-Controlled-Car-Wi/
As a tip, it cheaper to use a L293D motor control module (shown in the linked website) then a L298N motor shield, but this also slightly complicates the wiring.