Society of Robots - Robot Forum

General Misc => Misc => Topic started by: Trumpkin on January 10, 2008, 09:34:04 AM

Title: Finally got my microcontroller working
Post by: Trumpkin on January 10, 2008, 09:34:04 AM
I'm sooooooooooo happy  ;D ;D ;D I finally got my $50 robot microcontroller working!!!! It took like 3 months just to get it working (not including the actual soldering of the circuit). It was all just because of a bridge in the programmer header. The only problemn is i ran the modify servo program and the servos are moving in opposite directions is it just the programming? 
Title: Re: Finally got my microcontroller working
Post by: paulstreats on January 10, 2008, 09:40:01 AM
They are supposed to.

Once they are mounted onto your bot they need to spin opposite to work correctly, youll realise when its all built
Title: Re: Finally got my microcontroller working
Post by: Trumpkin on January 10, 2008, 09:43:54 AM
they are actually on my bot one is spinning forward the other backward.
Title: Re: Finally got my microcontroller working
Post by: airman00 on January 10, 2008, 10:25:41 AM
Are you giving the servos the correct pulse at the correct oscillator setting?
Title: Re: Finally got my microcontroller working
Post by: Trumpkin on January 10, 2008, 01:52:41 PM
It was just the potentiometer shaft when I modifyed it for my RC system it wasn't the same as the microcontroller.
Title: Re: Finally got my microcontroller working
Post by: ed1380 on January 10, 2008, 02:49:38 PM
maybe find out which servo it is code wise and change teh code around for it to work
Title: Re: Finally got my microcontroller working
Post by: Trumpkin on January 11, 2008, 08:35:20 AM
I re-modified my servos I think it will work fine now
Title: Re: Finally got my microcontroller working
Post by: Trumpkin on January 11, 2008, 09:10:06 AM
Can somemone please post a sample program for the atmega 8 for just moving the servos? thx
Title: Re: Finally got my microcontroller working
Post by: ed1380 on January 11, 2008, 06:06:08 PM
google servo exersisor. it should also be in the avrlib
Title: Re: Finally got my microcontroller working
Post by: Trumpkin on January 12, 2008, 09:36:03 AM
I checked google coudn't find anything  :(
Title: Re: Finally got my microcontroller working
Post by: Admin on January 12, 2008, 11:16:55 PM
if you look at my code for a bit, you will see a line calling the servos.

just run that line in the main section and comment out the other stuff.