Scaled-up Solar Tracker – proof of concept part 4: Motor driver progress

see part 3 :: see part 5

a schematic showing the motor driver circuit
Motor Driver Circuit Schematic
(click for a larger image in a new tab / window)

In the last post I mentioned a challenge:

If the day is overcast and stays that way for a few hours, then when the sun does come out to play, it’ll be sideways on, or behind the sensor solar panel. That means no lifting and twisting can happen.

I went on to suggest I would experiment with having an additional backward-facing sensor solar panel connected in parallel with thew normal front-facing one.

Turns out that was poor thinking. What I need is one at 90° to the front-facing one. I actually might need the backward-facing one as well.

To allow for the as yet unknown effects on the overall voltage with 2 (maybe 3, later) connected in parallel as described, I’ve adjusted the motor driving circuit to allow some fine tuning.

What I’ve done is to allow the voltage above which the motor should be driven to be set by a trimpot. That way, I can experiment to find the best setting that will work for the voltage produced by the two sensor solar panels (connected in parallel) under varying conditions.

diagram showing the stripboard layout for the motor driver circuit
10×12 stripboard layout
(click to open large image in new tab / window)

Mounting on the solar panel frame

I spent a while working out how to mount the sensor solar panels onto the frame I’ve built for the main solar panels.

I knew I needed a box to house the motor-driver circuit and I soon realized I could attach the sensor solar panel brackets to its sides.

As you’ll see in the photos, everything’s a bit of a botch-job as I work things out.

As you can see, at this stage I’m just making sure everything can be securely mounted and that the arrangement works in practice.

I’ve still to drill holes in the box for the:

  • sensor solar panel wires
  • power in from the 12V leisure battery that’lll be charged by the main solar panels
  • power out from the MOSFET for the motor

I might need to attach a heatsink to the MOSFET. Time will tell.

A quick reminder…

Normal operation

For this, remember that the sensor solar panels are connected in parallel.

When it’s sunny from the moment the sun rises:

  1. When the frame is facing the sun, the front-facing sensor solar panel is shaded, the motor isn’t powered and so no lift-and-twist happens
  2. As the sun moves across the sky, the right-hand main solar panel will no longer be shading the front-facing sensor solar panel. The voltage of the sensor solar panels will rise until it exceeds the voltge set by the trimpot and the motor will turn
  3. Lift and twist will happen and the front-facing sensor solar panel will again be put in the shade of the right hand main solar panel. The voltage of the sensor solar panels will fall until it’s below the voltage set by the trimpot and so the motor will stop turning

Operation when it’s overcast in the morning but sunny later

This is the challenge I’ve hopefully overcome:

  1. The sky is overcast first thing and stays that way until mid-day
  2. Without any morning sunshine, no lift-and-twist happens
  3. When the sun comes out at mid-day, it shines on the side-facing sensor solar panel
  4. The voltage of the sensor solar panels rises until it exceeds the voltage set by the trimpot and so the motor will turn
  5. As it turns, the left-facing sensor solar panel moves away from pointing directly at the sun but the front-facing sensor solar panel is moving towards the sun
  6. With a bit of luck and some fine tuning, the voltage of the sensor solar panels will rise enough to exceed the trimpot voltage setting and turn the motor

Well, that’s the plan!

Next steps

I’m waiting for the motor to be delivered – it should be here next week or early the week after.

When it arrives, the first thing to do is to mount it and connect it to the pulleys via the rod end bearing and rotating plate.

Then comes the big test – will it be able to lift 20kg???? It should do but, as they say, the proof of the pudding is in the eating!

Watch out for my next post when I’ll report back.

Scaled-up Solar Tracker – proof of concept part 3

see part 2 :: see part 4

In this blog post I’m going to describe the circuit for driving the motor that’ll do the lift-and-twist, drop-and-reverse-twist.

My overall ambition is to keep any electronics to the bare minimum, so that building the circuit will be within reach of anyone with a soldering iron and a little bit of application.

photo of the
one step forward and two steps back – after the gear-stripping incident

Summary of where things are now

I’ve replaced the temporary wooden dowling with the stainless steel pole. Same for the lifting bearing the eyelets are attached to, so that’s progress 🙂

After the stripping of gears in my intial motor / gearbox solution 😞, I now know about the importance of calculating the required torque and getting a motor that can cope with it!

So I’ve done that and to be able to lift 20kg when the pulling point is 4.5cm from the motor shaft, I need one that can handle 4.4Nm (calculator here). As many online suppliers use units of kgf.cm, this works out at 45kgf.cm

It looks like the only motors that get close are 12V ones, which works out ok because the main solar panels will be charging a 12V battery. That means I can use the battery to drive the motor both during the day (lift-and-twist) and at dusk (drop-and-reverse-twist).

Principles for driving the motor

Initially I’m using a 6V solar panel to act as the “sensor” for deciding when to drive the motor. I’m not even considering using an LDR because of the environmental harm of the cadmium sulphide used in them.

