Author Topic: Simple voltage cutoff schematic for solar charger, any tips?  (Read 4570 times)

0 Members and 1 Guest are viewing this topic.

Offline PsiTopic starter

  • Super Contributor
  • ***
  • Posts: 10385
  • Country: nz
Simple voltage cutoff schematic for solar charger, any tips?
« on: April 18, 2022, 04:00:19 am »
Hi,
I'm building a simple circuit to disconnect a 18V solar panel from a 12V SLA once the SLA is charged.

The main requirement is that it has to go into a very small plastic case and may receive quite hot ambient temps. 50C etc.
So burning off excess solar panel power isn't really an option. 
eg I tested a simple zener (18V-12V = 4V @ 350mA = 1.4W of heat) and it started to melt the plastic.

So I created this circuit to have the panel connected across the SLA only until the voltage hits 14V at which point the pfet opens and disconnects the panel.

I would appreciate and tips or bugs you can see with it.

-I'm aware I wont get the full power from the panel due to no MPTT, doesn't matter for this. Just needs to be as simple as possible.

-I'm aware there will be some slow SLA discharge through R3, R2 if the panel is producing enough voltage to turn on M3 and M1 but not enough voltage to charge the SLA. But that's only 200K across a 30Ah SLA so not of any concern.

-D2 zener obviously sets the cut-off point.  D3,4,5 are just to protect the fet gates.

-The exact part numbers used in the LTSpice schematic are not what i will actually intend to use, just examples for testing.

Thanks.
LTSpice file attached below if anyone wants it.


Green= Current into battery
Blue = power in PFET
Aqua = Voltage across panel
Red = Voltage across battery
« Last Edit: April 18, 2022, 04:06:24 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 20357
  • Country: gb
  • 0999
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #1 on: April 18, 2022, 07:45:20 am »
Why not use the TL431, or TLVH431, for lower current consumption?
 

Offline PsiTopic starter

  • Super Contributor
  • ***
  • Posts: 10385
  • Country: nz
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #2 on: April 18, 2022, 08:23:56 am »
Why not use the TL431, or TLVH431, for lower current consumption?

Any solution using a regulator/zener is going to burn off excess energy as heat once the SLA is charged. The tight design constraints wont handle that much heat dissipation.

I don't want to go down the DCDC route at this stage, need to get something out quickly to fix a problem.
Greek letter 'Psi' (not Pounds per Square Inch)
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 20357
  • Country: gb
  • 0999
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #3 on: April 18, 2022, 09:00:20 am »
Why not use the TL431, or TLVH431, for lower current consumption?

Any solution using a regulator/zener is going to burn off excess energy as heat once the SLA is charged. The tight design constraints wont handle that much heat dissipation.

I don't want to go down the DCDC route at this stage, need to get something out quickly to fix a problem.
The TL431 can be used as a comparator, which turns off a transistor, thus disconnecting the battery from the solar cell.
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3382
  • Country: gb
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #4 on: April 18, 2022, 09:31:43 am »
Why not use a basic PWM solar regulator which is designed for this purpose? The lower current (5-10A) devices are very inexpensive, maybe $5.
 

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 10173
  • Country: gb
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #5 on: April 18, 2022, 09:38:47 am »
The TL431 can be used as a comparator, which turns off a transistor, thus disconnecting the battery from the solar cell.

You'd probably need to implement current sensing too for that to work. The battery needs to sit at around 13.6 - 14V for long enough for its charge current to drop off to a low level, otherwise it won't reach 100% charge.

In an ideal world, a 14V shunt regulator (TL431 and shunt transistor) would work best for the battery health - hopeless from the heat dissipation perspective of course.


EDIT: At an ambient of up to 50'C, thermal compensation of charge voltage is probably a must-have too.
« Last Edit: April 18, 2022, 09:42:09 am by Gyro »
Best Regards, Chris
 

