Solar garden lights are just another part of the great trash pile of our age, electronics so cheap as to be disposable. Most of you probably have a set lurking somewhere at home, their batteries maybe exhausted. Internally though they are surprisingly interesting devices. A solar cell, a little boost converter chip, and a little NiCd battery alongside the LED. These are components with potential, as [Randy Elwin] noted with a mind to his ATtiny85 projects.
The YX805A chip he references in his write-up is one of several similar chips that function in effect as joule thieves, extending the available charge in the battery to keep the LED active as long as possible when their solar panel is generating nothing, and turning it off in daylight when the panel can charge. Their problem is that they are designed as joule thieves rather than regulators, so using them as a microcontroller PSU without modification can result in overvoltage.
His solution is to use the device’s solar panel input as a feedback pin from his ATtiny, allowing the microcontroller to keep an eye on its supply voltage and enable or disable the converter as necessary while it keeps running from the reservoir capacitor. Meanwhile the solar panel now charges the NiCd cell through a single diode. It’s not perfect and maybe needs a clamp or something, he notes that there is a condition in which the supply can peak at 8 volts, a level which would kill an ATtiny. But still, we like simple hacks on dollar store parts, so it’s definitely worth further investigation.
This isn’t the first garden light hack we’ve shown you, there was this flashlight, and some LED hacks.
Solar light picture: Leon Brooks [Public domain].





His write-up is a pretty fun read, walking through his process, including an oscilloscope measurement showing how the capacitors’ voltage drops from 5.26 V to 3.5 V when the trigger is pressed, and interestingly, slowly recovers until it’s released a second later, when it then rises back to 4.5 V. He’s even included how he worked out of the panel’s maximum power point (MPP), which is what he was doing when the kids were first lured away to blow soap bubbles. But we’re sure Hackaday readers aren’t as easily distracted.



