Hello,
For a certain project, I want to power an arduino nano externally and I am wondering what is the best way to do it. Could I connect a 9V battery to a micro USB and connect that straight to the nano?
I appreciate feedback and help with this!
You are completely correct, I had the wrong board in mind. Thanks for catching that Eric! I will edit my original response.hi Y,
Are you sure about the nano 3.3V being an input, its defined as the onboard 3.3vreg output.?
E
So to be clear, I would connect a LiPo battery (of which capacity?) to the 5V pin on the nano? And the negative of the battery to the GND pin?You are completely correct, I had the wrong board in mind. Thanks for catching that Eric! I will edit my original response.
What is the function of the Vin pin so?So to be clear, I would connect a LiPo battery (of which capacity?) to the 5V pin on the nano? And the negative of the battery to the GND pin?
So if I connect a 9v source (for example) to the Vin pin on the arduino nano, it will work away with no issues because the 9v source is regulated to 5v? If so that is the answer I was looking for!Vin allows 7-12VDC input to be regulated down to 5v that the board’s microcontroller can use. The output of the regulator connects to the same node on the circuitry as the USB 5v power input and the 5v pin auxiliary pin on the board. I don’t know what happens if you connect 7v or less to this pin but it is specified at 7 to 12VDC on ost Arduino boards
Yes, I must look for some sort of battery with a larger capacity? any recommendations?Yes, 9v to the Vin is fine, I don’t understand why other members try to make things more complicated and less safe by instructing you to use LiPo batteries
Understand that a 9v battery won’t last long but it will definitely last some 5 to 20 hours (depending on what is connected to the arduino)
THe reason for suggeting LiPo is the inherent superiority in practical projects. The 9V battery is a terrible power source.Yes, 9v to the Vin is fine, I don’t understand why other members try to make things more complicated and less safe by instructing you to use LiPo batteries
Understand that a 9v battery won’t last long but it will definitely last some 5 to 20 hours (depending on what is connected to the arduino)
From the Arduino website:So if I connect a 9v source (for example) to the Vin pin on the arduino nano, it will work away with no issues because the 9v source is regulated to 5v? If so that is the answer I was looking for!
Just to be sure, you can only connect a 5V regulated power source to pin 27. A battery should NOT be connected here. Pin 27 connects to the output of the 5V regulator. Vin connects prior to the 5V regulator and thus can regulate the power from a battery.From the Arduino website:
Power
The Arduino Nano can be powered via the Mini-B USB connection, 6-20V unregulated external power supply (pin 30), or 5V regulated external power supply (pin 27). The power source is automatically selected to the highest voltage source.
Yes, I hope that was clear when I said there would need to be a boost converter involved, but I suppose to make it even more clear, if you put cells in a series to get a higher voltage, you will need a buck converter. There are so many boards designed to handle this for just such an application I would strongly encourage learning to use LiPo power sources with the appropriate power management modules over 9V batteries which are really garbage for modern applications.Just to be sure, you can only connect a 5V regulated power source to pin 27. A battery should NOT be connected here. Pin 27 connects to the output of the 5V regulator. Vin connects prior to the 5V regulator and thus can regulate the power from a battery.
So I can power the arduino nano with a power bank via the micro usb port? That sounds great, lot less complicated than using the Vin pin. Not that it's not very complicated to begin with!I didn't mention, but should, if you were willing to use the USB input then a single cell 18650 powerbank provides more capacity than a 9V battery, has charge circuitry built in, and is cheap. A short cable and the powerbank is a quick way to get a good power source if you don't have a high run time requirement nor a size constraint that prohibits it.
No special knowledge required, rechargeable, cheap, readily available, extremely superior to the obsolete 9V "transistor" battery which needs to find its final rest.