I have been having a problem and i cannot fogure out what it is. and its drivign me mad now.
I have build a small robot that i control via a c sharp program , i send the arduino controls via the serial port (its is currently a wire)
But the problem i am having (and its not consistent, some time sit works perfectly for an hour and then some times it buggs out every 30 seconds or so.) some time the robot just hits full power and the the software ont eh computer says the com port is lost, but it seems like all the pins on the arduino are put to HIGH, as my robot goes full power backwards, and in order for it to go backwards it has to power on the two direction pins.
So i 1st thought that the arduino was freezing or some thing, but i then made a status led on pin 13 blink every 500ms and now i checked when the robot buggs out, the led still flashes, indicating that the arduino is not frozen.
I thought another possibility was maybe the common ground wire (from the arduino to my circuitry) was coming loose. Could this be it?
I have also read about the arduino resetting if the serial connection is lost, which i though could be a possible problem, but if i manualy reset the robot, it stands still like it should. i coded all the pins to be set to LOW in the start up.
To me it defiantly seems related to the serial connection, and another thing is that, after it buggs out. i have to remove the usb cable from the computer and plug it back in before i can upload anything to the arduino from the ide or if i want to connect to the board via serial.
What other problems could this be? Please could some one help me out here, i am running out of things to try..