How To Make Arduino Line Following Robot | Line Follower Using Two IR Sensor




Do robots that follow a specific path excite you? Guess what? We'll help you make one! 
Line Follower Cars are autonomous cars that follow a given route. Today we'll make a Line following car using Arduino and IR sensor, that has its application ranging from use in industry to auto mobile application. So let's start!

IR Sensor Working Mechanism

IR sensor is an infrared rays transmitter and receiver. It discriminates between black and white surfaces, returning a digital signal of Zero '0' to Arduino for white surfaces and One '1' for black surfaces. To learn more about IR Sensor working mechanism click here.
http://qqtrading.com.my

Pin Connections: 

IR Sensor Vcc connects to Arduino 5V
IR Sensor Gnd connects to Arduino Gnd
IR Sensor Out connects to Arduino Digital I/O Pin

Hardware Setup

Components Required:

  • Arduino UNO
  • Motor Driver L298N
  • Car Chassis (Car Frame | 2 x DC gear Motor | 2 x Tires)
  • Jumper Cables
  • 2 x IR Sensor 

Car Assembly:

The first step is to assemble car chassis. To learn more about assembly, refer to this article: Assemble Car Chassis. For visual demonstration refer to this video: Assemble Car Chassis

Circuit Diagram:



Software Setup

Copy paste the following code on to your Arduino IDE and upload the code.

Demo

The most exciting part of the project is to see our car working. Refer to the video below to see how precisely the car follows the given track. Step by step instruction to make the car is also given in the video. 




Now you can make your own Line Following Car, and share them with us. In case of any questions, feel free to comment below. Happy Learning :)

Comments

Popular Posts

How To Make Line Follower Using Three IR Sensor | Arduino Line Following Car

How To Make Line Follower Car with Speed Control | 6 IR Sensor Arduino Line Following Car