Society of Robots - Robot Forum

Software => Software => Topic started by: harisankarsa on September 28, 2008, 07:39:33 PM

Title: Cant program correctly using AVRISP II
Post by: harisankarsa on September 28, 2008, 07:39:33 PM
Being a novice, i modify the code of Photovore given here to make my bot do new things. I just change the contents of the while loop in the main file. But lately this isnt working. My modified and unmodified servos are all rotating only in one direction. When i tried the original code, the same problem still happened. I am using ATmega8. Wht cud be cause for this? I wud also like to know how to control the servo using 'servo.c' given in avrlib. If you have any turorials on it, pls forward. I cant understand it from the example given alongwith it.
Title: Re: Cant program correctly using AVRISP II
Post by: Admin on October 07, 2008, 11:07:34 PM
Did you change the clock speed of your AVR? Did this just suddenly start happening, or was it gradual?

As for avrlib, servo.h has some basic explanations. Helps any?