0
\$\begingroup\$

I am trying to make an emergency button with an Arduino Nano. It should work with and without input voltage, so I made this circuit:

enter image description here

If there is a 5 V input voltage the Nano should be supplied directly from the input voltage. In the meantime the battery can charge. If the electricity has gone the Nano should be supplied by a Li-ion battery. Not for a long time; 30 minutes is enough for me. So I have added a diode.

If I look at the schemaric of the Nano it looks like 5 V is directly connected to the ATmega328p chip.

Part of Arduino Nano schematics

In the docs of Atmege328p it says the operating voltage 2.7-5.5 V. I can achieve 5 V frim the input voltage and 3.6 V from the Li-ion battery.

So at this point everything looks fine but at Arduino Nano products page there is NOTE!

If supplied with less than 7V, however, the 5V pin may supply less than five volts and the board may become unstable.

and this

Supplying voltage via the 5V or 3.3V pins bypasses the regulator, and can damage your board. We don't advise it.

In this case, I wasn't sure myself. Will it be a problem if I feed the Arduino Nano in this way? I have made a prototype and it worked for almost a hour with the "blink" example, and it looked like it was working fine. If I plug in 5 V or plug out input voltage, the system doesn't stop.

\$\endgroup\$
3
  • 1
    \$\begingroup\$ Aside from the main topic of question, as much as I've searched, that particular battery in the picture (forte 14500 lithium battery) is no a lithium-ion battery thus, not rechargeable. so watch out for them. \$\endgroup\$ Commented Dec 31, 2021 at 22:09
  • \$\begingroup\$ Nothing in Google says that the Li-SOCL2 Battery is rechargeable. \$\endgroup\$
    – Audioguru
    Commented Jan 1, 2022 at 3:20
  • \$\begingroup\$ @TirdadSadriNejad yes you are right image is wrong. i will change \$\endgroup\$
    – mehmet
    Commented Jan 1, 2022 at 7:51

2 Answers 2

1
\$\begingroup\$

It won't be a problem as long you don't feed more than 5V through that pin. They don't advise using it to power just because Arduino are supposed to be powered though its on-board voltage regulator. But as you can see, USB +5V power are connected directly there too. So it should be safe.

Please note that MCU maximum possible MHz are dependent on supply voltage. You can see this in "Electrical characteristics" part of the datasheet:

Vcc vs MHz slope

As Arduino Nano runs from 16 Mhz crystal you should be fine while you battery supplies 3.6V. Li-Ion batteries are supposed to work in the 3-4.2V range. But as long as the battery discharges and its voltages drops you can become out of that "Safe Operating Area". Honestly, just from personal experience, ATmega328P will still work at 16Mhz down to 3V. But it's not guaranteed by the vendor. You have several options here - use a step-up DC-DC or re-programm ATmega fuses to enable Brown Out Detection or switch to internal 8 MHz RC, or change the on-board crystal to lower value.

PS: Also as others noted in comments above, make sure you pick a rechargeable Li-Ion battery compatible with that TP4056 charger board. The one you have on your diagram aren't a rechargeable one. Common rechargeable Li-Ion chemistry are rated for 3.7V nominal.

\$\endgroup\$
4
  • \$\begingroup\$ thanks for info, you said "But as long as the battery discharges and it's voltages drops you can become out of that "Safe Operating Area". but is tp4056 overdischare is not enough. this documents says "Over-Discharge Detection Voltagw 2.4 V ±100 mV". addicore.com/TP4056-Charger-and-Protection-Module-p/ad310.htm \$\endgroup\$
    – mehmet
    Commented Jan 1, 2022 at 8:06
  • \$\begingroup\$ @mehmet I wasn't talking about charging battery. See the graph in my answer. \$\endgroup\$
    – NStorm
    Commented Jan 1, 2022 at 8:13
  • \$\begingroup\$ yea yea I understand, you say that if battary goes lower than 1.8 V (from graph), it makes unsafe area. But DW01A has a overdischarge protection at 2.4V. So never battery enter the unsafe area. i mean \$\endgroup\$
    – mehmet
    Commented Jan 1, 2022 at 8:24
  • \$\begingroup\$ @mehmet note the Y axis too. Your Arduino runs @ 16Mhz meaning safe operating voltage are roughly ends down between 4.5 & 2.7V (20 Mhz & 10 Mhz safe voltage). It's linear and it would be ~3.8V for 16 MHz. \$\endgroup\$
    – NStorm
    Commented Jan 1, 2022 at 8:31
0
\$\begingroup\$

Best solution:

Buy a 5 V power bank. Done.


So-so solution:

Your top circuit, but remove the long dotted red wire. a) it's not required and b) it backfeeds from the cell to the USB port (computer).

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.