You can try declaring sensor as volatile: volatile uint8_t sensor;. Line Following Robot using AVR ATmega8eXtreme Electronics http:// 1 of Here is a simple line following robot circuit designed using ATmega8 Microcontroller. It can be used in industrial and defense applications.

Author: Nalmaran Zulkisar
Country: Benin
Language: English (Spanish)
Genre: Science
Published (Last): 10 March 2007
Pages: 238
PDF File Size: 3.47 Mb
ePub File Size: 10.67 Mb
ISBN: 515-4-84072-280-2
Downloads: 54597
Price: Free* [*Free Regsitration Required]
Uploader: Kajijind

This sprev is used as previous line position for the next loop. Can you please make the program?

Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of service ahmega8, privacy policy and cookie policyand that your continued use of the website is subject to these policies.

Please watch the following video for a LFR in action. I know you will surely help me.

Now a PID algorithm is used to find out the c ontrol variable from the current position and required position. You may note that the surface may also be black or any other dark colourin that case the path is a light colour like white.

I have searched many articles to study PID code. This article is actually a nice one it assists new internet viewers, who are wishing for blogging. By Avinash – December 2, 9: By Khushboo Priya – December 6, 8: Get quote online easily: Robot C Error This is done by storing the current line position in a variable sprev just before the end of main loop. Jalaj, Please share this page on your Facebook profile. I don’t see how this should accomplish anything.


avr – Line follower robot using atmega8 – Stack Overflow

Your works are always wonderful. Sign up or log in Sign up using Google. Post as a guest Name.

Not every one is as bright as u r, not every one would have had a formal electronics background, got to be a bit more polite to encourage people reading or leaarning from u r site bye. Similarly using another surface than a flex will have different reflectance so the sensor will not be able to “see” the line.

Also, you may want to only check relevant pins, not the whole port. The above given code works only for a rpm motor…. 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.

Line Following Robot using AVR ATmega8

If you could kindly help. Rajesh Rajan, You can provide 5v to the sensor and then check its output using a digital multimeter. By vijay – November 3, 2: From where can I get it. By Avinash – February 12, usign Can you plz tell me the values of Diodes D1D2D3?


When the control variable is more lline 0 that means line is towards the left, so we need to take right turn to correct the error and bring the robot back to track. One of the most basic autonomous robot you can build is a line following robot LFR. By DIbyaranjan – July 7, And never use SMS language while leaving a comment. Line Following Robot Board.

Line Following Robot using AVR ATmega8

By Avinash – January 3, 6: Can tollower please help me out with the logic that i need to put in. Please share this page on your Facebook profile. By Avinash – February 9, 9: I followed your tutorial and bot is working fine. Leave a comment in a proper manner with sufficient details so that we can help you.

If you are unable to make from the information provided. By inertia45 – August 12, It is working great on smooth turn even at full rpm but facing difficulty in sharp 90 degree turn. Which will unnecessarily increase the troubles! By Priya – February 10, Avinash Post author Bro can you came on mail box.