Switching battery between charger and load
SSteve
Posts: 808
I'm designing an SX-based device to switch power to the amplifiers on my home theater system. I've got the software done, but I have very little hardware experience so I'm hoping I can get a little help.
Part of the setup is a car audio crossover that's been modified for my application, a 12V lead-acid battery to power it, and a charger for the battery. Currently I have a mechanical break-before-make switch that either connects the charger to the battery or the battery to the crossover. I'm trying to control these connections from SX pins. Here's what I've come up with so far:
Here's what I think should happen: When RD1=1 and RD0=0, the battery will be connected to the crossover. When RD1=0 and RD0=1, the charger will be connected to the battery. When RD1=1 and RD0=1, the battery won't be connected to anything. Is that correct?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
links:
My band's website
Our album on the iTunes Music Store
Post Edited (SSteve) : 12/29/2006 12:00:51 AM GMT
Part of the setup is a car audio crossover that's been modified for my application, a 12V lead-acid battery to power it, and a charger for the battery. Currently I have a mechanical break-before-make switch that either connects the charger to the battery or the battery to the crossover. I'm trying to control these connections from SX pins. Here's what I've come up with so far:
Here's what I think should happen: When RD1=1 and RD0=0, the battery will be connected to the crossover. When RD1=0 and RD0=1, the charger will be connected to the battery. When RD1=1 and RD0=1, the battery won't be connected to anything. Is that correct?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
links:
My band's website
Our album on the iTunes Music Store
Post Edited (SSteve) : 12/29/2006 12:00:51 AM GMT
Comments
·
·· One thing you should probably plan into the circuit is a fail-safe…What if the SX is not powered? ·In this case the default state of the MOSFETS will be both connected. ·What you need to do is change things around so that the MOSFETS are connected through a small resistor (say, 220 Ohm) to the I/O pins and that they have 10K pull-down resistors on them. ·That way the default state would be off if the controller was off. ·I hope this helps.· Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Here's the updated design:
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
links:
My band's website
Our album on the iTunes Music Store
I would just plug the charger into the battery and leave it on, assuming it is a smart charger and can reduce current at fully charged level. If the charger is producing noise on the lines thenb that is another issue.
Post Edited (originator) : 12/30/2006 1:41:42 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
links:
My band's website
Our album on the iTunes Music Store
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
links:
My band's website
Our album on the iTunes Music Store
I would first try to use the DC wall mount, if that isn't possible, I'd get a noise supressor for the charger and test whether it can just stay plugged in and then don't switch anything. If the SSR will work great, I never tried them on DC. If not use a relay or PNP mosfet. Actually, you may use a PNP transistor as well, don't know a part number off the top of mu head but I am sure radio shack has some that would work. Since it is just a crossover it can't pull that much current. If you are trying to power amps as well, then the transistor may need to be currenty rated for your gear.
Triacs are very noisy in some cases, especially dimmers that use triacs. You may get by with one on audio at 12 volts.
Thanks a lot for your input. I really appreciate the help. And the patience!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
links:
My band's website
Our album on the iTunes Music Store
If you stick with your original plan, should easily be able to hook up your SSR and check the noise levels without having to build PCB's to test it. I have an old dynaco stereo 120A, one side died and I need to get it back up and running, it is a great amp for small speakers.
PS You could of course just use Pfets like your original schematic. Numerous options really, you have to just breadboard/perfboard one up and see how you like it prior to etching or ordering boards.
BTW, with Eagle you can send sunstone circuits(pcbexpress) your .brd file only and get boards back in 3 days.
My Dynaco is a Stereo 70 with the Curcio Audio Engineering upgrade board. It's connected to the high-pass output of the crossover and drives a pair of Ariel speakers that I built with some friends. The low-pass from the crossover goes to one channel of a Hafler DH-220 which drives a subwoofer that a friend and I built. Once I get this thing done, I'll take some pictures and post it in the Projects forum.
I just ordered the MODC5s. Now I'll start working on the box for this thing.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
links:
My band's website
Our album on the iTunes Music Store