Building an Automatic Solar Tracker With Arduino Nano V2

by OmA17 in Circuits > Arduino

36080 Views, 165 Favorites, 0 Comments

Building an Automatic Solar Tracker With Arduino Nano V2

soltrk2done.jpg

Hi! This Instructable is meant to be a part two to my Solar Tracker project. For an explanation of how solar trackers work and how I designed my first tracker, use the link below. This will offer context for this project.

https://www.instructables.com/id/Building-an-Autom...

The goal of this project was to improve on my old solar tracker, as well as add a couple of bells and whistles to make it more interactive. Some changes in the design are a new circuit board, fully laser cut wood body, and indicator LEDs and a buzzer.

Materials and Equipment

Here are the materials used to build the tracker:

  1. Arduino Nano
  2. 5x 220 Ohm Resistors
  3. 3x 10k Ohm Resistors
  4. 3x Light Dependent Resistors
  5. 2x Servos
  6. 4x Blue LEDs
  7. Red LED
  8. Buzzer
  9. Perfboard/Breadboard
  10. Wire

This is the equipment used to build the tracker:

  1. Laser Cutter
  2. Soldering Iron
  3. Heat Gun

Laser Cutting the Base Assembly

Soltrk2base.jpg

I have attached the SVG laser cut files below. Make sure the scale is set correctly before cutting.

Assemble the Base

soltrk2baseglue.jpg
soltrk2baseunf.jpg
soltrk2base.jpg

After laser cutting the parts, we need to file the edges of the rectangular pieces so they fit together. After that, we can hot glue the entire thing together. Make sure to have the piece with the arrows in the same position as the picture above, and make sure the piece with the wire hole is on the opposite side.

Mount Servo, LEDs, and Buzzer

soltrk2servo.jpg
soltrk2ledwire.jpg
soltrk2led.jpg

Now its time to mount the base hardware. For the LEDs and buzzer, I soldered wires to each lead and covered the bare sections with shrink wrap. I then labeled each component (to connect to Arduino properly) and glued it into place. Make sure to label each wire, otherwise, it will be difficult to troubleshoot later.

Laser Cut Solar Panel Assembly

soltrk2mount.jpg

Attach Side Panel Braces

soltrk2brace1.jpg
soltrk2brace.jpg

Attach 3 braces to each side of the main panel.

Attach Side Panels and Sensor Divider

soltrk2panel.jpg
soltrk2divider.jpg

Make sure to attach the pieces as shown in the images so that sensors can be placed properly.

Assemble Solar Panel Arm

soltrk2arm1.jpg
soltrk2arm2.jpg

Mount Servo With Brace to Solar Panel Arm

soltrk2servobrace.jpg
soltrk2servoarm.jpg

First, attach the servo brace to the servo. Then hot glue the servo to the arm assembly.

Attach Solar Panel Mount to Arm

soltrk2top1.jpg
soltrk2top2.jpg

Attach Solar Panel Mount to Base

soltrk2assembly.jpg

Attach Light Sensors to Panel and Drill Holes

soltrk2ldr1.jpg
soltrk2ldr3.jpg
soltrk2ldr2.jpg

Drill 2 1mm holes for each pin of each light sensor as shown in the image. Mount sensors as shown and solder wires to each lead. Make sure to label each wire.

Circuit Schematic

Screen Shot 2019-05-15 at 5.00.54 PM.png
Screen Shot 2019-05-15 at 5.51.07 PM.png

I have attached a circuit schematic as well as a breadboard version.

Solder Circuit Board

soltrk2brdb.jpg
soltrk2brdt.jpg

Following the schematic, build the circuit using a breadboard or solder together a chip using a perfboard.

Attach Wires

soltrk2wires.jpg

Now its time to attach the wires. Since all the wires were labeled beforehand, this will be easy.

Software

I have attached the Arduino code below. As all sensors are different, you may have to adjust some values to tune your solar tracker.

Its Done!

soltrk2done.jpg

That concludes this tutorial! I have attached a video of the tracker in action below. Please leave a comment and I will try to answer them. Thank you!