Go Down

Topic: Code won't run when unplug and l led blinking  (Read 183 times) previous topic - next topic


Hi, I am using an Arduino Uno R3 with a l298n driver in my project (a line follower), when the arduino is plugged all work perfect, but when I unplug it, it stops working, and L led starts blinking 3 times fast than pause(in loop). I tried a normal 9v battery and a 3.7v 4400h battery and the same result, than i tried another Arduino uno same thing, but when I tried a leonardo, it worked.
Sry for my english.


Nov 08, 2018, 07:36 pm Last Edit: Nov 08, 2018, 07:37 pm by sterretje
and L led starts blinking 3 times fast than pause(in loop)
No solution but that sounds like your Arduino is constantly rebooting.

9V batteries (those flat ones with 2 'pins' on top) can more than likely not deliver enough current, so voltage drops at the moment that too much current is required.

3.7V is too low (if not mistaken) for a 16MHz 328P; check the datasheet, I don't have one at hand to check.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.


I tested it on Leonardo and it's enough, but what can I do to use the Uno without this problem?
(now I can't use Leonardo, I used it in a school project)

Go Up