Line Following Robot using arduino




This is a Line Following Robot. It follows a black line that is drawn. It is able to detect the black line through one photocell and one analog light sensor. There is an LED in between the two sensors that gives off red light when the Arduino is powered on. Then, when the light is reflected back, more light is detected when it is reflected on the white surface, compared to when it is reflected on the black surface. Using this, the right and left servo motors move accordingly to turn left or right when the sensors detect white surface rather than black. I used the Parallax BOEBot Robot for Arduino Kit as my base for the robot. Then I placed a breadboard in front of the base to attach all the sensors with the LED to face the black line.

Line Following Robot using arduino




Follow these steps, and you will be able to build your own line following robot! 🙂

Step 1: Step 1: Parts

Parts needed:

  1. Arduino
  2. Motor Shield (https://www.adafruit.com/products/1438)
  3. LED with 100 ohms resistor
  4. Photo cell with 1K ohms resistor (https://www.adafruit.com/products/161)
  5. GA1A12S202 Log-scale Analog Light Sensor (https://www.adafruit.com/products/1384)
  6. A base for the robot with 2 wheels attached to servo motors ** I used : Parallax BOEBot Robot for Arduino Kit (https://www.adafruit.com/products/749)
  7. A breadboard
  8. A battery with a battery holder
  9. Black marker or black tape with white papers
  10. Tape to tape all the parts together
  11. Wire to connect all the parts (also jumper wires)

Step 2: Step 2: Assemble 1

First, hook up all the sensors!
Connect the photo cell. One end should go to power and the other should connect to the 1K ohms resistor. Then, on the side with the photo cell and the resistor, connect to the analog pin. Next, connect the other end of the resistor to ground. Then connect the LED with the 100 ohm resistor on the breadboard. Finally connect the light sensor to the breadboard according to the label: ground, power, and one analog pin. Then connect all the wires with jumper wires to the Arduino. Make sure that your jumper wires are long enough to reach the Arduino on the base of the robot.

Line Following Robot using arduino circuit

Second, attach the breadboard to the base of the robot.
I used tape since I couldn’t really think of anything else, but you can use anything if it is going to be able to attach the breadboard (facing down) to the robot. Then, use more tape to organize the jumper wires.

 

For more detail: Line Following Robot using arduino




This Post / Project can also be found using search terms:

  • breadboard connections of line follower
Clip to Evernote

Leave a Comment

(Spamcheck Enabled)

Read previous post:
AC Dimmer Circuit
AC Dimmer Circuit

Overview Simple AC Dimmer circuit for incandescent bulbs. 128 levels of brightness. Parts are relatively cheap! How it Works This...

Close
Scroll to top