Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: pomprocker on March 03, 2008, 01:10:40 PM

Title: $50 robot - atmega8 - int0 & int1
Post by: pomprocker on March 03, 2008, 01:10:40 PM
What are these ports for on the servo bus? I plugged a servo into them, and obviously nothing happend.

Also, Can the photosensors be plugged into any port on the sensor bus?
Title: Re: $50 robot - atmega8 - int0 & int1
Post by: ed1380 on March 03, 2008, 02:49:31 PM
the servo ports in the code are portd 0 - portd4
the photosensors can be plugged into any one you'd just have to change the code a bit.
are you sure the atmega8 is programmed correctly? are the servo's plugged into the correct pins?
Title: Re: $50 robot - atmega8 - int0 & int1
Post by: pomprocker on March 04, 2008, 11:23:52 AM
I learned from reading posts that the ports on the servo bus are controlled by the programming, not the actually way its soldered. I figured this out when I read ahead to the UART guide.

Right now I have only had the modify servo hex loaded. I should wait until my robot is fully programmed before asking such questions.
Title: Re: $50 robot - atmega8 - int0 & int1
Post by: Admin on March 15, 2008, 06:43:45 PM
int 0 and int 1 are interrupts.

If you program them in, they can be useful for neat stuff. Just google them up to learn more.