Home
5 Volt Solar Charger




Available from various suppliers on the internet at a givaway price is a real gem of a 5 volt regulator. At first glance this little PCB doesn't look anything special, but it's actually quite impressive. Conveniently for the voltage input (9V to 40V claimed) there's a choice of a two way terminal block or a standard 2.1mm DC socket. For the 5 volts output there's another two way terminal block or a type 'A' USB socket. My only negative comment would be that it could do with some mounting holes. I don't know what the official name is for this board, but it always appears as in the image shown below.





This solar charger project came about because I had in my garden shed an old 40 watt solar panel just sitting there doing nothing. Also in the shed was a nice little electronics enclosure begging to be put to good use. I was already using one of these regulator PCBs indoors as part of my normal 12 volt solar  power system to charge my phone and other USB gadgets, and as they came as a pack of two I had a spare. So I thought why not throw all these parts together to make a self contained (sort of) solar powered gadget charger.

This regulator is of the 'buck' variety which makes it very efficient compared to linear types. There are other buck regulators out there which are much smaller and feature a simpler circuit design but they do get rather hot. This one can get a bit warm too, but reassuringly not as much. The main regulating IC is a CX8571 that drives two output MOSFETS. The board also has another IC, the RZC7512 which is a dedicated charging port controller. This automatically enables connected devices to know how much power they are able to draw, and will stop your phone telling you off for using an incompatible or faulty charging cable! Although the RZC5712 is a two channel device, only one channel is used here (pins 3 & 4) as there is only one USB socket. Some boards may use a CX2901A instead of an RZC7512 but their datasheets suggest they are effectively the same IC.

An important factor for me was that this buck regulator behaved itself if used with a solar panel. I didn't want it to produce any voltages below 5V if, for example, there was a cloudy sky. I wanted it to be either completely 'ON' supplying 5 volts or completeley 'OFF'. I did not want a possible in-between state that might confuse any connected devices. A mobile phone will tolerate the occasional interupted charge, especially so if it's not actually going to be used, but I don't think it would appreciate something like 4 volts or less! This though behaves perfectly, producing 5 volts at the output when the voltage on the input rises above 7.5V and going back to 0V when the input drops below 7.1V, with no undetermined state. A bit of welcomed hysteresis.




Construction:

To keep things simple I just wanted a box with solar input and a USB C charging cable for the output. For the solar input I had (in the shed of course) a couple of spare 6mm cable tails with male and female MC4 connectors already fitted, so these were cut down and put into use entering the box via two PG7 cable glands. The locking hooks were trimmed off with a knife so that the connectors can be pulled apart easily. A further gland is used on the opposite side of the box for the USB cable to exit. I mentioned earlier that the PCB doesn't have any mounting holes, so the method I used to secure it was to attach it to a piece of stripboard with a cable tie and then screw this down onto the four M3 threaded inserts in the base of the box.


To benefit from the
dedicated charging port controller IC, the on board USB socket must be used rather than the two way terminal block. As there is no way to get a USB plug through a PG7 gland, the plug has to be cut off to allow it to pass through the gland and then a rewirable plug can be re-attached to connect to the USB socket on the PCB. The rewirable USB plug can be further reduced in size by removing the outer metal shell as shown on the right, so it can fit in the restricted space.


In the olden days a USB cable just had 4 wires inside. Red (+5V), White (Data -), Green (Data +) and Black/Shield (Ground). Modern USB C cables still have these but there are a few more extra wires in addition. These extras are not used in this application and are separated so they can't short out on anything and then taped out of the way. All we are interested in here are red, white, green and ground as shown in the image above. That's all there is to it really, just a very useful little buck regulator board being used as a solar powered 5 volt source. No fancy charge controllers are required as pretty much every gadget that is charged from a USB C cable will have its own inbuilt charging circuit. Charging time depends on the amount of sun!

Amazon

eBay