• Have you tried out dark mode?! Scroll to the bottom of any page to find a sun or moon icon to turn dark mode on or off!

diy solar

diy solar

Open Source Microconverter

Yes it definitely does track the maximum power point.

The maximum power point occurs at a very specific solar panel voltage.

The MPP changes based on current conditions such as insolation, temp, and longer term cell degradation. This is why a MPPT algorithm is there to find the new MPP constanly.

Still sounds to me like you're fixed. Are you going off the MPP spec from the panel? If so that's based on STC, and will be different, and ever changing in the real world.

I'd be interested in looking at your schematic, can you share?
 
All you say is true.

But if you actually look at the numbers and do some testing, you will find that the peak power voltage does not move very far from what is printed on the solar panel rating plate.
If you experimentally adjust loading to change the operating point up and down, the change in measured power is absolutely minimal around the cusp
Its all far less critical than many people believe.

If you are chasing that very last one or two percent, then perturb and observe will be theoretically better. No argument there.

But in a practical application, its easy to just to add an extra panel and easily gain more than one or two percent !

Solar panels have fallen dramatically in price, so the low cost way to increase power is to just add panels.
The exception to that might be on a boat or RV, but for most of us, fitting more panels is the low cost way forward, rather than fretting too much about minimal drops in efficiency.

There is also an unexpected advantage of running panels at a fixed voltage I have just discovered.

Suppose you have a series string of three, and max power is at 140 volts. At dawn the controller will draw zero from the panels until the voltage reaches 140. It then begins bulk charging, maintaining 140 volts at the panels.
When the battery reaches full charging voltage, the charging current begins to taper off, and not all the available solar power can be used.

The solar voltage then starts to rise above 140 volts.

Now suppose you have another charge controller set to 142 volts connected to the same solar panels.
It will do nothing until solar rises to 142 volts, and that will not happen until the battery has completed bulk charging.

Its then possible to divert all the SURPLUS solar power above what is being used to charge the battery into something else, such as heating water, or a secondary battery bank.

Requests of how to do something like this seem to come up fairly frequently on the Forums.
 
Circuit diagram, sure no problem.

There are two error amplifiers, the first one regulates solar voltage, such that duty cycle increases if solar voltage tries to rise.
The second error amplifier regulates battery voltage. Duty cycle falls as battery voltage tries to rise.
Whichever error amplifier requests a reduction in duty cycle gets control.
It could not be any simpler.

J1 and J2 are plug in screw terminal blocks. The external wiring, mosfets, choke and diode all remain attached to the heatsink, so the circuit board just unplugs from that. Power components depend on the voltage and current requirements obviously, so are not specified.

Still playing with compensating the error amplifiers. At the moment they both have simple type 1 compensation, slow but stable, and entirely adequate. I will revisit that a bit later, but it works fine as drawn.
 

Attachments

  • Analog MPPT.jpg
    Analog MPPT.jpg
    181.5 KB · Views: 27
An excellent write-up John.
You are quite right, its a complex thing to do, and unless there is a very specific reason, just not worth all the trouble.

I have recently designed an ultra simple mppt solar controller that is entirely hardware, no microcontroller, no software. It just uses a single readily available low cost pwm controller chip. Its very spartan with absolutely no frills, but it does work very well. If it ever does blow up, very easily repairable.
It maintains a constant solar panel voltage (set with a potentiometer) and charges a battery up to a set charging voltage. That is really all that is necessary.
Ideal for lithium, not really appropriate for lead acid.

The only difference between this and a "smart" software driven mppt controller, is that the software finds the max power solar panel voltage.
With this, you have to adjust the voltage yourself manually. But as the rating plate fitted to every solar panel tells you the maximum power voltage, that is not really a disadvantage.
Even if you don't know the max power voltage of your panels, its simple to just to tweak the potentiometer up and down for maximum charging current during bulk charging.
There will be a definite maximum. Its not really a sharp peak, but a very broad hump, and adjustment is not in the least bit critical.

I doubt if there will be any interest shown at all here, Folks on this forum seem to be more into buying Chinese boxes than home building anything.
this sparks my interest!

very curious what components etc.

as always thank you for the interesting research to read about!
 
Components might vary a lot from a 12v system, up to high voltage system with perhaps hundreds of volts.
That is another advantage, you are not limited to what is commercially available.
Its only really the power components that vary, and maybe the resistors in the potentiometer voltage tweaking part.
The control board will remain pretty much standard.

The two small dc power supplies SM-12 are really the guts out of a standard 12v dc wall pack. These are available on e-bay for about two dollars each.
https://www.ebay.com.au/itm/302088719078
They are specified to supply a fully isolated 12v at 450mA for ac inputs of between 80v and 260v.
If lightly loaded, they work fine from about 30 to 35v dc input up to about 400v dc input.
My system runs at 100v (with thirty lithium cells), so for me it was a good solution.
For lower voltage solar controllers something else might be more appropriate.

Mosfets, diode and heatsink need to be adequately rated, but that should be quite straightforward.

