Arduino IR remote controlled Car

December 12, 2021

Arduino IR remote controlled Car

December 12, 2021

Created By

About This Project

Arduino IR remote controlled Car


The project is arduino based project. I had spare time, so I made this.


This is the projects link



https://www.tinkercad.com/things/5xdxIXiPG4Y


and an old version


https://www.tinkercad.com/things/fWIB32WMlWW

Roshan Baig

My name is Roshan, I am 13 years old and I am in 7th standard. My hobbies are horse riding, robotics, and computer programming.

Components Required

  • Arduino UNO
  • LED Light bulb, Frosted GLS
  • Texas Instruments Dual H-Bridge Motor drivers L293D
  • 5mm LED :Red
  • Through Hole Resistor , 1Kohm
  • IR receiver
  • IR Remote
  • DC Motor, Miniature

Schematics

In this image all the components with the connections are given

Code Of Project

   # 
 include 
 <IRremote.h> 
 
 int 
receiver = 
 12 
 ; 
 int 
speed = 
 100 
 ; 
IRrecv irrcev 
 ( 
receiver ) 
 ; 
decode_results results ; 
 void 
 setup 
 ( 
 ) 
 { 
 pinMode 
 ( 
 6 
 , 
 OUTPUT 
 ) 
 ; 
 pinMode 
 ( 
 5 
 , 
 OUTPUT 
 ) 
 ; 
 pinMode 
 ( 
 3 
 , 
 OUTPUT 
 ) 
 ; 
 pinMode 
 ( 
 2 
 , 
 OUTPUT 
 ) 
 ; 
 pinMode 
 ( 
 9 
 , 
 OUTPUT 
 ) 
 ; 
 pinMode 
 ( 
 8 
 , 
 OUTPUT 
 ) 
 ; 
 pinMode 
 ( 
A0 , 
 OUTPUT 
 ) 
 ; 
irrcev . 
 enableIRIn 
 ( 
 ) 
 ; 
 } 
 void 
 loop 
 ( 
 ) 
 { 
 if 
 ( 
irrcev . 
 decode 
 ( 
 & 
results ) 
 ) 
 { 
irrcev . 
 resume 
 ( 
 ) 
 ; 
 } 
 if 
 ( 
results . 
value == 
 16613503 
 ) 
 { 
 move_forward 
 ( 
 ) 
 ; 
 } 
 if 
 ( 
irrcev . 
 decode 
 ( 
 & 
results ) 
 ) 
 { 
irrcev . 
 resume 
 ( 
 ) 
 ; 
 } 
 if 
 ( 
results . 
value == 
 16621663 
 ) 
 { 
 stop 
 ( 
 ) 
 ; 
 } 
 if 
 ( 
irrcev . 
 decode 
 ( 
 & 
results ) 
 ) 
 { 
irrcev . 
 resume 
 ( 
 ) 
 ; 
 } 
 if 
 ( 
results . 
value == 
 16617583 
 ) 
 { 
 move_back 
 ( 
 ) 
 ; 
 } 
 if 
 ( 
irrcev . 
 decode 
 ( 
 & 
results ) 
 ) 
 { 
irrcev . 
 resume 
 ( 
 ) 
 ; 
 } 
 if 
 ( 
results . 
value == 
 16589023 
 ) 
 { 
 turn_left 
 ( 
 ) 
 ; 
 } 
 if 
 ( 
irrcev . 
 decode 
 ( 
 & 
results ) 
 ) 
 { 
irrcev . 
 resume 
 ( 
 ) 
 ; 
 } 
 if 
 ( 
results . 
value == 
 16605343 
 ) 
 { 
 turn_right 
 ( 
 ) 
 ; 
 } 
 if 
 ( 
irrcev . 
 decode 
 ( 
 & 
results ) 
 ) 
 { 
irrcev . 
 resume 
 ( 
 ) 
 ; 
 } 
 if 
 ( 
results . 
value == 
 16580863 
 ) 
 { 
 headlights 
 ( 
 ) 
 ; 
 } 
 if 
 ( 
irrcev . 
 decode 
 ( 
 & 
results ) 
 ) 
 { 
irrcev . 
 resume 
 ( 
 ) 
 ; 
 } 
 if 
 ( 
results . 
value == 
 16597183 
 ) 
 { 
 taillights 
 ( 
 ) 
 ; 
 } 
 } 
 void 
 move_forward 
 ( 
 ) 
 { 
 digitalWrite 
 ( 
 5 
 , 
 LOW 
 ) 
 ; 
 digitalWrite 
 ( 
 2 
 , 
 LOW 
 ) 
 ; 
 digitalWrite 
 ( 
 6 
 , 
 HIGH 
 ) 
 ; 
 digitalWrite 
 ( 
 3 
 , 
 HIGH 
 ) 
 ; 
 } 
 void 
 turn_right 
 ( 
 ) 
 { 
 digitalWrite 
 ( 
 5 
 , 
 LOW 
 ) 
 ; 
 digitalWrite 
 ( 
 3 
 , 
 LOW 
 ) 
 ; 
 digitalWrite 
 ( 
 2 
 , 
 LOW 
 ) 
 ; 
 digitalWrite 
 ( 
 6 
 , 
 HIGH 
 ) 
 ; 
 } 
 void 
 turn_left 
 ( 
 ) 
 { 
 digitalWrite 
 ( 
 5 
 , 
 LOW 
 ) 
 ; 
 digitalWrite 
 ( 
 6 
 , 
 LOW 
 ) 
 ; 
 digitalWrite 
 ( 
 2 
 , 
 LOW 
 ) 
 ; 
 digitalWrite 
 ( 
 3 
 , 
 HIGH 
 ) 
 ; 
 } 
 void 
 move_back 
 ( 
 ) 
 { 
 digitalWrite 
 ( 
 6 
 , 
 LOW 
 ) 
 ; 
 digitalWrite 
 ( 
 3 
 , 
 LOW 
 ) 
 ; 
 digitalWrite 
 ( 
 5 
 , 
 HIGH 
 ) 
 ; 
 digitalWrite 
 ( 
 2 
 , 
 HIGH 
 ) 
 ; 
 } 
 void 
 stop 
 ( 
 ) 
 { 
 digitalWrite 
 ( 
 5 
 , 
 LOW 
 ) 
 ; 
 digitalWrite 
 ( 
 2 
 , 
 LOW 
 ) 
 ; 
 digitalWrite 
 ( 
 6 
 , 
 LOW 
 ) 
 ; 
 digitalWrite 
 ( 
 3 
 , 
 LOW 
 ) 
 ; 
 digitalWrite 
 ( 
 8 
 , 
 LOW 
 ) 
 ; 
 digitalWrite 
 ( 
 9 
 , 
 LOW 
 ) 
 ; 
 } 
 void 
 headlights 
 ( 
 ) 
 { 
 digitalWrite 
 ( 
 9 
 , 
 HIGH 
 ) 
 ; 
 } 
 void 
 taillights 
 ( 
 ) 
 { 
 digitalWrite 
 ( 
 8 
 , 
 HIGH 
 ) 
 ; 
 } 
  
 
