diy solar

diy solar

Using solar micro inverters with batteries instead of panels

Yes I tried various PWM devices.
They all got too hot or fried.
Just to be clear I am not sure what I was doing.
Looks like you have the same MicroInverter I have.
You can just plug it in to the bench top power supply without the PWM.
Set it at 24-29V & 8Amp.
You can ramp it up from there.
I have done this with Enphase & SunnyBoy Micro Inverters, for days, loads of times.
If you are worried about frying it let me know the cost.
I will pay, at least, 1/2 the cost or maybe the full cost. (If it gets fried)
I need to know the cost of it FIRST.
Then I will tell you what $ I will put toward it.
Here is a post showing the capacitors on a higher-quality High-Frequency inverter and a low-quality High Frequency inverter: https://diysolarforum.com/threads/not-to-happy-with-magnum.44313/page-3#post-752607

If/when you fry one of your Enphase microinverters, it would be very interesting to know what kind of capacitors it has connected to the DC inputs… (an open call to anyone else who may have a dead Enphase Microinverter).

I have not gone to the trouble of tracing out the circuit to confirm they are connected to the DC inputs, but my single-MPPT-dual-MC4-inout 590W NEP Microinverters contain 8 large 2700uF 63V capacitors that also say 105C.

So just as a placeholder, 8x2700uF = 21,600uF and charging that to 25VDC through a 100mOhm resistance, that would mean an RC time constant 21.6ms, meaning the input is charged to ~12.5VDC after 15.12ms and is fully charged to 25V after 108ms.

Someone with more understanding than I needs to comment on whether this degree of startup surge upon connection looks like anything to be concerned about.

The other concern that has been voiced regarding the use of DC DC converters is high-frequency current ripple heating up the input capacitors.

Page 55 here has the specs for my Samxon GS(R) series capacitors: https://datasheet.lcsc.com/lcsc/2208091800_Man-Yue-Tech-ESK827M1JI30RR_C5123348.pdf

But someone with more knowledge than I of how to interpret capacitor ripple specifications will need to tell me what level of current ripple is likely to overheat and damage 4x2700uF of these capacitors…

(At least I know my dinky 590W Microinverters have 50% more input capacitance than Deye is putting on their higher-end Hybrid Inverters! (8x2700=21,600uF versus 14x1000uF = 14,000uF on the Deye).
 
Last edited:
According to the spec sheet and label on the board it is voltage controlled...a big reason I want to try this one.

I like the idea of a parallel resistance to precharge the output...I have planned on capacitors to smooth the output, doing a very quick calc using 24v, 10a and 1/15000s I get 0.02j per cycle, so I've picked electrolytic caps that store 10x that energy: 1000uf, and I've ordered 5 of them...I'm hoping that 5percent ripple is ok for the inverter but I'll find out one way or another...

I just posted that my Microinverters have 8x 2700uF = 21,600uF of capacitance on their dual inputs. And TI’s chip seems to claim 2% max ripple on output of it’s DC-DC booster (no idea what chip is being used by the cheapo DCDC boosters).

So if your PWM were feeding my Microinverters, the 5000uF you are adding would only reduce ripple by ~33% versus what it would be without them.

And while ripple on your PWM (switching at what frequency?) would no doubt be much worse than that delivered by a DCDC booster, you may be under 5% just relying on the Microinverters DC input capacitance…

What Microinverters are you using?
I've not got a scope although I can probably borrow one if I can't get it working very easily.
I have no idea if these work at all: https://www.amazon.com/gp/aw/d/B09Q13TWY4/ref=ox_sc_saved_image_4?smid=A1VTL661FOEJB1&psc=1

But I’m planning to pick one up when I’ve got ripple to characterize. If it doesn’t work well enough to see the ripple at the magnitude I’m looking for, it will go back to Amazon for a refund…
 
But someone with more knowledge than I of how to interpret capacitor ripple specifications will need to tell me what level of current ripple is likely to overheat and damage 4x2700uF of these capacitors…
You can probably ask someone on the circuit analysis forums to guide you through this (analysis and implementing a compensating circuit), I think I've seen questions like this on r/askelectronics
 
Interesting overview of nighttime consumption of Enphase Microinverters (applicable to any inverter):

He says nothing about the DC input capacitance but Enphase inverters apparently have 3 330nF capacitors across the AC output wires (so 990nF per Microinverter).

Not terribly relevant to our current discussion (no pun intended ;)), but at least it confirms that the 8 x 2700uF caps I see in my NEP 590W dual Microinverters are on the DC input.
 
