# Solar Phone Charging System Featuring Sun Tracking

39,430

123

71

## Introduction: Solar Phone Charging System Featuring Sun Tracking

Solar power has become quite a star in green power generation recently. Especially here in Sydney, with the help of government policies, more and more buildings have solar power system on their rooftop.

As makers ourselves, making a small solar phone charger is becoming a fashion. There are many great entries in instructables about solar charger with portability in mind. They are great if you spend a lot of time outdoors.
Well people, I’m proudly present this instructable to you so that you can make your very own solar powered phone charging system with sun tracking.
Why tracking?
The sun moves 15 degrees every hour, angle of the incident solar rays directly affect the power output of the solar cell. A solar tracking gives 60% more power from the same solar cell.

A solar cell – at least 6V, 1 Watt
A motor with gearbox
A circuit board
2x LM393 comparator IC, can be any similar comparator
A L293D H bridge motor driver IC
A IRF9450 MOSFET, or any similar P channel MOSFET
5k, 100k, 10k resistors
A 50k potentiometer
An IRF540 or similar N-MOSFET
One phototransistors (Darlington IR)
2 photocells or 2 photodiodes
Battery holder
Some 1N4004 diodes
Wires
Some sort of housing – I used my iPod touch case
And some batteries, I use NiMH here, you can also use Li-ion but the circuit may need to change

Tools:
Soldering iron
Hot glue gun and hot glue
Drill could be useful too

### Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

## Step 1: Let the Theory Begin (too Boring? Jump to Next Step Then)

Solar cell is a current source; its output current varies with solar intensity. Therefore we can just charge a NiMH pack without additional circuit to limit the current. To harvest maximum amount of ‘juice‘out of the solar cell, we should pick a battery pack that matches the voltage output of the cell at its maximum power point.
We will need a diode to prevent current flow into the solar cell, which may contribute a 0.7 to 1V drop. And normally solar cell’s voltage is marked using the open circuit voltage. you may need to lower a 10% or so to get to the VMP.
If you are getting a 6V solar cell, then it is best to charge 3 NiMH in series. I have used an 8V solar cell, and I have 4 batteries charging in series, so about 2V each cell.

## Step 2: Tracking Circuit Design

For this circuit to work the pair of photocells or Light dependent resistor, LDR, has to act as eyes, giving lm393 comparators analogue signal about the sun’s position. And this pair is better built on a separate PCB from the main control board.
Voltage is divided through R1, 50k pot and R3, thus creating reference. The 50k variable resistor is use to set the NULL zone, or sensitivity. This way the system won’t be tracking every second of the sun’s movement. Saving energy spending to track the sun and also save the moment when the system rotates back and forth causing by its momentum.
The outputs of lm393 signal the H bridge chip to control the motor. Based on this design two comparators’ outputs will not be both HIGH at any given time; means there won’t be any error signal which cause the H-bridge to short out.
To conserve energy, L293d is usually disabled. The enabling signal came from LM393, when there is a HIGH from one of the comparators the voltage at EN1 will raise via the 1N4004 diode. Note here R6 has to be much bigger than R4 and R5.
Ground all the other inputs on L293d. this simple act can save about 20mA of current. I don’t know why L293d drain so much current on idle.
The small circuit at the left of the schematic, involving a phototransistor, a 10k resistor and a MOSFET, is designed to switch on battery power backup on the tracking system when the sun rise from the east while the panel is still left pointing to the west.

The phototransistor has to be a Darlington pair. You can test it by using a multimeter on continuity mode, placing the + test lead to the shorter pin on the phototransistor, and the – test lead on the longer one. It should be an open circuit when not infrared exposure. But once you turn the diode toward the sun your multimeter should peep.
This phototransistor is best place right behind the solar panel, and pointing to the east as shown below. Here the phototransistor is normally an open circuit, shutting off the MOSFET and the current can only flow from the solar cell to the batteries via diode D3. While the sun comes from the east will shine on the phototransistor making it a short circuit, raise the voltage across R7, and thus turn on the MOSFET. Now the diode D3 is bypassed and the current can flow from the batteries to the tracking circuit.

As for the MOSFET, any N channel MOSFET will work. But low gate to source threshold voltage is preferred.

It is time for the all important photocell sensor. You should construct the sensor on a different board, so it can be relocated easily. Connect two of these in series, and bend them outward slightly shown below. This configuration allows a bigger difference in solar energy on each cell, when the device is not facing the sun directly. This difference is small, but through the amplification of the comparators, controlling the motor is possible.

## Step 3: Harvest the Solar Energy

There are many possible ways to use the energy stored. I use it to charge my phone. Boost convertor is required to regulate the voltage; the construction of such circuit will not be covered in this instructable. Designing a switch mode regulator is a tedious work, to achieve maximum efficiency also requiring a lot of tweets. It is best to buy one. Like minty boost from adafruit, or other boost module out there. I purchased a ptn04050 module from TI, and built a small supporting circuit around it.

To protect your NiMH battery pack, it is best to have a low voltage protection circuit. You can either buy a Lipo protection module, or build one according to this schematic.

The way the circuit function the IRF9450 acts as a switch, it only turns on when the gate-source voltage is high. As the circuit is just connected to the battery, gate-source voltage is zero. The MOSFET does not conduct. The push button PB1 is able to connect the gate or the MOSFET to the ground temporally. Switch on the MOSFET, and the rest of the circuit. The Vref is produce by the small circuit consist of a resistor and a BC549 NPN transistor. By tying the collector and base together on the transistor, the voltage across the collector and the emittor is constant at 0.6V.

This circuit will sustain itself until VOUT is less then 3.4V, determined by R2 and R3. It does not use any power on idle. Great for a care-free system.

## Step 4: Putting All Together

