## Intro

The QX5252F (and it's brother CL0116) are a joule-thief type LED driver that can also use a solar cell to charge a 1.2V rechargeable battery (use YX8018 if you want 2.4V). Here I share my findings to try and figure out how this IC works.

## Solar Cell Characterization

First off here is the IV & PV curve of the (shoddy) solar cell I made up. The test was done on a hot summer day with clear skies, so results are rough and don't use an exact 1000W/m² lamp.
As you can see peak power (~390mW) occurs at ~1.7V (~230mA).

## QX5252F Tests

### Circuit

I used the exact same circuit as shown in the datasheet which you can see here:

### L = 100uH

Initially I tried setting the inductor (L) to 100uH, interestingly this limited the battery current to ~40mA. This might be relevant to table on pg3 of datasheet, though this table shows how you can set LED current by using different inductor values.

### L = 20uH

I then lowered the inductor to 20uH, this time current was not limited and the battery got a much better charge. Also the battery I used had a capacity of 1200mWhr and the QX5252F managed to charge the battery to 925mWhr (77%) for the day.

### SBAT to VBAT Diode Drop

From further tests I concluded a few of things:
1. The battery is charged directly by the solar-cell via a Schottky diode, hence the voltage drop varies with current. What this means is that at a low charging current you have a higher efficiency and at a high charging current you see a lower efficiency; for example with above data the peak efficiency (98.1%) occurred at a current of 0.01mA, while the lowest efficiency (83.8%) occurred at 136.44mA, also the overall efficiency for the day was 86.9% which is pretty close to the datasheet value of 90%
2. The QX5252F does not have maximum power point tracking (MPPT). Interestingly enough the peak power (230mW) for the 20uH test occurs at Vsolar-cell ~= 1.7V which if you look at the PV curve (different light conditions) is also the peak power voltage. I think this is more to do with me getting lucky with the solar-cell arrangement, as when I used the same solar-cell on a YX8018 while trying to charge a 2.4V battery the circuit would peak at 10mA before steadily dropping to 1mA (see graph below, terrible charging efficiency).
3. Strangely the inductor value seems to set a charging current limit for the battery, I am not sure how this works as I thought charging the battery occurred via the schottky diode. Also the oscilloscope did not show any switching DCDC converter behavior when charging the battery (light hitting solar-cell).
4. When the battery is discharging the operational frequency of the QX5252F is ~133kHz. This is when the joule thief part of the IC springs into action.

## Conclusion

The QX5252F is a pretty nifty IC which makes building a simple solar harvesting circuit very easy. A few small downsides is that:
• You are limited to a single 1.2V battery, though you might get away with using a YX8018 and a higher Voc solar cell
• You have to choose solar-cell that has a Voc of at least 2.4V (2x1.2V) for it to work properly
• As you would expect it does not have MPPT, not a biggie at this price point
Also the inductor sets the peak battery charging current (not expected) as well as the peak LED current (expected). I might have had my data logging circuit wrong, so will have to redo this step in the future

1. I've been experimenting with the YX8018 from a solar light. A very similar IC. I have replaced the battery with a 270 Farad supercapacitor with very good results. The solar cell is a 2v 120 ma cell and charges up the cap fairly well. Replacing the battery will eliminate the short life of the battery charging and discharging as the capacitor has unlimited cycles. It seems the circuit will run at a fairly low voltage on the cap and plan to chart the discharge. Will let you know of my results.

1. Hey there. Sorry for the late reply, my spam filter was a bit too strong...

Oh cool, thanks for sharing that!

2. My solar circuit with the 5252 when switched on won't charge the battery, when switched off I receive the solar panel voltage at the battery terminals. Other than that the circuit operates as it should. So if the battery is fresh it will work until it wears out. Not sure why Have changed out 5252IC already? Thanks, Harold.

1. Hey there. Sorry for the late reply, my spam filter was a bit too strong...

Hmm, I guess the first question is what sort of circuit are you trying to power? Like is it a single LED or do you have something more fancy connected?

If it's just an LED then maybe your 5252 (or some other component) is faulty? In that case try making a new charging circuit with fresh components, as in don't reuse anything

If it's something fancy connected then maybe it's playing up with the 5252 light sense function? You could try add a schottky diode between the 5252 output and your secondary circuit

3. I can not find any specs about the max current the internal schottky diode can handle.
I have a 800mA solar cell, i don't think that schottky diode can handle that. :(
How can i use a qx5252 with an external schottky diode and still have the solar cell turn on and off the circuit?

1. Evening m8

I link a bunch of datasheets at the start of the post and looks like QX5252 is rated to 300mA, so yea way under what you want to do. https://www.mikrocontroller.net/attachment/158139/QX5252.pdf

CL0116 datasheet says it can do 800mA, but not sure how true this is given they both use the same package. I guess best run some tests http://akizukidenshi.com/download/ds/chiplink/CL0116_p.pdf

What I would recommend is actually using a maximum power point tracking (MPPT) "evaluation" board with some sort of light sensitive switch (think phototransistor or even a photoresistor controlling a MOSFET) to turn the circuit on/off. Like here is one from spark fun https://www.sparkfun.com/products/12885. Otherwise I am sure you would be able to find something on eBay/AliExpress

2. Hi
I think i found a way to use a YX8018 with a higher charge capacity for my solar cell.
Build a test version and it works like a dream.
Feel free to use the circuit.
Circuit:
https://i.postimg.cc/g0LfH1bW/Solar-LED.png

3. Awesome dude :D
With that circuit it looks like you will be charring the battery to the open circuit voltage of the solar cell (~2V?), so make sure your battery is OK with this

4. The battery will be fine, lots of solar garden lights use 2V solar cells.
With the solar cell loaded the voltage will drop a little and with a schottky diode it will be around the 1.5V mark.
The battery i use is a big boy a D-cell 8.000mAh so it can handle the overload but just in case i made a summer switch to be save. (the solar cell is an 2x400mA configuration in parallel)
So in summer mode 400mA is the max charge current.
Greetings and keep on rocking the solar lights. :D

5. Kinda, at very low current (think battery starting to get full) the voltage drop across the Schottky diode will be 0.3V-0.4V. So you have to make sure your battery is OK being charged to 1.6-1.7V (datasheet for battery will confirm). But I guess your call at the end of the day

https://www.onsemi.com/pdf/datasheet/mbr150-d.pdf

4. How much current actually passes through the LED with these chips? I've got a set of garden lights with an indeterminate blob chip. I measure about 33% current through the LED compared to what's drawn from the battery. For example 30mA from the battery corresponds to about 10mA at the LED.
Seems pretty poor efficiency to me. Do these commonly known chips perform better?

1. So these sort of cheapo switching regulators would be way more efficient than say powering the LED directly from the battery, as they constantly switch the LED ON/OFF rather then having it constantly ON. Efficiency wise you would have to measure the input & output power (as in recording both voltage & current) to get a figure, you can't just look at input/output current

2. I see now. I found a variant called PR4044 (and 4401/2/3 models). These have much more informative datasheets with pages about performance characteristics of those chips.
There is also a bit about inductance affecting charge time.

3. Oh nice, do you mind sharing a link to the datasheet?

5. Your article is very interesting!
I didn't find anything related to my curiosity...
What is the highest input voltage and current of the solar panel?
If I wanted to use the maximum input power?
Thanks.

1. QX5252F don't track maximum power point of the solar-cell. You have to choose solar-cell that has a Voc of at least 2.4V (2x1.2V) for it to work properly though