
The Arduino Nano is the best option to get started with electronics and coding if this is your first experience with Arduino Platform. For our line following robot, I will be using Arduino UNO which is the most commonly used board. You all might be familiar with Arduino which is the most widely used and fastly evolving electronic platform with so many microcontroller boards and software. IR Sensor (Array Sensor or 2 Individual Sensors).Add the QTI sensors to your existing circuit :ī is connected to the ground pin, R to the signal pin and W to 5V.In this tutorial, we will discuss the working of an Arduino line following robot which will follow a black line in white background and take the correct turn whenever it reaches curves in its path. Therefore it is important to test them before hand and understand the range of results on a white and a black surface. The QTI sensors can give varying results depending on the condition of lights at the place of testing. The QTI sensor emits and receives infrared waves and differentiates a dark surface from a light surface depending on the reflectivity of those surfaces. Until the servo comes to an absolute still. you can hear a buzz or humming sound from the servo.
#LINE FOLLOWER ARDUINO WHILE LOOP DRIVER#
Rotate the potentiometer with a very light hand using a screw driver if : There is a potentiometer at the back of the servo motor. Once you copy the code, upload it to your Arduino board. ServoRight.attach(6) // attach right servo to pin 6 ServoLeft.attach(5) // attach left servo to pin 5 Servo servoLeft, servoRight //declaring the two servos
#LINE FOLLOWER ARDUINO WHILE LOOP CODE#
Copy the below code into a new sketch on the Arduino IDE. You can use the code below to center the servos.

Now the first part is to build the circuit to test out the circuit. That is why it is important to center the servos and set your own parameter to use the servos.

Different servos can respond to different ranges between 700 to 2300. However, all the manufacturers do not follow the same standards sometimes. The standard servo parameters are set from 1000 microseconds to 2000 microseconds where 1500 microseconds is the center of the servo and brings it to a stand still. We first make sure that the servos are centered. Now, once all the assembly is completed it is essential to make sure that all the components work perfectly individually. Once the robot has been assembled, you can attach the Ping Sensor in front of the breadboard. I attach each servo motor as a wheel on either sides, and attach the Arduino board.Īlso I attach the battery pack at the bottom of the Boe Bot and the breadboard on top. Since, I have the Boe-Bot Kit I am just going to be using that for my line follower.įirst this I first assemble my chassis.

A lot of these automated guided vehicles follow a line track to get to its destination from source or the different stops. We have all heard of the automated guided vehicles used in factories, to transport materials or products.

But how if you could make your own toy, build your own security system or teach yourself to take your ideas to real life. Technology has become easier and accessible to everyone.