During the day when the sensor is exposed to full-ish sunlight, the motor will turn and do a little bit of lifting and twisting – enough to put the sensor into shade behind the main solar panels.

  1. When the sensor is in the shade, the motor will stop turning.
  2. When the sun moves across the sky some more, the sensor catches the light, the motor turns and the sensor is once more put it in the shade. Repeat.
  3. At dusk, when the sensing solar panel is producing almost zero volts, the motor will turn until a microswitch is hit, removing power from the motor.
  4. When daylight arrives, the sensing solar panel will turn the motor on again (by bypassing the micro switch) and so allow the cycle to repeat.

Challenge

If the day starts overcast and stays that way for a few hours, then when the sun does come out to play 🌞 it’ll be sideways on to, or behind the sensor solar panel. That means no lifting and twisting can happen.

More on this later.

Sensor and Driver Circuit

Summary

I’m using a “window comparator” to monitor the voltage across the sensor. When its voltage lies outside the two defined reference voltages, a P-channel MOSFET is switched on, powering the motor.

Circuit

I used the free version of EDA Standard to draw and simulate the circuit before building it on a breadboard. Here’s the schematic:

a schematic of the Sensor and Driver Circuit with two points of interest marked A and B
schematic of Sensor and Driver Circuit
(click to see full size in a new tab / window)

If you ignore the voltmeters, the solar panel, the microswitch and the motor, there’s only 8 components (the LM393 houses two comparators in one 8-pin chip) so it’s not nearly as complicated as it seems at first glance! 🤪

Circuit description

The top comparator is connected as an inverter, so that when sensor voltage is above around 5.4V (A in schematic), its output goes low, pulling the MOSFET gate down and so switching it and the motor on (B).

Its 5.4V reference voltage is set by the R1 (100kΩ) and R2 (82kΩ) voltage divider.

The bottom comparator is connected as a non-inverter, so that when sensor voltage is below around 1.1V, its output goes low, pulling the MOSFET gate down and so switching it and the motor on.

Its 1.1V reference voltage is set by the R3 (100kΩ) and R4 (10kΩ) voltage divider.

Notes

In the schematic you’ll notice I’ve substituted a potentiometer to emulate the sensor and a red LED as a substitute for the motor.

Breadboard

With everying working just fine in the simulation, next I built a breadboard version to make sure it works in reality.

a photo of the breadboard with major components labelled
the breadboard and major components
(click to see full size in a new tab / window)

Not included on the breadboard is the microswitch. In practice, as the schematic above shows, it will be at the output of comparator 2. That’s the one that comes on at dusk, causing the motor to be driven via the MOSFET whose gate is now pulled low.

When the normally closed microswitch is activated and opens, the MOSFET’s gate will not be pulled low any more (with R5 acting as a pull-up resistor), so switching it and the motor off.

When the next dawn arrives, the microswitch is bypassed because comparator 1 is the one that switches the MOSFET on and hence the motor.

I used a real 6V 0.8W solar panel (with a 330Ω resistor across its terminals to give it a little stability) so I could test that the motor would operate under the right circumstances.

I emulated the sunshine with a bright light and you can see the results in the photos below.

As you can see from the photos:

  • under full sunshine (above 5.4V) the motor is on
  • at 1.25V (ie above 1.1V and below 5.4V) the motor is off
  • at 1.06V (ie below 1.1V) the motor is on

Perfect! 🤓

Now, about that challenge

At the start of this blog post I noted that there’s a challenge to overcome:

If the day is overcast and stays that way for a few hours, then when the sun does come out to play it’ll be sideways on to, or behind the sensor solar panel. That means no lifting and twisting can happen.

I have in mind the idea of placing another solar panel on the back of and wired in parallel with the sensor one but facing in the opposite direction.

I’m not sure how that’ll go:

  • in bright sunshine the overall voltage won’t reach as high because the one on the back will be at a lower voltage (less light reaching it) and so will tend to pull it down some
  • when in the shade, the voltage won’t reduce as much – because the additional one will be pointing in the other direction, and won’t be shaded from the sky
  • on overcast days it’ll probably increase the overall voltage, maybe causing some turning when it shouldn’t

Before I can decide if it’s the way to go, I’ve got some experimenting to do. I’ve got some low power 5V solar panels to hand so I’ll use them.

Scaled-up Solar Tracker – proof of concept part 2

see part 1 :: see part 3

Pole top mount design

I’ve completed the design of the mount for the pole top and have asked a local supplier to make the parts for me out of stainless steel.

As you can see from the sketches, the design of the pole top mount allows the solar panel frame to be pointed further up or down, depending on the time of year.

Continuing the build…

Here’s the starting point for part 2 of the build

photo showing the starting point for part 2 of the design and build
starting point for part 2 of the design and build

The parts I was waiting for arrived:

  • the stainless steel pole
  • the lifter bearing – the short length of bar with the recess for the ball bearings that the lifting eyelets attach to
  • the 1:810 reduction ratio gearbox

The installation went smoothly – I used grease to hold the ball bearings in place while putting the lifter bearing in place.

