Tag: line follower robot

1 articles found.

Line Follower Robot using ESP32 and IR Sensors - Proteus Simulation

Line Follower Robot using ESP32 and IR Sensors - Proteus Simulation: the ESP32, the 5-channel IR tracker, the L298N and two TT gear motors

Hello friends, I hope you all are doing great. Today, I am going to share the Line Follower Robot using ESP32 and IR Sensors - Proteus Simulation, project 103 of our IoT Projects series. The line follower is the robot every robotics class builds and every robotics competition starts with: a small car that follows a black line on a white floor. Here is a complete one, with the circuit, the code with a real PID controller, and a Proteus simulation you can run before you cut a single piece of tape. Five IR sensors on a tracker bar look at the floor under the front of the robot. The ESP32 works out where the line is under the bar, turns that into an error, and a PID controller turns the error into two wheel speeds for the L298N and the two TT gear motors: a small correction on a gentle curve, a hard one on a sharp curve. The robot also handles the things a real track throws at it: it drives straight across a cross line, it searches for the line when there is a gap, it waits when something stands in its way, and it stops when its bump switch hits something. Because it is an ESP32, there is a dashboard too, to start and stop it and set its speed. In this tutorial, we will go through the circuit, how an IR sensor sees a line, how five sensors give one position, the PID controller, the special cases and the code. Then we drive a whole recorded course in the simulation. At the end, you can download the project with the sketch and every library file. NOTICE: Our team has put a lot of ...