The simple line follower autonomous robot is a robot which acknowledges and follows a well distinguished colored line.
The following PID controlled line follower robot is constructed using components:
Acrylic Fiber sheet: This forms the base of the robot.
LiPo battery: 9V, 2A to provide current in the system.
Arduino (controller): The brain chip of the robot where the algorithm is fed.
Connecting wires
Motors (X2): To drive the wheels.
Wheels (X2)
Castor wheel: Placed in the front to support the IR sensor array.
Working: Light is reflected from the surface containing the 3 mm sized contrast black tape. This contrast in color bears different IR sensor values. In this way, the robot distinguishes the line from the common white background. So, as the robot deviates from the tape, the IR sensor values change accordingly. Based on this the PWM drivers feeding current to the motors give different duty cycle which in turn varies the RPM of the motors. PID control guides the robot with appropriate proportional, Integral and derivative values (which are tuned in the beginning using the Ziegler-Nichols method of tuning).
Code on:
Interrupt library: https://github.com/GreyGnome/EnableInterrupt
Explanation: The Feedback from IR sensors is fed into Arduino UNO. UNO process this feedback and decides on the basis of PID control Algorithm, the amount of output to be given to the motor drivers for the respective motors. For a left turn, the right motor was accelerated and for the right motor was accelerated. The PID values to be tuned was fed into ARDUINO UNO using the Bluetooth Module. The whole system was supplied power from 9V-2A LiPo Battery, part of the power supply is fed into motor driver and IR sensor.
ReplyDeleteBlock diagram has been mailed to you, please add that part.