Omniscience is not required to make some really cool shit happen. Yes, it took a while, but we can make fuel from the Sun! Solar panels are basically our answer to God. And now that we can make solar electricity, finding the most efficient way to harvest it is tricky.
Some solar farms are just acres of giant solar panels. Some are modular mirrors that direct the Sun to one super concentrated point on a single solar cell.
I would love to make a stadium-sized solar collector, but I lack the resources. Instead, I made a simple solar tracker using an Arduino and servo. I plan to mount this on a robot Mars Rover style, but it works just as well for stationary projects.
Materials
- Arduino
- 2 Light Dependent Resistors (LDRs)
- 2 10k resistors
- Servo
- Solar panel (optional)
- Wire
Step 1: Setting Up the Breadboard
Connect up the circuit as shown in the diagram below. We are using two LDRs as sensors on analog pins 0 and 1. We are using the servo for output on pin 9.
Don't forget to power your Arduino!
Here is how mine ended up looking.
Step 2: Code
There are tons of solar tracking Arduino programs out there and you should pick the one best suited to your project. I am only creating a one-axis tracker, but there are lots of online projects that explain the process for two-axis trackers.
The code for this project was taken from this guide for a two-axis solar tracker, so that if you add another axis later on, the code should still work fine. Download the code here.
Upload the code to your Arduino and bring the breadboard outside or to a lamp.
Step 3: Test
Time to see what your solar tracker is made of. Power the Arduino and bring the whole system over to your lamp. When you move the lamp towards either side of the solar tracker, you should notice the servo pointing towards the direction of the sunlight.
Step 4: Mount Panel
If you see your solar tracker working, it's time to mount up a solar panel. Strictly speaking, you could use a solar tracker for anything, from drying fruit to terrorizing ants, so don't feel obligated to buy a solar panel for this project.
You can just hot glue the breadboard to the servo horn if you want a super simple mount.
However you mount the servo, panel, and LDRs, make sure the panel is facing the same direction as the light sensors.
Above, if I had pointed the light sensors horizontally and the panel vertically, there would be at all times a perfect maximized sunbeam just out of reach of the solar panel!
Thoughts
Solar tracking usually only makes sense for small projects and special cases. The sun-concentrating mirror farms are much cheaper than both traditional solar and motorized solar tracker farms. On the small scale, I would love to create some animatronic flowers that follow the sun!
What would you do with a solar tracker? Let us know in the comments below or in the forum. As always, feel free to message me personally with any questions.
Just updated your iPhone to iOS 18? You'll find a ton of hot new features for some of your most-used Apple apps. Dive in and see for yourself:
Be the First to Comment
Share Your Thoughts