The DC motors of the robot are connected to the controller using a motor driver IC. As the output of the controller is maximum 5V with very small current, it cannot drive the motors. So, to amplify this voltage motor driver IC is used. LN can drive motors up to 36v and can provide a drive current of 3A. The driver IC has 15 pins and is usually available in multiwatt15 Package.
|Published (Last):||7 July 2004|
|PDF File Size:||7.75 Mb|
|ePub File Size:||12.47 Mb|
|Price:||Free* [*Free Regsitration Required]|
Assembling the line following robot. Electronics for the Robot. The electronics for the robot is kept as simple as possible. The electronics board is split into to parts. The line sensor board that is connected at the bottom part of the robot. These two units are neatly connected using a FRC cable see this. Main Board Schematic. The schematic for line sensor array is given in this article. Purchase You can purchase both the circuit boards made using high quality PCBs and parts.
Simply follow the link. The products will be delivered to you door steps within days any where in India using quality courier service. Fully assembled and tested line sensor board. But those are lot messy, bulky and does not fit well in the chassis. Beginners should avoid using them.
You can save lots of time and pay more attention in the program part that is more important. The program for LFR. Syntax of C language. Concept of libraries. Source File, Header File etc. Preprocessor, Compiler and Linker, what they are and what they do and how to use them. The IDE Integrated Development Environment that is a software suite that let you enter, edit, compile,debug project and manage files in project.
Introduction to AS6 is here. A new project is created as described in above tutorial and configured then the library files LED,Motor and ADC needed to be added to the project. Adding a library to current AS6 project is described in libraries manual. The code is as follows.
In the loop first thing we do is to read the sensor using the ReadSensors we get a value between 1 to 5 as follows.
When the line is towards right of center then value tends to 5 When the line is towards left of center then value tends to 1 When line is in the exact center the the value is 3 Returns 0xFF if no line is detected. Return value may be fractional also, like it is 2. In case a line is NOT found we below any sensor we used value we got last time. This is done by storing the current line position in a variable sprev just before the end of main loop. This sprev is used as previous line position for the next loop.
Current Position it is the position of line as read by the sensors. To do a right turn we need to make the right motor go slow by the amount of control if control is less than This will create a much faster right turning. The whole code looks like this.
Line Follower Robot using Microcontroller
Line Following Robot using AVR ATmega8