Hi there,
im working on balancing robot (https://github.com/mahowik/BalancingWii) and everything was working perfectly until yesterday when i changed some parameters in code and uploaded it to Arduino Nano(ATmega 328P), and when i tried to supplying circuit by 12v battery the led of Arduino turn on for unless 1 sec and Turns off after that.
i tried to connect the Arduino by USB and reupload the code and the Arduino was working but the problem still on 12v.
also i tried to recheck the circuit for short circuit or any problem but found nothing.
finally in Arduino IDE if i try to get board info i got (unknown board) i dont know if it helpfully.
edit: i checked the Arduino and A4988 and stepper motor on another board and it was working.
Sorry about your mistook. If your drawing is correct that result is what I would expect. You show 12V connected to the 5V terminal, that is a No No from which you very seldom will get a second chance. I expect you fried 3 of the five boards. I think the A4988 may have survived, just a hopeful guess. I would you use a small buck converter to supply 5V VCC to your system and use the 12V for the motor only. Good Luck!
gilshultz:
Sorry about your mistook. If your drawing is correct that result is what I would expect. ** You show 12V connected to the 5V terminal,** that is a No No from which you very seldom will get a second chance. I expect you fried 3 of the five boards. I think the A4988 may have survived, just a hopeful guess. I would you use a small buck converter to supply 5V VCC to your system and use the 12V for the motor only. Good Luck!
Where?
Or has the OP changed the diagram. @avatar55 if you have edited your post AFTER @gilshutz then that is a NO NO..
You should have posted another copy of your corrected diagram in a new post.
Your change has confused the flow of the thread.
Please post a proper circuit diagram, not a cut and post picture.
Just draw your schematic, even with pen(cil) and paper, and post an image of it will suffice.
A picture of your project will help with us seeing you component layout.
Thanks.. Tom...
It is still wrong regardless as it shows the "standard" problem of trying to use the Nano to supply 5V to everything. I'm surprised that it lasts a minute before shutting down. I expect that the input diode has dropped off the board too.
sorry for didn't mention that but I didn't meant trying to use the Nano to supply 5V to everything. everything supplied by battery but i tried the USB cable to check if my Nano dead.
i add new edited circuit diagram, if theres anything not clear please tell me.
and for remember, my circuit was runing for 3 days without problem but i went to change the speed of wheels in the code so reuploded the code to Nano and after that circuit want to run.
TomGeorge:
Where?
Or has the OP changed the diagram. @anon76292644 if you have edited your post AFTER @gilshutz then that is a NO NO..
You should have posted another copy of your corrected diagram in a new post.
Your change has confused the flow of the thread.
Please post a proper circuit diagram, not a cut and post picture.
Just draw your schematic, even with pen(cil) and paper, and post an image of it will suffice.
A picture of your project will help with us seeing you component layout.
Thanks.. Tom...
No sir i edited it before any comment.. im was trying to find the problem
AJLElectronics:
It is still wrong regardless as it shows the "standard" problem of trying to use the Nano to supply 5V to everything. I'm surprised that it lasts a minute before shutting down. I expect that the input diode has dropped off the board too.
Powering through Vin or the power jack means that the Arduino and all peripherals that are on the 5V rail are powered by the onboard 5V regulator. The on board 5V regulator is not heat sinked so will supply limited current before it overheats and shuts down. The recommend max power dissipation for the regulator is 1 Watt (on an Uno, Nano is less). With 12V into the regulator the max current is about 140 mA (1W / (12V - 5V)). The Arduino uses around 50ma of that leaving less than 90mA (max) for everything else. I would use a buck converter to drop the 12V to 5V and connect that to the 5V on the Arduino, bypassing the, weak, 5V regulator. Then the rated current of the DC DC converter is available on the 5V line.
Your link does not work for me. There is much on the internet that is not the best advice. Many posts that you see repeat bad advice because the poster knows no difference.
groundFungus:
Powering through Vin or the power jack means that the Arduino and all peripherals that are on the 5V rail are powered by the onboard 5V regulator. The on board 5V regulator is not heat sinked so will supply limited current before it overheats and shuts down. The recommend max power dissipation for the regulator is 1 Watt (on an Uno, Nano is less). With 12V into the regulator the max current is about 140 mA (1W / (12V - 5V)). The Arduino uses around 50ma of that leaving less than 90mA (max) for everything else. I would use a buck converter to drop the 12V to 5V and connect that to the 5V on the Arduino, bypassing the, weak, 5V regulator. Then the rated current of the DC DC converter is available on the 5V line.
Your link does not work for me. There is much on the internet that is not the best advice. Many posts that you see repeat bad advice because the poster knows no difference.
could i use 7805 voltage regulator with Nano or just buck circuit ? and thanks for the advice.
could i use 7805 voltage regulator with Nano or just buck circuit ? and thanks for the advice.
Yes you could use a 7805 with a heat sink and the proper caps on the input and output. The 7805 has to drop 7 Volts. That is in the form of dissipated heat.
A buck (switching) regulator would be more efficient.
I would use a 7805 if I needed a noise free 5V (ex. using the ADC with default reference), otherwise I use the more efficient buck converter (especially with battery power).
groundFungus:
Yes you could use a 7805 with a heat sink and the proper caps on the input and output. The 7805 has to drop 7 Volts. That is in the form of dissipated heat.
A buck (switching) regulator would be more efficient.
I would use a 7805 if I needed a noise free 5V (ex. using the ADC with default reference), otherwise I use the more efficient buck converter (especially with battery power).
ok i will use LM2596. and i can use same battery for supplying stepper motors 12v and Nano 5v by buck converter right?
If you remove the battery during upload, then USB power flows backwards through the 5volt regulator to whatever is connected to V-in. And that includes motor drivers and motors.
Could that have killed the 5volt regulator?
In my last project I use a diode in series with V-in to prevent that.
Leo..
Wawa:
If you remove the battery during upload, then USB power flows backwards through the 5volt regulator to whatever is connected to V-in. And that includes motor drivers and motors.
Could that have killed the 5volt regulator?
In my last project I use a diode in series with V-in to prevent that.
Leo..
Sorry, I don't completely understand what you mean but generally when i upload the code to Nano, battery wasn't connected to circuit. but ı uploaded the code like 10 times in this way.
Could that have killed the 5volt regulator? i tried the A4988 and stepper motors in Separate circuit and it was working without problem.
groundFungus:
Powering through Vin or the power jack means that the Arduino and all peripherals that are on the 5V rail are powered by the onboard 5V regulator. The on board 5V regulator is not heat sinked so will supply limited current before it overheats and shuts down. The recommend max power dissipation for the regulator is 1 Watt (on an Uno, Nano is less). With 12V into the regulator the max current is about 140 mA (1W / (12V - 5V)). The Arduino uses around 50ma of that leaving less than 90mA (max) for everything else. I would use a buck converter to drop the 12V to 5V and connect that to the 5V on the Arduino, bypassing the, weak, 5V regulator. Then the rated current of the DC DC converter is available on the 5V line.
Your link does not work for me. There is much on the internet that is not the best advice. Many posts that you see repeat bad advice because the poster knows no difference.
sir.. do i Need to edit connections (like take off Vin on the Nano from 12v)? or just connect buck converter to the 5V on the Arduino.