Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
AVRdude -p atmega8 -c ponyser -P com1 -v -F -U flash:w:"C:\hold_servo.hex":a -U flash:v:"C:hold_servo.hex":a
...Device Signature=0x000000Yikes! Invalid device signature.Expected signature for ATMEGA8 is 1E 93 07...
...The second and more important problem involves the turning. Even when I place a flashlight over the one sensor and cover the other, all I get is a slight jerk, then the whole unit starts moving forward again. I am pretty confident my connections are all tight and I've graphed the sensor data on a TI-83 plus so they must be working to some extent. Again, what size resister should I have used?
The first, the LED. I have checked every schematic and picture I could find, I am sure I have the voltages right, and yet, no light. I touched battery wires directly to the LED (I know, bad idea, but, It didn't blow up) and it came on so I know it works. I also plugged in a larger LED and saw a slight blink on that one upon turning on the robot, but only then.
Well, I solved the turning problem. It appears that the atmega8 bowed a little and the pins weren't connected as tight as I thought. I little push and it worked fine.
The LED is not fried. I attached the end farthest from the controller directly to the source of the motor bus with a spare wire and it lit. I tried the same thing again except I passed it through the resister and it still lit. It only lights when I give it the 6.6v power though. I just don't think that the 5v being supplied to it from the atmega8 is enough to light it. I might decide to just turn it into a power indicator and forget about it.
Another odd thing, I took a second led and went down the outputs (connecting the chip to source)to see if it would light up, It did as expected on the two servo ports, but it also did on the two unused ports, yet for some reason, it did not light from the port the actual LED is plugged into. I can think of only two possible reasons why. First, the program isn't turning it on, I didn't even recompile the included hex file so I don't think that is why; and second (more likely), the real LED is already using all the power,and 5v just is not enough to light it.
I've considered attaching a transistor up to it and wiring it through the servo bus instead, that is after al,l the only way it appears to light. Would that work?