Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
If you want to try a roll-your-own circuit without using a specialized controller IC, below is the LTspice simulation of a fairly simple constant-current hysteretic control SMPS using common IC components..
A hysteretic control SMPS has the advantage of being unconditional stable with no feedback compensation required.
The simulation shows the output current does not change (expect for the ripple) with an input step voltage change from 4V to 17V.
Note that, as with most SMPS circuits, it will not work well (or at all) if you build it on a plug-in breadboard.
It should be built on a vector board (preferably with a copper ground plane) due to the high frequency, high current signals in such a circuit.
All signal and ground paths carrying the high currents should be built with as short a connection as possible.
View attachment 121076
What is the current control range you want?If your circuit was modified so a PWM could bias the opamp to control the current it would be analog control.
From last time I did this: The MCU measure the power from the panel, increases and decreases the power looking for the best point. We constantly hunted for the best power point.the MCU provides a voltage reference
You don't need the TL431 reference.1. the MCU provides a voltage reference
2. the LED driver consumes as much current as it can while ensuring the input voltage does not fall below (1).
3. the LED driver doesn't rise above the LED emitter current limit (3A).
So you still need the constant current drive to ensure (3), perhaps it's just a case of modifying the TL431 reference a bit.
A resistive divider from the input to the Vref input of my circuit would do that.is there off the shelf I.C's that can limit current by tracking the input voltage
You just have to use a non-overlap drive circuit so the two FETs are not on momentarily at the same time.I'll need to replace that diode with a sync FET but I don't see it as much a problem
You substitute {V} (be sure and use curlicue brackets) for the voltage value in place of the voltage value in the voltage source.I was unable to work out how you overlay the step list values?
Makes what worse?Any additional capacitance on the output makes it worse
I think R2 should be connected to a voltage that is unlikely to change, like vRef?R2 is already connected to a fixed 3.3V.
The comparator is fairly insensitive to noise on the supply voltage, but there should be a 100nF ceramic cap from the supply pin to the ground pin for high frequency noise decoupling.I mean for an actual build, the 3.3v would be used for other devices so could have some noise on it. Perhaps not enough for the comparator to be worried about though.