The choke is probably the most difficult thing to nail down, but I am using some old ten amp dimmer chokes I already have, and they work fine.
These are rated at ten amps and 1mH. I might try to source something suitable from China later, but its not something I need myself right now.
But these commercial dimmer chokes are available off the shelf, and seem to work fine.
A very quick internet search turned up this:
https://www.geo-technik.de/en/Remin...-Inductors/Dimmer-Filter-Choke-11A--2025.html
Dimmer chokes for 120v are usually 0.5mH, and dimmer chokes for 230v are usually 1mH. Either should work pretty well for you.

Dimmer chokes are available up to at least fifty amps, but for one series string of panels, ten to twelve amps rating should be fine.
 
Circuit diagram, sure no problem.

There are two error amplifiers, the first one regulates solar voltage, such that duty cycle increases if solar voltage tries to rise.
The second error amplifier regulates battery voltage. Duty cycle falls as battery voltage tries to rise.
Whichever error amplifier requests a reduction in duty cycle gets control.
It could not be any simpler.

J1 and J2 are plug in screw terminal blocks. The external wiring, mosfets, choke and diode all remain attached to the heatsink, so the circuit board just unplugs from that. Power components depend on the voltage and current requirements obviously, so are not specified.

Still playing with compensating the error amplifiers. At the moment they both have simple type 1 compensation, slow but stable, and entirely adequate. I will revisit that a bit later, but it works fine as drawn.

Have you thought about ditching the diode, and using a synchronous buck driver instead? Make it run cooler, and more efficient.

Also, one thing that worries me is failure of trimmer pots. On your circuit if the wiper of the trimmer fails/disconnects what happens to the output voltage? Does it drop, or rise?

I've entertained the idea of using buck converters like this. They will work, but there will be time where a real MPPT will outperform.
Would be interesting to get some real testing/comparison data.
 
Many things are possible, my aim was to keep all this as simple and low cost as possible, its still just a prototype anyway.

At higher voltages, diode loss becomes far less significant.
If this was a twelve volt fifty amp controller, sure an active synchronous diode would be an absolute must have !

In my case I have 140 volts coming in, 100 volts coming out and diode duty cycle never gets above about 58%
For about ten amps, and a perhaps 0.8v diode drop that's 4.6 watts lost out of 140 watts maybe 3%
It would not be difficult to replace the diode with another mosfet, but I just did not think it worth the trouble.
 
Have you thought about ditching the diode, and using a synchronous buck driver instead? Make it run cooler, and more efficient.

Also, one thing that worries me is failure of trimmer pots. On your circuit if the wiper of the trimmer fails/disconnects what happens to the output voltage? Does it drop, or rise?

I've entertained the idea of using buck converters like this. They will work, but there will be time where a real MPPT will outperform.
Would be interesting to get some real testing/comparison data.
Oh there are lots of failure modes possible with any solar controller, even the very expensive commercial ones.
Not much you can really do about that at the controller.

The place to solve that problem is with an over voltage disconnect at the battery.
 
Oh there are lots of failure modes possible with any solar controller, even the very expensive commercial ones.
Not much you can really do about that at the controller.

The place to solve that problem is with an over voltage disconnect at the battery.

Yup, I had a controller short a mosfet, and tied PV directly to battery. I came up with a solution here

I used to build, mod, and service tube amps. Those trimmers used to fail frequently, sometimes in a real bad way.
 
Many things are possible, my aim was to keep all this as simple and low cost as possible, its still just a prototype anyway.
Great idea!
I'd love to get a simple microconverter to play with and learn on, but they all seem to be proprietary.
I've done this already with a cheap PWM on a small hobby PV system and that was very instructive.
One question though: since their output is ac how do you get them to sync when adding several together? And this would be very desirable that they be modular and additive.
 
I have recently designed an ultra simple mppt solar controller that is entirely hardware, no microcontroller, no software. It just uses a single readily available low cost pwm controller chip. Its very spartan with absolutely no frills, but it does work very well. If it ever does blow up, very easily repairable.
It maintains a constant solar panel voltage (set with a potentiometer) and charges a battery up to a set charging voltage. That is really all that is necessary.
Ideal for lithium, not really appropriate for lead acid.
Warpspeed,
- Very nice, thanks for publicizing your circuit.
- Is it just me, or is analog circuit design a dying art? Microcontrollers are certainly the easy way to go and offer a lot of flexibility/functionality, but analog design can get a lot of the same things done. It does require experience and creativity.

Separate question: The Oz Inverter in its present form is very nice, and obviously robust. Is there a way to have a stripped-down LF inverter without any bells and whistles? How simple could the circuit be if we had no alphanumeric displays, temperature sensors, etc. Just input lugs and output lugs with >maybe< an LED to tell of an overvoltage, etc? Icing on the cake: the dumpsters here are filled with commodity-grade countertop microwave ovens from the PRC that seem to last about 3 years. If the big transformers in them are still good and could be used in any way, they could be had for nothing.

Mark
 
Analog circuitry is definitely alive and well. Even switching power supplies require some analog. Any software "machine" still needs to interface with the real world. Most sensors still produce an analog output. Radio and microwave is all analog, and on it goes....

