Hello again!
I have been having issues with my microcontroller(s). I have an Atmega8 and an Atmega168, and the more expensive 6-pin programmer. They both connect successfully to the programmer, and I can change the ISP frequencies with no problem. For some reason, though, when I press program the board disconnects and AVR Studio tells me that the circuit board has lost power. I tried all of the help topics from AVR Studio, but with no luck. I also tested all my pins, batteries, and rechecked the .pdf schematic over and over again.
Before this I connected and uploaded my programs with no problem, but my photosensors were not connecting and I had the wrong servos. Apparently, if you ask servocity.com to modify them for continuous rotation you lose rotation in one direction and get a potentiometer instead, which doesn't help much. I think I can solve this by switching the variables 22 and 44 in the Photovore program to a lower and higher value (like 1 and 44?).
Turn Right:
Servo Left = 1
Servo Right = 44
Turn Left:
Servo Left = 44
Servo Right = 1
Go Straight:
Servo Left = 44
Servo Right = 44
What I am asking is what do you think the problem is with my board? Also, do you think the changes I made to the code will work (if I ever get it on the robot)?
Thanks for your help!
Orrin