$2 Sun Tracker Circuit - Healthy Discussion!




My apologies to any of the 1400 or so people who've read this Instructable in the day since it was published; I described an idea I was sure would work, and I was so excited to get it out there where people could try it, that I didn't wait until I could get the parts I needed to fully test it myself, and I posted based on a partial test and an assumption about the performance of small motors that turned out not to be accurate.

Now normally I would take a faulty Instructable down (and run away and hide), but in this one instance I'm going to leave this online after editing it to correct my mistakes, because I thought that there was still a good idea here that could be developed even if it had to be by someone with more electronics experience than me, and I wanted to put this germ of an idea out there so that maybe it could inspire someone to come up with a solution that works.  I offered the 1Yr pro membership upgrade I received when this went front-page as a prize, and as you can see from the comments a lively discussion ensued.  (I gave the prize to jtlowe for his suggestion of using a clockwork rotating platform, but although there's no more prizes to give, I would still welcome any more suggestions you all can offer).

The problem is sun tracking: pointing a solar panel directly at the sun so that it can harvest significantly more light - and the difficult aspect of the problem is that the cost of adding a sun tracker to a solar panel in order to gain X% extra output has to be less than X% extra cost, otherwise it's more cost effective to simply add more solar panels.

The solution that I had was to take two small PV cells from a couple of solar garden lights, and connect them not in series or even in parallel, but head to head, connecting the ground lead from one to the ground lead from the other, and determining which of the two panels was receiving more light by looking at which one was able to generate more voltage than the other.  For instance if one generated 2V and the other generated 3V, then the voltage between the two positive outputs would be 1 volt, and that volt would be used to drive a DC motor to turn the platform in the direction of the cell that was reading the stronger light signal.  (Although in practice the voltage was actually less because driving current through a PV cell against its natural direction (since it acts a little like a diode) causes a voltage drop in excess of just the voltage that would be cancelled out, though that's not relevant to the problem)

Although that is indeed what happens which you can confirm by looking at the voltage on a voltmeter, what I didn't realize was that these panels don't generate enough amperage to drive even the smallest motor, as far as I can tell.  I'm talking about 3V motors that need so little power that they'll spin from a single half-dead AA battery!

So what I'm going to show you here is half a solution, and I'm asking the smart readers of Instructables to help come up with the other half.


Step 1: What You'll Need

Grab a couple of those cheap garden path solar lights, the kind they sell at the Dollar Store for... well, a dollar.  (If you miss the occasional Dollar Store deal on those, damn, you'll probably be out of pocket by two dollars from a more expensive store! :-) )

That's it - to test the circuit you won't need any more components.  Just your trusty volt meter, and a soldering iron...  (I finally treated myself to a programmable temperature controlled iron from Radio Shack and I have to say I'm really enjoying using it compared to what I had before.  The volt meter is that cheap one that's on sale for a couple of dollars every weekend at Harbor Freight)

When I was trying to drive the motor and realised I didn't have enough power I added a second pair of PV cells in parallel, so some of the images below have 4 cells and some have 2.   As long as we're just using these as light sensors, 2 will do fine - I didn't feel it was necessary to reshoot the photos...

Step 2: Here's the Clever Part...

Unscrew the top of the light and pull the battery terminals from the plastic case.  With the cheapest lights, you need to pull the lugs on the battery terminals back a little before you can pull the AAA battery out; more expensive lights have a more accessible AA battery holder but it may not be as easy to pull the battery terminals out of the holder.

One way of building this circuit is to leave the circuit board in place and use the wires connected to the battery pads - in this version, it's easiest just to pull both negative battery pads from each light and solder them together.  On my lights, these wires are black (ground) and yellow (positive).

(The circuit board is a "Joule Thief" circuit.  It scavenges otherwise unusable low voltages and then sends a burst of higher voltage to charge the battery.  So the output from that circuit is either zero or 1.5V or higher.)

However it's probably better that you clip off the red and black wires coming directly from the PV cells, maybe a centimeter short of the circuit board (in case you want a little wire left to make subsequent experiments with that board easier?) and use the output of the PV cells directly, which depending on the strength of the incident light will range from 0 to about 3V,

In either case, connect the black wires from both cells.  (<--- yeah, that was the clever part.  Not a lot to it!)

Step 3: Test It!

Connect your voltmeter to the other two wires - the red ones from the PV cells or the yellow ones from the Joule Thief circuit boards,

Now either test this in the sun or use a flashlight .  Compare the voltage when the light shines evenly on both photo-cells versus when it shines on each of them one at a time.

In my first test I got 1.5V when illuminating the left-hand cell, and MINUS 1.2V when illuminating the right.  The voltage went close to zero when they were equally illuminated.  The discrepancy turned out to be from one poorly performing PV cell so I swapped it out with another one I swiped from my garden and then they both output almost identical voltages for the same illumination.

(The raw output directly from the good PV cells was about 3.4V and from the bad one, 2.5V.)

Step 4: Outdoor Test

Here I've connected the circuit to a voltmeter (as I mentioned earlier, I doubled up the cells to get more power, but it didn't really help) and took 5 readings, from well left of the sun, through half as far left, then straight on, then the same angles to the right of the sun,  You can see from the readings on the voltmeter that this is a good indication of which way you need to turn and when you're pointing in the right direction.

(You'll note that the absolute values of the signals are pretty low - even when one sensor was blacked out completely and the other was in full South Texas sunlight, the best differential I've seen was 1.65V.)

Step 5: Now I Need Your Help to Control a Motor With This Circuit!

Now, I had hoped that if you feed this DC signal into a motor, it would spin one way or the other or not at all depending on whether the incoming voltage was positive or negative. (DC gearmotors are reversible by reversing the input polarity).  This motor would rotate the platform holding the PV cell sensors as well as a larger solar panel such as a USB phone charger, and when it rotated enough to face the sun, the outputs from the two PV cells would balance and the motor would halt due to receiving 0V.

But unfortunately that plan didn't work because the PV cells didn't generate enough current to drive the motor.

I have some ideas about how we can salvage this part of the design which I explain in the next section, but this failure does make the system more complicated and far less cost effective.  (Unless one of our readers can come up with a solution that will save the day?)

The best way to use the two PV cells as a direction finder is to exaggerate the amount of light falling on one versus the other when the cells are side by side but not pointing directly at the sun.  The standard way to do this is to put some sort of divider between them like a piece of card, pointing forwards, which casts a shadow when the light source is to one side but which has no relevant shadow when the light is directly in front of the equipment.

A subtle improvement over this is to use a double-sided mirror.  This has the advantage that more light is caught by the cell that is facing the sun, which may be a factor in the early morning when the sun is just coming up, especially if we can also find some way for these cells to provide enough juice to drive the motor that rotates the platform as well.

When this apparatus points in the direction of the sun, the light falling on each cell is equally strong and the voltages generated by each cell cancel out, so you'll see 0V on your meter.  Turn the meter left and right and you'll see the voltage go up or go below zero as in the photos attached.

By the way, I can't take all the credit for this idea - I based it on the underlying principle behind a circuit that a friend designed back in the 70's: he used a couple of infra-red sensitive photo-transistors tied emitter-to-emitter to detect a person's body heat, in order to turn a model skull (at least I hope it was a model...) so that it would follow people as they walked through his room!  Basically a Halloween Haunt trick way ahead of its time.  Where-ever you are now, Steve McGloin, that was a brilliant idea you had!  This hack uses the same principle, of pitting two current sources head to head and letting the stronger signal win.

Step 6: Hack a TrekBot Toy for Motor Parts?

(The picture for this section is just a mock up of a USB charger panel on a platform with the two PV sensors.  I considered making a rotating platform from a CD stack case; I also looked at using a Lazy Susan cake stand.  But until we work out a way to drive the analog DC motor cheaply, there's no point in wasting time working on the platform.)

I mentioned that initially the two cells I used were mismatched. One generated about 2.5V max voltage rather than the other's 3.4V, so the circuit was far from 0 when the illumination was balanced.  ideally you would pick two cells that matched better, but... it doesn't actually matter that much, because (assuming you have removed the Joule Thief circuit that's trying to regulate the charging voltage) your motor and platform will still turn until the two outputs are balanced.  Although your cells may not be pointing directly at the light source, you can skew the platform to a slight angle relative to the sensor cells so that what is on it points directly at the light once the platform has stopped rotating - this is the beauty of negative feedback analog control systems!

What I've described here would just turn your solar panel platform east or west in the direction of the sun - but not up or down as the sun arcs across the sky during the day.  However you do not need a second motor to follow the changing elevation - if you build what's called a 'polar mount', you can use a passive physical mechanism to change the angle of tilt rather than any sort of powered motor.  (Attaching the sensors to the mount along with your primary panel, so that they are also tilted to the optimal azimuth wouldn't hurt either, but isn't necessary - they're quite forgiving)

Finally - I do have an idea how to resurrect the idea of driving a motor from the PV cells (rather than stealing power from the larger 'payload' panel that the platform would be supporting): I have a $10 toy that I bought from Woot for reuse as parts - a "TrekBot" which contains a couple of motors and some  good gearing.  It charges up from a handheld controller that contains three button  cell batteries - I suspect it has an internal super-capacitor rather than a battery.  The wheels have enough torque that I was able to spin a Lazy Susan just by friction-driving the wheel against the rim of the platform.  If we could make the PV cells charge up something like this, then switch to voltage-comparator mode once it was charged up, it could adjust the platform's orientation in a more bursty manner than the original continuously-updating design.  This level of analog design is probably beyond me, and I really don't want to use a PIC in this device, even if it is possible to buy the bare chips for a couple of dollars.  It just strikes me as inelegant :-)  But I may end up going that route if it's the only way to do this on cheap.  At the moment, the rotating platform looks to be the most expensive component.

Actually that's not quite true.  The USB charger I have - made by Soldius - appears to cost around $100 nowadays.  I swear I got it for a fraction of that some years ago, though I forget now how much exactly,  Maybe $20.  But if this solar tracker ends up costing $20, it'll be a failure.  We need to come in around $5 to be worth the effort.

That's as much as I have to contribute.  I hope you can use this as part of a new tracker design.  Good luck!




    • Arduino Contest 2019

      Arduino Contest 2019
    • Gardening Contest

      Gardening Contest
    • Fandom Contest

      Fandom Contest

    95 Discussions


    Tip 4 months ago

    hello i didn´t read whole instructables just intro but i didn´t saw which type of motors you using
    this guy have good working solution:
    he using cheap geared motors and sollar pannels from ebay it looks like idea what you was describing


    Tip 6 months ago

    I quite like the idea of "just use some solar panel to position another" :)
    And since I like to tinker myself I guess it means I have to come with a working solution one day.
    Or hope someone is nice enough to post one...

    I have a 6V panel used for a shed light.
    Only problem is that I got it for free with a fully smashed housing but fully working.
    After seeing this Ible I started to sqeeze and twist my neurons a bit.
    One word of warning: This is only a weird idea and I did not do any tests, so just enjoy!

    In my case I would charge a battery pack, so a constant power supply would be available for starters.
    The main panel does the charging of course.
    Now the idea of small solar panels driving a motor....
    Solar garden lights come to mind...
    If switched off they just work as a charger....
    But they still provide a source for a voltage check...
    Using a green LED for the actual tracking info might work easier though.
    Here we could use a Xor chip to get usable values for 4 LED's.
    Two either side at increasing angles.
    Sadly this would only give instant tracking, which is quite a drain.
    With some more transistors, a timer and so on it is possible to established a delayed tracking.
    Here the system waits until a critical value or timelimit is reached until the motor is activated.
    Going full scale some UNO and a buck coverter could fully automate this task.
    Either way, once the motor needs to move the energy comes from the small batteries of the garden lights....


    5 years ago on Step 6

    Could you throw in a small capacitor bank to run the motor? The motor isn't constanty running so the small panels would be able to keep a good enough charge in the bank.

    1 reply

    Reply 5 years ago on Step 6

    The trekbot toys use a supercapacitor rather than a battery to store their charge, so they're definitely good enough to use as you suggest.


    6 years ago on Step 2

    I always thought that if you connected the black wires together that the output fron the corresponding cells would be positive. The only way I can see getting a positive and a negative output is connecting the positive to a negative,thus giving you a positive output and a negative output. Love the instructable! I have been trying to find a simple solar tracker for my homemade solar panels, and this would fit the bill nicely. Maybe feed the 2 outputs to a camparator or even a couple of OpAmps then connect that to the motors via driving transistors. I dont know, but will post a instructable when I do figure it out!


    6 years ago on Introduction

    I found out an interesting fact today, You can use an LED as a light sensor, especially the green ones. I have an old strip of Christmas lights that I cut up last year (I was converting them from 110V AC to 12V DC) - I put a green LED on my voltmeter on the lowest voltage scale and it does indeed reat to light, You'll either need an op-amp to am[lify the signal, or hook it up to an ADC (say in an Arduino) and add up several samples to reduce the noise.

    This appears to be a fairly well documented technique (even here in Instructables) but it was new to me.


    6 years ago on Introduction

    Have a look at my "hard drive solar tracker" it is an adaption of this method and can drive pretty much any motor you wish.

    I've also got a transistor version, not sure if I posted it on my website though.

    4 replies

    Reply 6 years ago on Introduction

    I do certainly have no shortage of dead drives, that's for sure!

    It's a nice simple circuit, but are you powering it from the panels that you're shining the light on or from that DC power supply I can see off to one side? :-)

    I may build this for the fun of it, but the biggest thing I still want to implement is a cheap way to power the rotation (or control it if unpowered) using no more than the small PV cells. i think your design may need more power than I have spare.

    Thanks for the link, your tracker works nicely.


    Reply 6 years ago on Introduction

    I see, I was intending on running off the solar panel((20W) it will track, but I don't have a way to run it without a power source.


    6 years ago on Introduction

    I have a one-year free pro membership available which I'll give to the person who comes up with the most elegant and cheapest way to use this circuit in an actual tracker!

    8 replies

    Reply 6 years ago on Introduction

    Well, comments have finally trickled to a halt and this seems like a good time to award the 1Yr pro upgrade that I promised.

    I was hoping someone would actually build something and try out their ideas, and if they had, that would have made the selection of a winner much easier!

    However many good ideas were suggested and chosing a winner was tough - for example I thought Wroger-Wroger had a good grasp of the big picture; alarrrd and jtlowe made low-tech analog suggestions in the sprit of the instructable; perfo, eecharlie, and others contributed valuable detailed information on electronics that would definitely help in a scaled up version of this project. Every commenter had something helpful to say - there really were no bad ideas here.

    In the end I decided to give the prize to jtlowe for his suggestion of using a wind-up clockwork mechanism, which was at the level of complexity that I was looking for and is what I'm going to work on next to improve the design.

    Congratulations JT! I'll email you the code.


    Reply 6 years ago on Introduction

    I would certainly agree with you that you don't have enough current to drive a motor. But I would say more importantly, you don't have enough power (voltage times current).
    However, if you are using solar lights you have a readily available power source, the batteries.
    And another thing is that all the solar lights I've seen have another sensor to turn off the lights during the day so that the batteries will charge more. I don't know if these are phototransistors or LDSs but I would think this would be a better source of your 'light' differential signal. So what I would try would be to run the differential signal into a transistor for gain. The transistor is powered by the battery or batteries and then you would have enough power to drive the motor. Since the motor isn't going to be moving that much, you should theoretically have your efficiency. Now you may have to connect two in series to get enough voltage for the motor.
    Now, I'm not an analog guy or a motor guy but I think this would have a better chance of working.



    Reply 6 years ago on Introduction

    The cheaper garden lights use the PV cell to determine the light level rather than using a separate sensor. I doubt that the part of the circuit that switches the LED off it draws much current.

    I'm wondering if the pulse of power from the coil in the Joule Thief circuit is enough to turn the motor a little - it would be more like a stepper motor if it worked, as long as it didn't drive it too far past the optimum position.


    Reply 6 years ago on Introduction

    The Joule Thief cannot add more energy than is already there.

    Here's my suggestion. Take out the output LEDs from the solar lights, Leave the rechargeable batteries in. They will charge up to maybe 1.4V. Get a low voltage comparator. I know some can be powered by less than 1V. Power the comparator with one of the batteries. Now take the PV output from the two solar lights. This voltage is going to be higher than the battery so divide it down with a voltage dividers. Tie the two voltages to the comparator. Add hysteresis so the motor will stop when you get close. Now you know that the direction of the sun goes in only one direction so the motor needs to move in only one direction. Drive the output of the comparator to the motor. You might need a transistor to give it enough current but the battery should have any capacity to turn the motor especially since the duty cycle for the motor will be so low.

    Now if this isn't enough power, you could tie two solar lights in series so the battery voltages would be about 2.8V.

    By the way a cheaper solar light is the $1 solar light keychains sold on ebay. They actually put out 3 volts.



    Reply 6 years ago on Introduction

    "The Joule Thief cannot add more energy than is already there."

    maybe what I said didn't make sense out of context so let me explain what I was thinking: the motors need a higher current to get started turning than they do to keep turning. I know that the power output from the PV cells isn't enough to start the motors turning, but I was hypothesizing that if you collected the output and sent it all at once in a short pulse, it *might* be enough to overcome that initial inertia and turn the motor a little. I was also guessing it wouldn't turn far and wouldn't have enough duration to keep it turning with the risk of overshooting the target. Again - all assumptions, but ones I plan to test on Saturday morning in the heat of the day :-)

    Now ideally I would suggest using a capacitor to build up charge, but since we have the JT circuit already - came with the $1 unit that the PV cells came in - we might as well reuse that if it would work. From what I read in another instructable, it looks like JT uses the collapsing field of a coil to generate a large pulse - at a voltage sufficient to charge a 1.2v battery, so it is plausible it would be enough to kick over a gearmotor since a AAA cell alone can do it even when the AAA cell is almost depleted.

    I'll give it a try and report back. Chances are it won't work, but it's definitely worth the effort to try.


    Reply 6 years ago on Introduction

    Yes, the JT circuit doesn't add energy but it will concentrate more in a pulse. I doubt it will work also.
    But instead of adding a capacitor, you could probably add the battery as it's already part of the $1 cost anyway. The battery is going to act just like a capacitor.
    By the way, we only have a Dollar Tree out here but I've never seen a solar light in there. Maybe I'm looking in the wrong place.

    Good Luck.



    Reply 6 years ago on Introduction

    I will keep an eye out for them. Personally, I like the $0.99 solar keychain as they have 3V batteries and include 3LEDs. I bought some on Newegg but they're cheaper on ebay.
    While this is an interesting theoretical project, I question the practical application. As you said it's not very practical outdoors.
    The problems I see indoors are first, you probably need an unobstructed south facing window. Even with that I don't think there would be much tracking involved.
    I have a south facing window but when the sun is out, I always have my blinds down and there ain't no room for a moving panel.
    I would think a slightly larger panel would cover any charging panel.
    Other questions, how much is solar charging a cellphone going to save over plugging it in.
    By the way, I charge my solar keychains under a lamp. Well, these solar lights charge under room lighting? Guess I've never tried it.

    I guess if you're going 'Green' I would say a bigger solar panel is more efficient as you are not wasting energy moving the panels.

    A question, however. Since a solar panel is taking energy from the sun, will it be cooler? In theory, I would think that since some of the energy is being converted to electricity, there would be less heat.