But you are right. These days really experienced analog designers are becoming pretty thin on the ground.

The problem with most projects these days seems to be that they are planned and designed mostly by software geeks.

Oh, we must have a graphical user interface with touch screen, and an internet connection, plus wifi on this inverter (or whatever it is).
How nice it would be to be able to check the voltage of every cell of my home battery on my mobile phone, while I am visiting overseas.
That sort of nonsense is expected these days.

The need for a very simple robust bare bones absolutely bullet proof inverter, that is very easy to both fault find repair, is not a popular concept.
Nobody wants that. They expect "features".

My concept with all of my own home built equipment is to build something as solid and simple as possible that works and is reliable.
Then add any monitoring and protection or extra features seperate and outside of that.

The basic functionality remains, if the external monitoring crashes or blows up it will still basically work.
And if the inverter, solar controller, or whatever it is itself fails, its very simple swap in a spare, and repair what failed. Fixing it should be easy, because its all been kept as simple as possible with the fewest easily accessible parts.

The Oz inverter started out with the low cost Chinese EGS-002 driver board. That worked, but was very prone to spontaneously blowing up mosfets.
My own theory about that, is that the Chinese software had a few hidden bugs. So us Aussies started to develop our own driver boards for the Oz inverter using a Nano microcontroller. That has worked out wonderfully well, and solved all the problems, but it has suffered from the "added features" disease along the way.
That is a pity, but its what most people expect these days.

Microwave oven transformers are quite small, and welded solidly together. Not ideal for an inverter of any reasonable power level.
A much better bet would be to do some dumpster diving, to find a dead grid tie inverter and rewind the toroidal transformer from that.
That is what the Oz inverter guys all do. In fact it common to stack two toroidal cores for increased power rating.
By recycling the copper wire, its possible to make a very nice efficient high powered inverter transformer at practically no cost.
 
Yup, I had a controller short a mosfet, and tied PV directly to battery. I came up with a solution here

I used to build, mod, and service tube amps. Those trimmers used to fail frequently, sometimes in a real bad way.
Brad,
What exactly is that rather nice programmable voltage controller, and where can I get one ?
I have very poor hearing and its difficult for me to get all the details from your excellent video.
 
@Warpspeed You can view transcripts of videos on YouTube. (1) Click the ellipsis, then (2) click "Show transcript"
2022-09-16_08-17-53.png
and the transcript will appear on the right:
firefox_2022-09-16_08-18-36.png

You're welcome! When I learned of this, I wondered how could I have been a viewer of YouTube so long and not known about this feature.
 
@Warpspeed You can view transcripts of videos on YouTube. (1) Click the ellipsis, then (2) click "Show transcript"
View attachment 112109
and the transcript will appear on the right:
View attachment 112110

You're welcome! When I learned of this, I wondered how could I have been a viewer of YouTube so long and not known about this feature.
You can also turn on closed caption (the little "CC" icon at the bottom of the video itself). The CC/subtitles show up on top of the video, sometimes annoying but useful if you want to watch in full screen mode.
 
many people are working hard just to properly assemble premade components into a properly designed and operating system (myself included)
The world has progressed to larger, more complex, more functional components. My first computer was assembled using Z 80 parts and wire wrap. Now I just buy a Raspberry Pi. Well, I am sure that there are still old timers out there with the mule in their pickax going down to the selenium mines every day to make their own solar panels, for most of us that’s just an off the shelf module.

Nothing wrong with designing and building your own stuff, but if I was going the real do it yourself route, I’d still be writing Z80 assembly code to try to optimize my maximum PowerPoint tracking, instead of writing python to turn on my dump loads whenever the batteries get full.
 
That whole setup looks rather unreliable. I have about that same setup except I disconnect the panels when the charge controller gets lost and keeps the panel voltage too low for too long. I do also sense battery voltage and when it goes too high it also disconnects the panels. My problem is when the inverter is on with a low load (100W soldering gun) and it turns off, the charge controller slowly increases battery voltage to over 15.5V and the inverter goes into fault. Several controllers do the same thing. Must be a kluge to sense battery condition. Solar stuff is such crap.

A voltage monitor always has some time delay. There might be a need for some temporary crowbar. Anything worth protecting would probably 48V. Just use a 5V relay and a zener, that will give a 3V window. Use that to trip a normally closed relay and latch it to open.
 
Last edited:
Its not only the questionable performance and limitations of some commercial products, but also if/when they do blow up its usually a final death event.

Sometimes all you are left with is smoke stained devastation.
Other times its some mystery problem on a multilayer surface mount board, where none of the tiny components have marked values, or even component designators. So its pretty near impossible to trace it all out and figure out what its all supposed to do.
Rather difficult to identify a part that has quite literally exploded and is no longer even there.

I gave up on all that a long time ago, I now just figure out what I want it all to do, and just build it myself from scratch the way I want it.
Its also a great opportunity to try out some original off beat ideas, and test new concepts.
 
Last edited:

diy solar

diy solar
Back
Top