Author Topic: Battery Auto Select  (Read 1366 times)

0 Members and 1 Guest are viewing this topic.

Offline DubbieTopic starter

  • Supporter
  • ****
  • Posts: 1115
  • Country: nz
Battery Auto Select
« on: November 26, 2017, 08:28:52 pm »
Hi,
I am designing a device that must work from external power when plugged in, when it is, it must charge the internal battery. When it is unplugged it should run from battery power.

I have included a sketch of a design I have come up with. What do you think? Have I missed any better ways to do this? I'm not that excited about the relay, but it seems simple and foolproof.

The microcontroller runs from the battery directly so it can turn on and off the peripherals as necessary.

Any and all comments are gratefully received.

R
 

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: Battery Auto Select
« Reply #1 on: November 27, 2017, 01:48:17 pm »
"Any and all comments are gratefully received."

Your diagram is next to useless ?
I don't think the relay would energize very often ?
Maybe the load could be connected to the boost conv at all times ?
.  That took much longer than I thought it would.
 

Offline richard.cs

  • Super Contributor
  • ***
  • Posts: 1191
  • Country: gb
  • Electronics engineer from Southampton, UK.
    • Random stuff I've built (mostly non-electronic and fairly dated).
Re: Battery Auto Select
« Reply #2 on: November 27, 2017, 02:06:25 pm »
Additionally

  • I don't think your relay is doing what you expect. When do you want it to switch?
  • Related to the above - what's the diode for? did you mean something like this:
  • Does the load care about an interruption of tens of milliseconds?
  • It looks like the boost converter runs all the time, just unloaded when there is external power

What's your battery voltage and chemistry? How much current do the loads use? Do you care about power consumption when on the external supply?

It's definitely doable without a relay if you want to get rid of it.
 

Offline WillHuang

  • Contributor
  • Posts: 47
Re: Battery Auto Select
« Reply #3 on: November 27, 2017, 04:56:20 pm »
I had to do something similar to this before. I used this APP note (http://ww1.microchip.com/downloads/en/AppNotes/01149c.pdf) as a starting point. It may help you out
 

Offline DubbieTopic starter

  • Supporter
  • ****
  • Posts: 1115
  • Country: nz
Battery Auto Select
« Reply #4 on: November 27, 2017, 04:57:44 pm »
#1 the relay should switch off when the ext12v is removed.

#2 the diode was indeed in the wrong place. Noticed that after I posted.

#3 the boost converter is switched off with its enable pin. Same as the charger.

#4 vbatt/boost is 9v instead of 12. This is intentional to use less power.

#5 batt chemistry is LiFePo4 1S running between 2.7v and 3.5v. uC is always connected.

#6 don’t care about power usage while plugged in.

#7 current requirements range from between 120mA to 2A (yes boost conv is working hard at this extreme)

One area of concern for me is how the caps may hold 12v briefly on the boost converter output on switchover.
« Last Edit: November 27, 2017, 05:11:38 pm by Dubbie »
 

Offline richard.cs

  • Super Contributor
  • ***
  • Posts: 1191
  • Country: gb
  • Electronics engineer from Southampton, UK.
    • Random stuff I've built (mostly non-electronic and fairly dated).
Re: Battery Auto Select
« Reply #5 on: November 27, 2017, 05:48:41 pm »
Based on the information you've given I would expect you to be able to diode-OR the output of the boost converter and the input supply and simply enable/disable the boost converter based on the absence/presence of external power. Similarly if the right battery charger is selected it should be OK to leave connected to the battery all of the time, many are designed to be used that way.
 

Offline DubbieTopic starter

  • Supporter
  • ****
  • Posts: 1115
  • Country: nz
Re: Battery Auto Select
« Reply #6 on: November 27, 2017, 06:08:10 pm »
I think you are right. I can’t remember now why I abandoned that idea earlier.
 

Offline ITman496

  • Regular Contributor
  • *
  • Posts: 161
  • Country: us
Re: Battery Auto Select
« Reply #7 on: November 27, 2017, 10:32:18 pm »
If the diode drop is too much for you, I've successfully used the LM5050 with some STD12NF06L fets. But of course you can use different ones.  This circuit is nice because it has only as much drop when its turned on as the fet does. Which is very very little compared to a diode. I just built it off of the example schematics in the datasheet, has worked for me about 8 times now.
KD2CHS
 

Offline DubbieTopic starter

  • Supporter
  • ****
  • Posts: 1115
  • Country: nz
Re: Battery Auto Select
« Reply #8 on: November 27, 2017, 11:21:56 pm »
Thanks ITman! That looks promising for sure
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf