Simple CAR Arduino IR Controlled
by ForbiddenBit_com in Circuits > Arduino
8870 Views, 14 Favorites, 0 Comments
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.
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
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
Montage
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.
Sketch
Now copy the button codes to the iR_Car.ino sketch .