I’ve now realised there’s a slight issue there as regards portability. It’s because the only thing stopping the bearings falling out (apart from the grease) is the bottom of the pole resting on them. And if the pole is to be removed for easy portability, the grease will cause some of the bearings to stick to the bottom of the pole. Hmmm….

Ok, onwards…

I coupled the 100rpm N20 motor to the gearbox and gave it a test. All went well and it was satisfying to watch the steel pole go up and down, twisting back and forth as it did so. It did take 6 mins or so for one complete cycle but that’s needed to get the required torque.

The next step was to try it out, building up to a weight equivalent to the final build and see how well everything coped. So I filled a 6 pint milk container with water and attached it to the pole as the first step.

I switched on power and, as it took the strain, the gearbox started to grind and stutter and then locked solid. Oh dear…

I removed and stripped down the gearbox and found the reason – a few teeth on some of the gears had broken off.

photo showing stripped teeth and damaged gears in the speed reduction gearbox
damaged speed reduction gearbox

So it turns out that the speed reduction gearbox I chose simply can’t cope with the required torque – it couldn’t even cope with around a quarter of the required torque 🤪

I’ve spent a good few hours online trying to find an alternative. I’ve fired off a few emails to suppliers of those that look likely, so we’ll see.

A reminder of the mechanism’s core requirements

The motor has to be driven by a single lithium ion battery, down to 3.7v

RequirementReasoning
The motor has to be driven by a single 18650 lithium ion battery, down to 3.7vThe readily available TP4056 charging module can, with a small mod, detect darkness and then switch the motor on until everything is reset to the sunrise position
Absolute minimum of 2 120W solar panelsIdeally this would be 4 solar panels, giving an additional weight of 7.2kg, but 2 would do.
Torque needed at a minimum is around 3.5Nm (torque calculator)
The total weight of pole, frame, top pole mount and 2 solar panels is approximately 15kg, and the lifting force is applied at a distance of 45mm from the gearbox shaft.

If I can’t get a gearbox capable of handling the required torque, I’ll need to rethink a lot of the above. Fingers crossed! 😜

Scaled-up Solar Tracker – proof of concept

see part 2

an annotated photo showing the proof-of-concept design for a scaled-up solar tracker
scaled-up solar tracker version with major parts labelled

The previous final solar tracker was good for 3 x 10W solar panels (and could probably have managed a couple more).

I want to scale it up so it can cater for 400W of solar panels or better. The main hurdles to overcome:

  1. With increased surface area, the ability to withstand high winds
  2. The increased weight of 400W worth of the solar panels
  3. A method of mounting the solar panels on the lift-and-twist pole
  4. Making it portable so it can be used both at home and taken on camping holidays
  5. Mounting the finished build – allowing for temporary or fixed location

I think I’ve solved the first two by:

  • building a box made from 9mm plywood, using reinforced metal brackets to join the sides, top and bottom together
  • using a pulley system with 3mm nylon cord to do the heavy lifting, with a central reinforcer dowling to reduce the strain on the top of the box where the pulleys attach
  • using a gearbox with a 1:810 reduction ratio to get much more torque than given by the 1:90 used in the earlier version.
watch it in action

Differences between the proof-of-concept and the actual design

While waiting for parts to be delivered, I’ve progressed with various substitutes from the actual design.

I’ve used a length of wooden dowel inside the aluminium guiding tube. The design calls for a stainless steel tube with the bottom end closed off.

The mechanism that the lifting eyelets are attached to inside the aluminium guiding tube is currently a short piece of dowel. It’ll be replaced by a 12mm high stainless steel bar, with a 2mm deep recess in the top to take some 3mm ball bearings. The closed end of the stainless steel tube will rest on the ball bearings.

I was sent the wrong gearbox – it had a reduction ratio of 1:55 instead of the 1:506 ordered. I’m fighting a battle with the suppliers to get them to replace it, so in the meantime I’ve taken the opportunity to order one from a different supplier with a 1:810 reduction ratio – as I think it’ll better be able to do the heavy lifting.

Still to resolve

I still haven’t worked out how to attach the solar panels to the top of the stainless steel lift-and-twist tube.

On the one hand, they need to be detachable for portability, and on the other, they need to be able to be fixed firmly to the tube to resist high winds.

I’m not convinced that the 2mm wall thickness of the stainless steel tube is going to be strong enough.

Once it arrives I’ll be able to test it and see if it’s ok.

Lessons learned from this proof of concept

I’m stupid, hehe!

It wasn’t until I built it that I realized the 2 times mechanical advantage gain of the block-and-tackle was entirely pointless because it meant I had to have twice the diameter on the rotating plate than I’d otherwise need.

And having twice the diameter doubles the torque needed!

For the unitiated, torque is a measure of the rotational force-at-a-distance-from-the-centre – if you increase the distance, you increase the torque needed.

Without the block-and-tackle, I only need a diameter of 4cm for the rotating plate. So I can get rid of it, simplifying things while getting the torque I need.

Read more about solar trackers

Wikipedia does a good job in covering the concepts and advantages of solar trackers.