Line follower with Arduino

An Arduino project implemented in the Robotics club “Young Hackers” in our school (Experimental Elementary School of Florina).

Bill of materials:

  • 1 Arduino Uno
  • 2 dc gear motors with wheels
  • 1 L293D driver for controlling the motors
  • 1 Infrared Obstacle Avoidance Sensor
  • 1 Infrared Tracking sensor
  • 2 battery cases and ΑΑΑ batteries
  • 1 switch
  • Jumper wires
  • 1 Breadboard

At first we used a pre-cut plexiglass frame for our vehicle. Later on our students designed and made their own frame using cardboard and a table tennis ball along with a 3d printed design (https://www.thingiverse.com/thing:1728714) as a castor wheel.

In order to connect the two motors to Arduino and the L293D driver we followed instructions students found on line and are depicted in the following image.

We connected the two motors to PWM pins in Arduino so as to control the speed (0-255 values) and not just their state (on-off).

The schematic and program was made using tinkercad where all our students have accounts. You can see the final design and program here: https://www.tinkercad.com/things/0ZTQYQ60tYK

Our students presented the line follower on various festivals and exhibitions at the end of the year.

The final result
Cardboard frame
Cardboard frame
Plexiglass frame