1

I have arduino mega and Lipo batterry such this and Lipo battery charger 5V USB Boost. I am powering arduino normally from barrel Jack with an 9 Volt adaptor. But if there is power cut occur, I dont want to stop, I want powering arduino with Lipo battery. After power come back, arduino contunie to powering from barrel jack again at the same time battery start to charge. How can I succes this. Do you have any sample circuit?

After Majenko♦ comment, I've tried circuit but there is heating problem occur. More then 70 celsius. Is that normal?

Circuit

enter image description here

Termal Circuit

enter image description here

mehmet
  • 225
  • 1
  • 8
  • 1
    Plug the (boosted) battery into the USB socket. Job done. – Majenko Aug 07 '20 at 16:18
  • ;) if i try that, boost is heating much more. Is that normal – mehmet Aug 07 '20 at 17:27
  • 1
    No, that's not normal. If the barrel jack power is greater than 7V then the USB power should be isolated. – Majenko Aug 07 '20 at 18:34
  • 1
    Majenko, you have it backwards. That boost circuit is designed to have 5V OUT at the USB and <5V in at the other end, so you can use a 1S LiPo battery to charge a cell phone. So, the battery goes to the input, while the power can be tapped from the USB connector output to the 5V pin on the Arduino to power the Arduino with 5V. A Schottky diode should probably go from the 5V out on the boost converter to the 5V pin on the Arduino to prevent backflow as well. Charging the LiPo battery from the barrel jack is another issue. That will require a LiPo charge controller IC. – Gabriel Staples Aug 07 '20 at 22:45
  • @Majenko I've edited question with your solution but termal problem seen – mehmet Aug 08 '20 at 09:15
  • @GabrielStaples that's why I say the boosted battery. And the usb power circuit deals with the isolation for you. The P-FET is the diode to prevent back powering and there is a handy polyfuse for added protection too. – Majenko Aug 08 '20 at 10:49
  • @mehmet, woah, that's cool! I need a thermal camera. That's super useful. Your images are very low quality/low resolution though. Can you upload higher-resolution images? – Gabriel Staples Aug 08 '20 at 18:29
  • Is that a genuine Arduino Mega or a cheap Chinese knock-off? If the latter they probably skimped on the power circuitry. – Majenko Aug 08 '20 at 21:41
  • @GabrielStaples thnks! this is the seek thermal compact pro. Sorry about resulution this is max resulution 320 x 240 Thermal Sensor. – mehmet Aug 09 '20 at 04:47

1 Answers1

2

As is described in this post from the arduino forum, There is a MOSFET switch in series with the USB connector +5V input line. If the battery booster 5V output is connected to the USB input jack, then it will automatically power the UNO whenever power is disconnected from the barrel jack, and will be automatically disconnected whenever at least 7.0V is available at the barrel jack.

If you are experiencing over-heating problems, then you are probably overheating the linear regulator that steps down the barrel jack voltage to 5V. You need about 7-7.5V at the barrel jack to overcome the 2-2.5V loss through the linear regulator, but anything higher than about 7.5V will just cause the linear regulator to get hotter.

starship15
  • 666
  • 4
  • 9
  • thanks for technic answer. If so I have something on my mind, only powering from barrel jack (9v) should make heating problem has to do it but it doesn't work like that with only powering from barrel dont make any heating problem – mehmet Aug 12 '20 at 18:13