Interesting overview of nighttime consumption of Enphase Microinverters (applicable to any inverter):

He says nothing about the DC input capacitance but Enphase inverters apparently have 3 330nF capacitors across the AC output wires (so 990nF per Microinverter).

Not terribly relevant to our current discussion (no pun intended ;)), but at least it confirms that the 8 x 2700uF caps I see in my NEP 590W dual Microinverters are on the DC input.
Thanks for this.
It is assisting me to gain more knowlege & understanding.
 
Thanks for this.
It is assisting me to gain more knowlege & understanding.
You should reach out to him and invite him over to check out your setup - if you convince him to do a segment on what you’ve put together, that’ll really get the word out!
 
I just posted that my Microinverters have 8x 2700uF = 21,600uF of capacitance on their dual inputs. And TI’s chip seems to claim 2% max ripple on output of it’s DC-DC booster (no idea what chip is being used by the cheapo DCDC boosters).

So if your PWM were feeding my Microinverters, the 5000uF you are adding would only reduce ripple by ~33% versus what it would be without them.

And while ripple on your PWM (switching at what frequency?) would no doubt be much worse than that delivered by a DCDC booster, you may be under 5% just relying on the Microinverters DC input capacitance…

What Microinverters are you using?

I have no idea if these work at all: https://www.amazon.com/gp/aw/d/B09Q13TWY4/ref=ox_sc_saved_image_4?smid=A1VTL661FOEJB1&psc=1

But I’m planning to pick one up when I’ve got ripple to characterize. If it doesn’t work well enough to see the ripple at the magnitude I’m looking for, it will go back to Amazon for a refund…
I'm using Enphase M250 inverters, the PWM is switching at 15kHz. The inverter runs fine with no additional input capacitance which supports your observation that there is already plenty in the inverter.

After looking at some youtube reviews i've also just ordered a 20a PWM module / 25kHz, the guy reviews it and loads it up, it runs cool at 10A continuous which is what i need so that could be better for my use...we'll see.

Thanks for the amazon link, that looks interesting - i might get one of those scopes to try. I do also have a 150000uf 100v capacitor i could use to smooth things out, i might give that a try, i'm also interested in trying an inductor inline as well but haven't ordered anything yet..
 
I'm using Enphase M250 inverters, the PWM is switching at 15kHz. The inverter runs fine with no additional input capacitance which supports your observation that there is already plenty in the inverter.

After looking at some youtube reviews i've also just ordered a 20a PWM module / 25kHz, the guy reviews it and loads it up, it runs cool at 10A continuous which is what i need so that could be better for my use...we'll see.
A link to those reviews would be great.

So if you want to run your M250 at 125W, you’d run your 20A PWM at 25% duty cycle off of a 25V battery, right?

And switching at 25kHz will cause only 60% of the ripple you get when switching at 15kHz.

For reference, switching the 21,600uF of my Microinverters with 20A at 25kHz @ 25% duty-cycle means 20A for 10uS or 0.2 milliCoulomb per cycle which should result in voltage ripple of ~10mV or 0.04% of 25VDC…

Of course, the real question is what is the impedance of those input capacitors at 25kHz and how much heat gets generated by pushing and pulling 0.2 milliCoulombs into and out of them at that frequency…

Thanks for the amazon link, that looks interesting - i might get one of those scopes to try. I do also have a 150000uf 100v capacitor i could use to smooth things out, i might give that a try, i'm also interested in trying an inductor inline as well but haven't ordered anything yet..
Please let us know if you do - my advice is don’t purchase until you have something ready to test. That gives you 30 days to figure out whether the scope is junk or worth the $45…
 
Thanks. At 10A / 50% duty cycle, seems like you should have little to worry about (at least as fas as the PWM being able to handle it).

I suspect the ripple you see is going to be very small and other than getting the specs on the input capacitors and doing dons analysis, you may have no choice other than running your Microinverter with it in the interests of science.

Since it’ll take two years to know whether the 20-year lifetime was reduced by 90%, I think there is a good chance this PWM rig will work as well the two kundip has been using..
 