Offline PsiTopic starter

  • Super Contributor
  • ***
  • Posts: 10385
  • Country: nz
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #6 on: April 18, 2022, 10:08:17 am »
I'm beginning to think the easiest/quickest solution it to use a cheap 4pin MCU to control a NMOS load switch based on an ADC reading every 30 sec.  But using a MCU for this just makes me sad.

The current analog circuit design has some issues with switching speed.  Takes too long to move through the transition from on to off and needs a comparator, but as soon as I add a chip I might as well replace lots of it with a MCU can call it a day.
« Last Edit: April 18, 2022, 10:14:00 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 20357
  • Country: gb
  • 0999
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #7 on: April 18, 2022, 10:22:50 am »
The TL431 can be used as a comparator, which turns off a transistor, thus disconnecting the battery from the solar cell.

You'd probably need to implement current sensing too for that to work. The battery needs to sit at around 13.6 - 14V for long enough for its charge current to drop off to a low level, otherwise it won't reach 100% charge.
The end of charge voltage should be set higher than the float voltage to ensure it fulling charges.

You should set the cut-off voltage to 14.5V.
I'm beginning to think the easiest/quickest solution it to use a cheap 4pin MCU to control a NMOS load switch based on an ADC reading every 30 sec.  But using a MCU for this just makes me sad.

The current analog circuit design has some issues with switching speed.  Takes too long to move through the transition from on to off.

That's a reasonable solution. It would make it much easier to add a temperature sensor to make the cut-off voltage temperature dependant. I'd probably do something crude with a switch, case statement, but no doubt the C gurus here will know a better way to do it.
 

Offline PsiTopic starter

  • Super Contributor
  • ***
  • Posts: 10385
  • Country: nz
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #8 on: April 18, 2022, 10:42:50 am »
The more I think about it the more i like the MCU option.  That was until I looked at stock levels of sub $1 MCUs at digikey.

Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 10173
  • Country: gb
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #9 on: April 18, 2022, 11:03:53 am »
You could factor in a thermistor adc input then, thermally coupled to the battery.

P.S. Splash out and treat yourself to a $2 MCU.
« Last Edit: April 18, 2022, 11:07:03 am by Gyro »
Best Regards, Chris
 

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 10173
  • Country: gb
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #10 on: April 18, 2022, 11:12:48 am »
The end of charge voltage should be set higher than the float voltage to ensure it fulling charges.

You should set the cut-off voltage to 14.5V.

By the time you get to 50'C, the cyclic charge voltage would probably a fair bit lower than that. Even with a cyclic charge, you need to allow the current to decay to get to 100%. If you set the end of charge too high then you'll end up with venting SLAs or bubbling flooded LAs as applicable.
Best Regards, Chris
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 20357
  • Country: gb
  • 0999
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #11 on: April 18, 2022, 04:11:22 pm »
The more I think about it the more i like the MCU option.  That was until I looked at stock levels of sub $1 MCUs at digikey.
How many do you need?

The end of charge voltage should be set higher than the float voltage to ensure it fulling charges.

You should set the cut-off voltage to 14.5V.

By the time you get to 50'C, the cyclic charge voltage would probably a fair bit lower than that. Even with a cyclic charge, you need to allow the current to decay to get to 100%. If you set the end of charge too high then you'll end up with venting SLAs or bubbling flooded LAs as applicable.
Then you need to adjust the cut-off voltage depending on the temperature.
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16385
  • Country: za
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #12 on: April 18, 2022, 04:47:55 pm »
Simplest is to use the isolation diode to actually do work, and have your voltage comparator on the input operate a nice beefy MOSFET to short the panel output to ground. Diode isolates the battery from the short, and the panels do not mind running into a short circuit, they are energy limited anyway. Low on state resistance, so low dissipation, and so long as you put a few seconds of delay into the output of the comparator, ie a nice RC delay to a second comparator, with a lot of hysteresis, so the output is going to have to stay in one state or the other for the first one, before the output changes state. Battery gets fully charged, then gets a pulsed charge that compensates if you have any load that pulls charge off it.

