Society of Robots - Robot Forum
General Misc => Misc => Topic started by: MarkBrown on August 18, 2008, 11:28:27 PM
-
Last night I had the robot working. Today moved all the parts to a new chasis that I have been working on for it. After hooking everything back into the circuit board, the only response I get when I hook up the power is a very brief LED flash. I have had this happen before and it turned out that I had a little fleck of solder creating a short. This time though I am not able to find a short. I have tried this without any cables plugged in, just servos and just sensors. I figured something might have happened to the programming so I reprogrammed the chip with no errors. I tried again after reprogramming and received the same result. I have also tried different batteries.
I am starting to go a little crazy. Does anyone have any advice?
Mark
-
I did some further testing and my robot is now working. The led is still flashing or flickering, but the robot is working.
Now I get to have some fun modifying the code a bit. The robot begins to turn when the light changes, but only briefly before going forward again. I assume this is due to the algorithm where the light is the same for both sensors. Probably a delay change should fix it.
At anyrate, it is working now.
Mark
-
post your code.
you can use the LED like you would with print statements in a program for easy debugging,
put the LED_on; inside of a function or loop so that you know when it gets to that line of code, the LED can in a sense help you step through code.
-
I am still using the original code provided by Admin in the tutorial. I will post any code changes I make if that is what you mean.
Mark