Microinverters have no problem dealing with 50/60Hz current and voltage ripple:

779CD278-13CC-43D7-860D-107A9AD78F9E.png
What I’m unable to wrap my head around is whether 25kHz PWM current ripple layered on top of the range between these two operating extremes can cause a problem with overheating the input capacitors…

At 20A @ 50% duty cycle, the shorter-duration current ripple from the PWM controller is more than double absolute current magnitude of the 50/60Hz current ripple that would be coming from a solar panel…

The main reason I’m raising this issue is that we now know that kundip has a DC relay between battery and Microinverter (or DCDC converter and Microinverter), and it’s conceivable the ~100mOhm inline contact resistance of that relay is critical to making his system work.

So you might want to think about using a relay as well or a 100mOhm resistance between PWM and inverter…

At 125W of outout power, an average of 5A through 100mOhm would represent 2.5W or 2%…

Cranked up to 250W if output power, an average of 10A through 100mOhm would represent 10W or 4%…

If you get everything working with a 100mOhm series resistance first and then start reducing that series resistance and eventually eliminating, if it stops working at some point, at least you’ll understand why.

By the way, I found these 50W 100 milliOhm resistors on Amazon: https://www.amazon.com/Resistors-Wirewound-Resistor-Replacement-Converter/dp/B0936VMYJF
 
Last edited:
I do also have a 150000uf 100v capacitor i could use to smooth things out, i might give that a try, i'm also interested in trying an inductor inline as well but haven't ordered anything yet..
So just as a thought exercise, if you connect your 150,000uF capacitor to the Microinverter input and connect the PWM through a 0.1 Ohm resistor, that would translate to an RC time constant of 1.5mS, meaning 7.5ms to reach 99% of equilibrium voltage.

If you are on 60Hz grid, 7.5ms is 45% of total period or 90% of a half-period, so that’s probably about the limit of what might work without losing too much efficiency.

There are 0.05 Ohm and even 0.02 Ohm power resistors which can speed up the 60Hz switching time to 99% to 3.75 or even 1.5ms but you would probably want to check what voltages the MPPT of the Microinverter settles on to get a sense of how many Watts are flowing at the beginning of the transients to be sure you are getting meaty enough resistors.

If the Microinverter was switching between a worst-case of 25VDC for close to 0A and the voltage that delivers 10A for the other half-cycle, 10A x 0.02 Ohms = 0.2V meaning 24.8VDC.

If the worst case voltage drop across an 0.02 Ohm resistor is 0.2V, word-case current is 10A and worst-case power is 2 watts (I^2R).

In that situation, you could probably get by with a 3W 0.02W current sense resistor like this: https://www.amazon.com/Ohmite-Current-Sense-Resistor-0-02/dp/B00DEE94UQ

As I think through it some more, that massive 150,000uF capacitor you have is a fantastic way to characterize exactly what your M250 Microinverter MPPT is doing (assuming you have a simple scope that can capture at at least 1kHz or ideally 100KHz).
 
Since I’m throwing out crazy ideas, I thought I’d add another one.

The risk of powering any Microinverter from a switched DC supply such as a PWM is that the high-frequency current ripple heats up and wears out the input capacitors of the Microinverter prematurely.

kundip has proven that this premature wear out is unlikely to be a concern for at least 2 years (at least when powered by a DCDC converter through a DC relay).

The 25kHz PWM controller you are using should be a worst-worst case as far as introducing high-frequency current ripple that does not exist when powering a Microinverter from a solar panel.

The massive 100,000uF capacitor you have is fantastic for characterization but not practical for an Everyman solution (too costly).

But 10,000uF capacitors of the same class as those used on the input of Microinverters are not prohibitively costly: https://www.amazon.com/Ohmite-Current-Sense-Resistor-0-02/dp/B00DEE94UQ

So my latest thought is ‘why not use one of these 10,000uF capacitors as a canary to protect the Microinverter?’

If the PWM is connected to one of these 10,000uF 63V capacitors before connecting through an 0.1, 0.05, or 0.02 Ohm resistor to a Microinverter input with 21,600uF or 10,800uF of 63V input capacitance of its own, the 10,000uF capacitor has got to see far more current ripple at 25kHz than the input capacitors, so if that level of PWM-induced 25kHz current ripple is an issue, the 10,000uF capacitor should burn out far before any of the Microinverter’s input capacitors.