Comparator and such fed from the battery side, and you can also add in a third comparator, to disconnect the load on low battery voltage as well. Another low Rds mosfet there. Can be done with a small MCU or some low power comparators and some CMOS schmitt trigger inverters, and a TL431 as voltage reference, and some high value resistors to divide down battery voltage to them.
 
The following users thanked this post: Psi

Offline floobydust

  • Super Contributor
  • ***
  • Posts: 7678
  • Country: ca
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #13 on: April 18, 2022, 05:11:14 pm »
Not advocating but there are shunt-regulator solar charge controllers out there, also some just using a relay to disconnect the panel.
Why such a primitive charge controller still exists i.e. Specialty Concepts ASC-12:
No PWM EMI
*Will initiate charging into a dead battery (hear that Morningstar, your crap runs entirely off the battery side). This is important!

OP I would only include temperature-compensated charging voltage, add a couple diodes to a TL431 or TLV431 (At -3% month self-discharge that's about 1.25mA steady drain.)
Power dissipation on a shunt reg at 1.4W is not much for a power transistor or mosfet with a small heatsink. For linear series-pass, it's the same actually when charging full tilt.

I think a 8W panel paired with 30Ah SLA is a bit weak for charging, but I'm not sure what sun and ambient temps, load is like for the project.
« Last Edit: April 18, 2022, 05:32:55 pm by floobydust »
 

Offline PsiTopic starter

  • Super Contributor
  • ***
  • Posts: 10385
  • Country: nz
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #14 on: April 18, 2022, 09:32:51 pm »
Yeah, i've been looking at options for driving a N-FET low side switch using a comparator with hysteresis. Which is looking like it should work fine and be small enough to fit in the tight space.

Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline PsiTopic starter

  • Super Contributor
  • ***
  • Posts: 10385
  • Country: nz
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #15 on: April 18, 2022, 09:36:02 pm »
The more I think about it the more i like the MCU option.  That was until I looked at stock levels of sub $1 MCUs at digikey.
How many do you need?

Not that many. Maybe 1000 a year, but I like to design products using a MCU that digikey/mouser stock at least 30k of, which is getting very hard of late.
I just really hate having to redesign a product every few months to use a new MCU, its starting to get annoying.
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 7521
  • Country: ca
  • Non-expert
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #16 on: April 18, 2022, 11:34:33 pm »
Digikey only has stock of ancient MSP430 and Cypress parts, so I think that methodology doesn't work so well anymore, for MCUs at least.

https://lcsc.com/product-detail/ST-Microelectronics_STMicroelectronics-STM32G030F6P6TR_C529330.html
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 28429
  • Country: nl
    • NCT Developments
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #17 on: April 19, 2022, 12:06:08 am »
Yeah, i've been looking at options for driving a N-FET low side switch using a comparator with hysteresis. Which is looking like it should work fine and be small enough to fit in the tight space.
Maybe an NE555 can be used for such a circuit >:D
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 20357
  • Country: gb
  • 0999
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #18 on: April 19, 2022, 12:03:00 pm »
I was thinking of something like this.

Part of, or all of R1 or R2 can be a thermistor.

It's a crude model so don't take it seriously. CL is the battery, which I know doesn't look like a battery in real life. There's diode to prevent self-discharge, but that's often integrated into the panel.
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3382
  • Country: gb
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #19 on: April 19, 2022, 03:52:54 pm »
I was thinking of something like this.

Once it's switched off it wouldn't switch on again during the day if the battery voltage drops, though it would (probably) reset overnight.  Maybe that's ok for the OP?
 

Offline PsiTopic starter

  • Super Contributor
  • ***
  • Posts: 10385
  • Country: nz
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #20 on: April 21, 2022, 11:29:18 am »
Thanks for the circuit.

Yeah, it's an option, but i think just disconnecting the panel has more advantages.

Most likely using a comparator setup with schmitt trigger to control the fet.
Need enough hysteresis so when you cut off charging the voltage doesnt drop enough to turn it back on again
Greek letter 'Psi' (not Pounds per Square Inch)
 

Online snarkysparky

  • Frequent Contributor
  • **
  • Posts: 419
  • Country: us
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #21 on: April 21, 2022, 11:58:40 am »
https://www.digikey.com/en/products/detail/microchip-technology/ATTINY412-SSNR/8594943

Do the MCU route.  It's handy when you determine you need more function from the circuit after building.
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9321
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #22 on: April 21, 2022, 12:32:55 pm »
Once it's switched off it wouldn't switch on again during the day if the battery voltage drops, though it would (probably) reset overnight.  Maybe that's ok for the OP?
Connect the load on the same side of the MOSFET as the solar panel, then it will supply the load from the panel once full charge is reached.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 
The following users thanked this post: Zero999

Online Zero999

  • Super Contributor
  • ***
  • Posts: 20357
  • Country: gb
  • 0999
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #23 on: April 21, 2022, 12:37:31 pm »
Once it's switched off it wouldn't switch on again during the day if the battery voltage drops, though it would (probably) reset overnight.  Maybe that's ok for the OP?
Connect the load on the same side of the MOSFET as the solar panel, then it will supply the load from the panel once full charge is reached.
Exactly. When it gets dark, the MOSFET's body diode will conduct, allowing the battery to power the load.


https://www.digikey.com/en/products/detail/microchip-technology/ATTINY412-SSNR/8594943

Do the MCU route.  It's handy when you determine you need more function from the circuit after building.
The more I think about it the more i like the MCU option.  That was until I looked at stock levels of sub $1 MCUs at digikey.
How many do you need?

Not that many. Maybe 1000 a year, but I like to design products using a MCU that digikey/mouser stock at least 30k of, which is getting very hard of late.
I just really hate having to redesign a product every few months to use a new MCU, its starting to get annoying.


Thanks for the circuit.

Yeah, it's an option, but i think just disconnecting the panel has more advantages.
Which is exactly what the circuit I posted does.

Do you need to switch the positive side of the panel for any reason?
« Last Edit: April 21, 2022, 12:39:15 pm by Zero999 »
 

Offline PsiTopic starter

  • Super Contributor
  • ***
  • Posts: 10385
  • Country: nz
Re: Simple voltage cutoff schematic for solar charger, any tips?
« Reply #24 on: April 23, 2022, 04:18:51 am »
Thanks for the circuit.

Yeah, it's an option, but i think just disconnecting the panel has more advantages.
Which is exactly what the circuit I posted does.

Do you need to switch the positive side of the panel for any reason?

Sorry, i got confused and thought your circuit was one that shorted out the panel.

Yeah, i've been thinking about this and doing some testing but the main problem with the comparator + nfet idea seems to be that it will need quite a bit of hysteresis added.
Which is doable, it just makes it more complicated as it probably needs a second opamp to buffer the input so the hysteresis feedback can be added to the comparator without needing a low impedance threshold source that needlessly uses up the battery.
Without 1-2V of hysteresis it will oscillate due to the voltage falling as soon as charging stops which turns charging on again.
That oscillation will likely settle into a state where the mosfet is conducting 'just' enough to dissipate the unwanted voltage as heat, which is back to the initial problem we're trying to solve.

The MCU idea will work great, and is simple.
I also like that idea of using a 555 timer that nctnico suggested, maybe somewhat jokingly.
Have the voltage cutoff threshold trigger 555 to do a 30sec fet disconnection period repeatedly.  Technically it is still charging just a very short pulse every 30sec which is just long enough to retrigger the 555. But i think that is fine. It solves all the problems I can think of, only downside is it needs more parts to setup the 555 compared to using a MCU.
« Last Edit: April 23, 2022, 04:29:56 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf