Go Down

Topic: arduino resets itself (Read 295 times) previous topic - next topic

antumbra

My arduino uno is having a problem running a certain sketch.  when it gets halfway through, the pin 13 led flashes briefly, and the
sketch restarts itself. I have 2 servos and one ultrasonic sensor attached to the 5v+ pin, the servos to digital 2 and 3, and the ultrasonic to 7.

Jack Christensen

The crystal ball is out at the cleaners, so it might help to post that "certain sketch". Is the power supply sufficient for the servos?
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

AWOL

Quote
i am using a nine volt battery

OK, get back to us when you've fixed that.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

spycatcher2k

Please read the sticky at the top of this forum & also choose a more appropriate section, this is not an installation issue.
Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

Jack Christensen

What @AWOL is saying is that a 9V battery is undoubtedly inadequate to power a servo (let alone two).  Likely that the voltage is dropping and causing a reset via the brownout detector.
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Go Up