A person is using a laptop computer next to a robot.
By Siddhartha Kumar January 5, 2022
Robotics: Blessing and Curse? Robots have improved healthcare , surveillance, delivery of goods (drones), spacecraft, travel, logistics, etc.
A man is wearing a virtual reality headset and touching a screen.
By Tahreem Jamadar December 28, 2021
Is it time for 3D Printing to Adopt Blockchain Technology? Research has already shown 3D printing has a growing need for cybersecurity.
A group of children are sitting at a table making a robot.
By Dr. Heath Kirby-Miller December 25, 2021
Why STEM Education in Australia The Australian industries to be benefited from STEM include advanced information and communication technology
A laptop computer is on a tripod on a table.
November 30, 2021
Animation Studios Mechatron Robotics project uses an Arduino uno R3 a LCD and push buttons. It is based on the concept of arduino and LCD
A young boy wearing headphones is using a laptop computer.
By Kiran Gupta November 30, 2021
Machine Learning for Disables can help those disabled people to improve their lives. With the marvel of machine learning doctors
A man wearing a virtual reality headset is working on a robotic arm.
By Kiran Gupta November 7, 2021
What are the Consequences of Not Embracing Robotics & AI? We won’t be able to go ahead as these are the next big things.
A person is holding a remote control in a living room.
November 4, 2021
Home Automation System is made because today's light bulbs tend to heat and this can cause blast in the house.
A close up of a bottle of vaccine with a virus in the background.
By Rajesh Sharma November 1, 2021
Robotics and the Pandemic 2020. This is where Robotics can come in, robots can help reduce the human contact.
A person is playing with a robotic head on a table.
By Siddhartha Kumar November 1, 2021
Key Elements Most of the Schools are Missing. Everyone has different criteria but one key element remains the same:” The quality of teaching
A person is sitting at a table working on a mobile app.
By Megha Sutar October 20, 2021
Why Learning App & Game Development is Important for Your Kid? Today, most of the kids are taking interest in the Apps and Games
Show More
A person is using a laptop computer next to a robot.
By Siddhartha Kumar January 5, 2022
Robotics: Blessing and Curse? Robots have improved healthcare , surveillance, delivery of goods (drones), spacecraft, travel, logistics, etc.
A man is wearing a virtual reality headset and touching a screen.
By Tahreem Jamadar December 28, 2021
Is it time for 3D Printing to Adopt Blockchain Technology? Research has already shown 3D printing has a growing need for cybersecurity.
A group of children are sitting at a table making a robot.
By Dr. Heath Kirby-Miller December 25, 2021
Why STEM Education in Australia The Australian industries to be benefited from STEM include advanced information and communication technology
A laptop computer is on a tripod on a table.
November 30, 2021
Animation Studios Mechatron Robotics project uses an Arduino uno R3 a LCD and push buttons. It is based on the concept of arduino and LCD
A young boy wearing headphones is using a laptop computer.
By Kiran Gupta November 30, 2021
Machine Learning for Disables can help those disabled people to improve their lives. With the marvel of machine learning doctors
A man wearing a virtual reality headset is working on a robotic arm.
By Kiran Gupta November 7, 2021
What are the Consequences of Not Embracing Robotics & AI? We won’t be able to go ahead as these are the next big things.
A person is holding a remote control in a living room.
November 4, 2021
Home Automation System is made because today's light bulbs tend to heat and this can cause blast in the house.
A close up of a bottle of vaccine with a virus in the background.
By Rajesh Sharma November 1, 2021
Robotics and the Pandemic 2020. This is where Robotics can come in, robots can help reduce the human contact.
A person is playing with a robotic head on a table.
By Siddhartha Kumar November 1, 2021
Key Elements Most of the Schools are Missing. Everyone has different criteria but one key element remains the same:” The quality of teaching
Show More