Now that the tracking circuit is done, secure everything in the housing you chose. Place the photocells anywhere you want as long as direct sunlight is achieved. Connect your solar panel to the port named solar in the schematic. Then your product may look like this.

Enjoy making your own solar system, the world could be greener everyday.

## Recommendations

104 13K
164 12K
99 9.7K
Large Motors Class

14,646 Enrolled

## 71 Discussions

Hey h20 just wanted to know the specifications of the motor you used?

hello, can I ask you a few things, what kind of motor you use ?? and how do I know this circuit works?

First you will at least 3 NiMH or NiCad batteries, just not enough voltage at 3V. and you will need a diode from the solar cell to the rest of the board, any diode that can handle the solar panel's rated current will do. I found couple mistakes in your wiring, i corrected those, take a look at the diagram. To do the circuit debug, first disconnect the solar panel, give >4V to the positive and negative rails. then cover up one of the light dependent resistor, LDR, see if the motor turns. try turning the pot until the motor starts turning. If that still doesn't work, then i advice you to carefully rewire the whole thing.

hey h2o can i ask you is your tracker still be able to function if the battery ran out of juice?

Could this circuit be used to a scaled up design (just the tracking part with some relays)? Could it be used to have several 100 watt panels tracking at once? I know it's crude but I'm just thinking potential.

Absolutely. Just replace the l293d with relay motor drive, and you should be good to go. The circuit principle is the same regardless system size. As long as you made the modification to cope with larger panels there is nothing crude about it. Good luck

Thanks for your help. Couldn't have done all this without your help. I hope everything else is working properly I just tested phone charging part.

Got the part I ordered.and it works with iPhone 5 and iPad

My batteries are around 10.4v fully charged. I have eight of these size AA batteries each at around 1.2v and they are 3000mAh each so 24000mah in total. Does that mean I'll use a step-down converter?

Well does your solar panel produce enough voltage to charge them fully? if solar panel only give 9V OC then there is no point going for 10.4v battery pack. And if you want 10.4v pack, you will need a buck converter , sth like

BTW 8 3Ah battery in series gives you 3Ah in capacity. only when you parallel them their capacity add up.

Hi there my project is almost finished I will send some photos tomorrow because I don't have my camera with me. Anyways, I want this to charge my iPod touch. So that means I have to also buy a ptn04050 and also make a small circuit around it? Do you have the circuit diagram? Or can connect the OUT + - to a female USB and then connect to iPhone?

I guess your battery pack would have less than 5V fully charged right? If so you will need a boost converter to provide a stable 5V output to a female USB port. Like this
http://www.ebay.com/itm/Mini-PFM-Control-DC-DC-USB-0-9V-5V-to-5V-dc-Boost-Step-up-Power-Supply-Module-/400345678301?pt=LH_DefaultDomain_0&hash=item5d367641dd
note that Apple Ipod touch and iphone has charger protection circuit. They may not accept charging from this type USB boost circuit. Better make sure before you buy it.
At the time i made this system, ipod touch 2g was around. that wasn't too fuzzy about credentials of the charger. My circuit doesn't charge my Iphone 5 at all. You can fish around see if you can fool the iphone 5 to charge though. Your assignment :P cheers

Hi I noticed a mistake in the low protection circuit. The symbol for IRF9540 is supposed to be a P-channel but a N- channel. Is the source connect the battery+?

So I tried again today and it worked looks like I really did underestimate the power of the sun. So now I'm moving on the the low battery protection circuit. But to charge the battery do I need this low protection circuit? Will the one before work just fine? I am still a little confused after reading about the low protection circuit part you wrote. Still not sure what exactly what it does. What do I connect to the OUT + OUT- ? And also the push button part does it act like a ON/OFF switch to this whole product? And if this is not the ON/OFF switch how would I add it? And is it possible to add some LED on the back of my casing to show the statues of the battery like how full it is?

Hi there, it's great everything works fine for you. you don't need a battery low voltage protection circuit unless you plan to use those batteries to directly power something. say charge your phone.
For NimH batteries, one should stop discharging the cell once the individual cell voltage is below 0.7V to ensure its longevity. that is where the circuit comes in. the OUT+/- is the + and - to power the phone charger or other external load, and the push button is there to trigger the protection circuit not the whole thing. for example the protection circuit is default to use zero current and open circuit when you first connect it to the battery, once you trigger it the circuit will be powered from the battery and the OUT+/- is directly connected to the battery +/-. the circuit only return to open circuit once the battery voltage if below the set threshold. Therefore if you want to add a switch, put it between the battery and the input to the protection circuit.

Hey H20, So recently I worked in the design of this. And got nearly all the parts needed to build this. But when I switch from the battery to the solar cell. It just couldn't drive the motor. Maybe the current out put is too low? It says on the data sheet that it's Pmax = 2.5watts, VPM = 9 volts, IPM = 0.28 Apms,
VOC = 11 volts, ISC = 0.31 Apms, I checked the outputs of the lm493 and the enable pin but they were barely 3volts. Maybe it's because it's not very sunny. But the multimeter still shows the solar cell is giving about 8 volts. Not sure what's happening. And maybe the motor I bought might not work. It's a 12v dc motor 22rpm, 50Ma with no load, 240Ma with load.

Yeah solar panels are not stable source for motor drive. Highly dependent on sun light. the system is design to work with a battery pack. the Phototransistor and MOSFET part of the circuit is designed to lend a helping hand when the rig wants to turn but haven't got direct sunlight. if in bright direct sun light, say noon-day sun, the system should work without battery pack.
I am actually working on solar powered electronics recently in my company. From what i know is that don't underestimate the power in sunlight. it may not look much brighter than a powerful desk lamp. trust me there is a lot of difference.