Line Follower | Following Arduino Car with Source Code | Arduino Project

Line Follower | Following Arduino Car with Source Code | Arduino Project



In this tutorial, you will make line follower robot. This tutorial involves building a line follower robot with an QTR-8RC Reflectance Sensor Array.

Required Hardware:
Arduino Board – https://goo.gl/UyGYeF
Motor Shield L293D – https://goo.gl/9Ph44b
QTR-8RC Reflectance Sensor — https://goo.gl/Q99tQ8
DC Motor and wheel x2 – https://goo.gl/rpxoMu
Battery Buckle – https://goo.gl/iAEgPl
Wires – https://goo.gl/TdGrkk
Bovine Wheel
Chassis
Battery 9V
Button
Glue Gun

Connections :
1) DC Motors connect to the Motor Shield
2) Left Motors connect to M1
3) Right Motors connect to M2
4) The QTR-8RC Reflectance Sensor Connections

The Sensor VCC connect to the Arduino +5V
The Sensor GND connect to the Arduino Ground
The Sensor pin 2 connect to the Arduino Analog 0
The Sensor pin 3 connect to the Arduino Analog 1
The Sensor pin 4 connect to the Arduino Analog 2
The Sensor pin 5 connect to the Arduino Analog 3
The Sensor pin 6 connect to the Arduino Analog 4

5) Battery and on / off button connection

The (+) from the battery is connect to a leg of the button
Connect a cable to the other legs of the button. This cable is for Motor Shield (+)

6) Attach wheels

Copy the Source Code and install the Library:

1) Open the new Arduino IDE page and Delete everything on the page
2) Get the code from my blog page and Paste empty Arduino IDE page
3) First Install the Arduino Libraries
3.1) Install the AF_Motor Arduino library

Close the Arduino IDE
Download the library;
https://github.com/adafruit/Adafruit-Motor-Shield-library
Uncompress the ZIP file onto your desktop
Place the AFMotor folder into your arduinosketchfolder/libraries folder
Rename the uncompressed folder AFMotor

3.2) Install the QTRSensors library

Download the library;
https://github.com/pololu/qtr-sensors-arduino/releases
Rename the folder “qtr-sensors-arduino-xxxx” to “QTRSensors”
Drag the “QTRSensors” folder into the “libraries” directory inside your Arduino sketchbook directory

4) After installing the library, restart the Arduino IDE
5) Now you can see the libraries you have installed
6) When you verify, you will not see any errors

Get the Source Code – https://goo.gl/pr4kYA

Electronics Parts – https://goo.gl/covX9J
Arduino Compatible SCM & DIY Kits – https://goo.gl/yi21yB
Arduino Modules Boards — https://goo.gl/bSCfwv
Professional Tools — https://goo.gl/9Ym9MM

Line Follower | Following Arduino Car with Source Code | Arduino Project

30 Comments

Tinggalkan Balasan ke Kavi Patel Batalkan balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *