ok. So given that i set the fuses with your script, the crystal should be ossilating at 16 mhtz, and i should do my calculations accordingly...right?

On 6/16/06, Dave Hylands <dhylands@gmail.com> wrote:
Hi Mark,

On 6/16/06, Mark Yatskar <myatskar@gmail.com> wrote:
> I am trying to setup some code to run some servos on the robo-audio. I have
> the following problem: i plug in the servo and run it and try to physically
> move it myself (it doesn't move itself). I get some resistance, but it
> doesn't seem to be inclined to move back to its original place as a servo
> should. I've been messing with some settings for example the the ICR1 which
> in Dave's example is the High and setting it lower (I think Dave did his
> calculation for 16 Mega hrtz. I think factory default for the ATMEGA128 is 1
> Mega hrt, although i havn't been able to straighten this out yet). With a
> prescalar of 8 i set it to around 2500 to get ~50 htz, given that i am
> running at 1 Mega hrtz. When i do this, i can a lot more resistance from the
> servo, but after i move it it still refuses to move back to where it was.
> Any advice?

The roboaudio comes with a 16 MHz crystal on it. If it's running at 1
MHz, then the fuses haven't been programmed, which means that its in
ATMega103 mode, which means a bunch of the features don't work.

I'll try your test tonight when I get home.

Dave Hylands
Vancouver, BC, Canada

gumstix-users mailing list