If you're interested in DIY lights, this article might be just what you need.
This light was made using a solar panel, a step-down module, a 4056 charger, and an infrared sensor module. After prolonged use, if the light stops working, it could be that the step-down module is faulty. The power from the solar panel is likely being consumed by the step-down module, which may be why it's not lighting up anymore. So, what should you do in this case? If you're curious, take a look at this article for some tips.
This project involves modifying a flashlight, as shown in the image below.
When dismantling the light, if the wires are too thin, you can replace them with thicker wires, and cut off any excess data cable.
Be careful with the switch connection points. Don't be overly confident when wiring them, as doing so incorrectly may result in the light not working. If it doesn't light up, first check if the battery is dead. If replacing the battery doesn't help, simply short-circuiting the switch should fix the issue.
Once you've reassembled the casing and connected the solar panel, the light will be ready to use again.
And that's it – you're done!