Simple CAR Arduino IR Controlled

by ForbiddenBit_com in Circuits > Arduino

8870 Views, 14 Favorites, 0 Comments

Simple CAR Arduino IR Controlled

How To Make A Simple CAR Arduino iR Controlled Step by Step

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

C-400-DEV-A000046-a.jpg
ir_receiver.jpg
HTB1frp.SFXXXXbnXVXXq6xXFXXXZ.jpg
l298n.jpg

List element:

  1. iR Receiver
  2. Arduino uno
  3. L298N motor shield
  4. Plexi 17cm x 10cm
  5. 4x TT gear Motor
  6. 4x wheels
  7. Battery 9V
  8. Battery connector
  9. Wires
  10. Switch

Schema

Schema_iR_Car_bb.jpg

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

ir_car3.JPG
ir_car4.JPG
ir_car.JPG
ir_car1.JPG
ir_car2.JPG
Untitled Project2 (Time 0_00_40;16).jpg
Untitled Project2 (Time 0_01_33;07).jpg
Untitled Project2 (Time 0_02_06;01).jpg

Reading the Button Code

1.1.jpg
1.2.jpg
2.1.jpg
4.3.jpg
Untitled Project (Time 0_08_37;22).jpg

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

Untitled Project2 (Time 0_07_30;11).jpg

Now copy the button codes to the iR_Car.ino sketch .

Downloads