Switch between voltage sources automatically and charge battery

Thread Starter

Rtlane

Joined Dec 27, 2015
27
You have more variables consider.

You have 3 different voltages to contend with. Your 12V adapter, your "12V" charger (which you've stated has a higher voltage), and the battery voltage. As you've wired them in your latest drawing, you have the charger and PSU fighting each other. You didn't have that problem in your original drawing because the jack was only allowing the adapter or battery/charger to be in-circuit. Your diagram isn't correct anyway. The charger would be across the battery terminals and with the diodes, there would be no conflict.

Then you need to deal with the situation where the PSU is off. Will you just unplug it from the outlet or will you physically disconnect it?

Finally, you need to address the situation where the charger is charging the battery and the circuit is being operated from the battery. The circuit draws more current than the charger can provide, so it can't charge the battery and power the circuit at the same time. It's also unclear whether your circuit would tolerate the charging voltage.
I figured if I got a wall psu with a higher voltage, say 14v, then it would take priority to the load due to the diode ORing. The chargers "inputs" are parallel to the 14v, so i figured while plugged into the wall, that the 14v would power the load since it would be higher than the battery voltage and the 14v would power the charger. When the 14v is unplugged, then the battery will power the load.

I guess my thinking was incorrect. Lol ill have to try again. Haha
 

dl324

Joined Mar 30, 2015
16,935
The "wall PSU" could be regulated, but the inexpensive ones are more likely to be unregulated; so 12V adapter could give 1.414*12V=17V peak (minus a diode drop).
 

tcmtech

Joined Nov 4, 2013
2,867
Will this work if my wall psu voltage is higher than the battery? I try to figure out some other ways as well.
I don't see any problem with it and it's how I would wire it up given that as you have it drawn your charger is also powered by the same power source. I say wire it up and see what happens!
 

Thread Starter

Rtlane

Joined Dec 27, 2015
27
I don't see any problem with it and it's how I would wire it up given that as you have it drawn your charger is also powered by the same power source. I say wire it up and see what happens!
I ran it through multisim, but theres no chargers, so i used a resister in place of the charger. I think i will have to put a diode in series with the charger cause if the charger outputs the same voltage as the wall psu, then the diode oring wont work i dont think. Chances are the output voltage of the charger will be less than the input voltage, but better safe than sorry. What do u think?
 

Thread Starter

Rtlane

Joined Dec 27, 2015
27
I have no idea what that's supposed to be showing me.

Please learn to draw a proper schematic.
I am learning. I explained the schematic above: "I ran it through multisim, but theres no chargers, so i used a resister in place of the charger. I think i will have to put a diode in series with the charger cause if the charger outputs the same voltage as the wall psu, then the diode oring wont work i dont think. Chances are the output voltage of the charger will be less than the input voltage, but better safe than sorry. What do u think?"

I appreciate you trying to help.
 
Last edited:

Thread Starter

Rtlane

Joined Dec 27, 2015
27
Also, how would of you drew the schematic in multisim. There is no way of putting a charger in there. I used a resistor as a charger and a resistor as the load (my circuit).
 

dl324

Joined Mar 30, 2015
16,935
Also, how would of you drew the schematic in multisim. There is no way of putting a charger in there. I used a resistor as a charger and a resistor as the load (my circuit).
I do most of my designs with the simulator between my ears.

A voltage source is more appropriate for the charger than a resistor.
upload_2015-12-28_11-10-31.png
From this diagram, it's clear that if PSU and Charger are both on, the circuit would be powered from the Charger. If PSU is disconnected and Charger is on, circuit would be powered from Charger. If PSU was on and Charger off, PSU would power the circuit and charge the battery.

And, of course, there's a conflict in the diodes.

Since you're learning, don't use the simulator; learn the basics and have more faith in your knowledge.
 

Thread Starter

Rtlane

Joined Dec 27, 2015
27
I do most of my designs with the simulator between my ears.

A voltage source is more appropriate for the charger than a resistor.
View attachment 97418
From this diagram, it's clear that if PSU and Charger are both on, the circuit would be powered from the Charger. If PSU is disconnected and Charger is on, circuit would be powered from Charger. If PSU was on and Charger off, PSU would power the circuit and charge the battery.

And, of course, there's a conflict in the diodes.

Since you're learning, don't use the simulator; learn the basics and have more faith in your knowledge.
Thanks for the input. How would you suggest I go about this then?
 

dl324

Joined Mar 30, 2015
16,935
A word of caution for you.

Most Posters on this site will try to be helpful; that doesn't prevent well-intended, but incorrect information from being given. Others will intentionally give bad advice. It's up to you to decide which is which...
 

dl324

Joined Mar 30, 2015
16,935
Thanks for the input. How would you suggest I go about this then?
If you want help solving a problem you're in the right place. If you're looking for someone to design a solution for you without you putting forth your best effort, you won't find many takers.
 

Thread Starter

Rtlane

Joined Dec 27, 2015
27
I do most of my designs with the simulator between my ears.

A voltage source is more appropriate for the charger than a resistor.
View attachment 97418
From this diagram, it's clear that if PSU and Charger are both on, the circuit would be powered from the Charger. If PSU is disconnected and Charger is on, circuit would be powered from Charger. If PSU was on and Charger off, PSU would power the circuit and charge the battery.

And, of course, there's a conflict in the diodes.

Since you're learning, don't use the simulator; learn the basics and have more faith in your knowledge.
The wall psu is whats powering the charger, without it plugged in, the charger isn't putting any voltage out. You have to provide your own voltage to this particular charger. I posted a link to the charger above in another post.
I thought if I was using the diode ORing that the circuit would be powered with the highest voltage source, like a 14v psu for example? So with the 14v psu plugged in, the charger will be powered with the 14v minus the series diode which makes it a lower voltage. So the circuit should be powered with the 14v psu which is the higher voltage. With the 14v psu not plugged in, then the charger wont be putting any voltage out cause its not being powered. So the battery should be powering my circuit cause it would be the only voltage without the 14v psu plugged in. This is the way I was thinking lol
 

Thread Starter

Rtlane

Joined Dec 27, 2015
27
A word of caution for you.

Most Posters on this site will try to be helpful; that doesn't prevent well-intended, but incorrect information from being given. Others will intentionally give bad advice. It's up to you to decide which is which...
Haha. Thanks for the advice, I can understand that. I never intended to "try" a design on my circuit unless I was 100% sure it would work.
 

tcmtech

Joined Nov 4, 2013
2,867
The wall psu is whats powering the charger, without it plugged in, the charger isn't putting any voltage out. You have to provide your own voltage to this particular charger. I posted a link to the charger above in another post.
I thought if I was using the diode ORing that the circuit would be powered with the highest voltage source, like a 14v psu for example? So with the 14v psu plugged in, the charger will be powered with the 14v minus the series diode which makes it a lower voltage. So the circuit should be powered with the 14v psu which is the higher voltage. With the 14v psu not plugged in, then the charger wont be putting any voltage out cause its not being powered. So the battery should be powering my circuit cause it would be the only voltage without the 14v psu plugged in. This is the way I was thinking lol
That's how I am seeing it and I see no problems with the power flow logic.
 

dl324

Joined Mar 30, 2015
16,935
The wall psu is whats powering the charger, without it plugged in, the charger isn't putting any voltage out. You have to provide your own voltage to this particular charger. I posted a link to the charger above in another post.
I thought if I was using the diode ORing that the circuit would be powered with the highest voltage source, like a 14v psu for example? So with the 14v psu plugged in, the charger will be powered with the 14v minus the series diode which makes it a lower voltage. So the circuit should be powered with the 14v psu which is the higher voltage. With the 14v psu not plugged in, then the charger wont be putting any voltage out cause its not being powered. So the battery should be powering my circuit cause it would be the only voltage without the 14v psu plugged in. This is the way I was thinking lol
This is what I think you're describing:
upload_2015-12-28_11-50-29.png
What is unclear is how you plan to charge the battery and not have the charger power your circuit.

When the charger isn't being powered, it might appear as no load to the battery; but, then again, it might not.
 
Top