An idealized model would have the MPPT of the Microinverter switching between 25V and 24.8V @ 60Hz for 125W of input power (through a 100mOhm resistor), while the PWM maintains an output averaging 24.8 V for 16.7mS followed by 25.0V for 16.7mS by pushing out 10A for 20uS followed by pushing out 0A for 20uS (so 5A of output current on average).

The Microinverter is also Maintaining an average input current of 5A but at 60Hz, drawing 10A for 16.7mS while the MPPT puts 24.8V on the input followed by 0A for 16.7ms while the MPPT puts 25.0V on the input and the PWM gets it’s output charged up to 25.0V as well (in 20uS steps every 40uS).

Worst-case currents across the 0.1 Ohm resistor (and hence the input capacitors) at 25kHz would be 0.2V / 0.1Ohm = 2A for 20uS, but that current is primarily stepping PWM output voltage up to 25.0V and then down to 24.8V @ 60Hz, so 25KHz current ripple impacting the input capacitors is much less…

In fact, now that I think about it, the input capacitance at 25.0V will draw current across the 100mOhm resistor when the MPPT drops voltage to 24.8V so the vast majority of ripple current on the input capacitors will be at 60Hz, as it is in the case of being powered by a solar panel…
 
You should reach out to him and invite him over to check out your setup - if you convince him to do a segment on what you’ve put together, that’ll really get the word out!
Dave wrote back & said he cannot do it.
He has too much work on & family commitments.
I offered to pay for the 6,400KM round trip including his fees, accommodation & food.
No luck.
Thanks for the suggestion.
 
Last edited:
Here is a post showing the capacitors on a higher-quality High-Frequency inverter and a low-quality High Frequency inverter: https://diysolarforum.com/threads/not-to-happy-with-magnum.44313/page-3#post-752607

If/when you fry one of your Enphase microinverters, it would be very interesting to know what kind of capacitors it has connected to the DC inputs… (an open call to anyone else who may have a dead Enphase Microinverter).

I have not gone to the trouble of tracing out the circuit to confirm they are connected to the DC inputs, but my single-MPPT-dual-MC4-inout 590W NEP Microinverters contain 8 large 2700uF 63V capacitors that also say 105C.

So just as a placeholder, 8x2700uF = 21,600uF and charging that to 25VDC through a 100mOhm resistance, that would mean an RC time constant 21.6ms, meaning the input is charged to ~12.5VDC after 15.12ms and is fully charged to 25V after 108ms.

Someone with more understanding than I needs to comment on whether this degree of startup surge upon connection looks like anything to be concerned about.

The other concern that has been voiced regarding the use of DC DC converters is high-frequency current ripple heating up the input capacitors.

Page 55 here has the specs for my Samxon GS(R) series capacitors: https://datasheet.lcsc.com/lcsc/2208091800_Man-Yue-Tech-ESK827M1JI30RR_C5123348.pdf

But someone with more knowledge than I of how to interpret capacitor ripple specifications will need to tell me what level of current ripple is likely to overheat and damage 4x2700uF of these capacitors…

