Home All Projects
Intermediate

Dual-Axis Arduino Solar Tracker

This project creates a dual-axis solar tracker using an Arduino, four light-dependent resistors (LDRs), and two servo motors. It automatically positions a solar panel to face the direction of the strongest sunlight throughout the day, increasing efficiency and showcasing basic automation.

Dual-Axis Arduino Solar Tracker
3,958 views
2 likes

Components, Tools and Machines

1x Hot Glue
-
1x Screwdrivers
-
1x Hot Glue Gun
-
1x Arduino Nano
🛒 Buy Now
2x parrallax servo
🛒 Buy Now
1x Popsicle Stick
-
1x 40 colored male-male jumper wires
🛒 Buy Now
1x 5.5 V 1 watt solar panel
-
1x Foamboard
-
1x Hand-size cardboard box
-
1x Chopstick
-
1x Breadboard 100x70
🛒 Buy Now
1x 10 jumper wires 150mm male
🛒 Buy Now
1x Duct Tape
-

Apps and platforms

1x Arduino IDE
Official Site

Project description

The project is a solar tracker that uses readings from the 4 LDR's, to position the servo to point at the light source. The code was written in C++ and included the arduino servo library. To build the project first you had to mount the horizontal servo to a rigid base so that servo stays in place. The best way to do this is to screw the servo onto the base and tape that base down, so the base and servo remain still. Next, the horizontal base that houses the solar panel has to be mounted onto the first servo. To do this you would also have to screw the base down onto the servo horn, while making sure the servo would have enough torque to rotate that base. It is best to make that base out of solid foamboard. Then you have to glue popsicle sticks on both sides to make sure the base remains stable. Now, you should test the servo to see if it rotates properly. This should be a successful horizontal rotation. Then you take popsicle sticks and glue them upright on top of the base. This makes sure that the panel you would attach later will have enough space to rotate up and down. Then on one of the popsicle sticks (doesn't matter), tape or glue the second servo, to the popsicle stick making sure it's straight and still. If you need more balance place more popsicle sticks as support. Then take another popsicle stick and screw it onto the second servo. After that cut out a carboard panel that is a lot bigger than the solar panel or object you want to use. In the center of the panel take the solar panel and fasten it in the center. Then place your 4 LDR's on each of the four corners. Meanwhile, on the popsicle stick that doesn't have a servo, put a cardboard panel on it (glue or tape), and cut a hole in which a chopstick can fit into it. Then take a chopstick, place one end in the hole and take the other end and hot glue it to the popsicle stick on the second servo. Then take your panel and mount it on the chopstick making sure the chopstick and the panel are straight. Then wire the LDR's and servo, use tape to secure connections and tape together wires for management. An optional add-on is to create borders between the LDR's (to better track light), but it should be fine without them. Test your components as you build, and watch your solar panel track light!

Code

🔒 Unlock Code

Support to get the Source Code for this project

Project Reference Code: dual-axis-arduino-solar-tracker-357092-en
2450 THB
PromptPay QR Code