(At least I know my dinky 590W Microinverters have 50% more input capacitance than Deye is putting on their higher-end Hybrid Inverters! (8x2700=21,600uF versus 14x1000uF = 14,000uF on the Deye).
A lot of work there - great insights.
 
After looking at some youtube reviews i've also just ordered a 20a PWM module / 25kHz, the guy reviews it and loads it up, it runs cool at 10A continuous which is what i need so that could be better for my use...we'll see.
I am interested to see how your experiment works once you get the higher-powered PWM.

You purchased the 20A model but looking at Amazon and AliExpress, there are 40A and even 60A models if you don’t want to run over 50% duty cycle or have a higher-powered Microinverter you want to feed with more than 10A of average current from a 25V battery.

They are also sold as both bare boards or enclosed in a perforated metal case: https://www.amazon.com/Controller-S...ocphy=9032082&hvtargid=pla-943841634848&psc=1

It’s unclear to me whether a metal case would be a net positive or a net negative (since it will greatly reduce airflow) but I’d be interested in your experience once you have a chance to test your 20A model.

I agree with kundip that chasing maximum efficiency is a fool’s errand, but on the other hand, efficiency loss translates to increased heat generation translates to premature wearout of electronics.

I have a few of the little DC-DC boosters I am planning to play around with but there are two things appealing about the PWM-based solution you are exploring:

1/ These PWM controllers seem like they may be true current sources as opposed to the DC-DC boosters which come close but have other things going on (buck or boost). A 10A PWM controller with 100% duty cycle may be the best / safest way to deliver 250W from a 25VDC battery to a Microinverter.

2/ Scanning some YouTube videos, efficiency of DCDC converters is typically ~85% - as low as 80% and rarely better than 90%, while the PWM controllers seem to deliver 95% efficiency. That extra 10% efficiency loss translates to more heat (+25W @ 250W output).

3/ The PWM controllers are much simpler than the DC-DC converters - just a current source being switched on an off at a known frequency. That represents the worst-case for high-frequency current ripple but the ripple you’ll have to deal with is clear and easy to model. So if you find a solution based on addition of a passive component or two to handle the current ripple of a PWM, it seems like you have a more bullet-proof solution than anything you could rig up with a DC-DC converter.

I’m not going to put any time into this until late this summer, but if your results are encouraging by that time, I’m thinking of exploring a solution using a 40A or even 60A PWM.

In my case, I’ll be feeding a 500W inverter with up to 350W of power (so up to 14A @ 25VDC).

And since I’m hoping to have a solution that supports dynamic load offset, I’m looking at using a bank of as many as 16 relays to deliver 16-distinct power levels based on switching in one of 16 different resistors to control duty cycle in place of the potentiometer.

The externally-wired potentiometer of these PWM controllers makes rigging something like that up much easier than it would be with a DC-DC converter…
 
I am interested to see how your experiment works once you get the higher-powered PWM.

You purchased the 20A model but looking at Amazon and AliExpress, there are 40A and even 60A models if you don’t want to run over 50% duty cycle or have a higher-powered Microinverter you want to feed with more than 10A of average current from a 25V battery.

They are also sold as both bare boards or enclosed in a perforated metal case: https://www.amazon.com/Controller-S...ocphy=9032082&hvtargid=pla-943841634848&psc=1

It’s unclear to me whether a metal case would be a net positive or a net negative (since it will greatly reduce airflow) but I’d be interested in your experience once you have a chance to test your 20A model.

I agree with kundip that chasing maximum efficiency is a fool’s errand, but on the other hand, efficiency loss translates to increased heat generation translates to premature wearout of electronics.

I have a few of the little DC-DC boosters I am planning to play around with but there are two things appealing about the PWM-based solution you are exploring:

1/ These PWM controllers seem like they may be true current sources as opposed to the DC-DC boosters which come close but have other things going on (buck or boost). A 10A PWM controller with 100% duty cycle may be the best / safest way to deliver 250W from a 25VDC battery to a Microinverter.

2/ Scanning some YouTube videos, efficiency of DCDC converters is typically ~85% - as low as 80% and rarely better than 90%, while the PWM controllers seem to deliver 95% efficiency. That extra 10% efficiency loss translates to more heat (+25W @ 250W output).

3/ The PWM controllers are much simpler than the DC-DC converters - just a current source being switched on an off at a known frequency. That represents the worst-case for high-frequency current ripple but the ripple you’ll have to deal with is clear and easy to model. So if you find a solution based on addition of a passive component or two to handle the current ripple of a PWM, it seems like you have a more bullet-proof solution than anything you could rig up with a DC-DC converter.

I’m not going to put any time into this until late this summer, but if your results are encouraging by that time, I’m thinking of exploring a solution using a 40A or even 60A PWM.

In my case, I’ll be feeding a 500W inverter with up to 350W of power (so up to 14A @ 25VDC).

And since I’m hoping to have a solution that supports dynamic load offset, I’m looking at using a bank of as many as 16 relays to deliver 16-distinct power levels based on switching in one of 16 different resistors to control duty cycle in place of the potentiometer.

The externally-wired potentiometer of these PWM controllers makes rigging something like that up much easier than it would be with a DC-DC converter…
40A, 25kHz, $12 for 2: https://m.aliexpress.us/item/325680...cOg44h8&gatewayAdapt=glo2usa&_randl_shipto=US

I couldn’t resist and placed an order (which won’t show up until June)…
 
Back
Top