Project tutorial
Arduino Sun Tracker Turret

Arduino Sun Tracker Turret © CC0

Follow the sun with Arduino! In this tutorial, we'll be building an Arduino based Solar Tracking Turret.

  • 1 comment
  • 179 respects

Components and supplies

Asm rg turreta
RobotGeek Desktop Roboturret
Rg rotknob a
RobotGeek Rotation Knob
Rg light a
RobotGeek Light Sensor
RobotGeek Small Workbench
Ph a000066 iso (1) ztbmubhmho
Arduino UNO
The RobotGeek Desktop RoboTurret comes with a Geekduino, but you can use official hardware from Arduino if you prefer.
DFRobot Analog UV Sensor V2
OPTIONAL: In place of the light sensors, you can use UV Sensors if you'd like to accurately report the UV index for your project.

Apps and online services

About this project

Follow the sun with Arduino! In this tutorial, we'll be building an Arduino based Solar Tracking Turret. Most commonly, these are used in Photovoltaic systems to maximize the surface area of sun exposure on solar panels. This is an easy build, so let's get started!

Step 1: Assemble the Turret

Follow the Desktop RoboTurret Assembly Guide. Once your turret is built, there are many ways to build the top portion of the tracker. General advice for building the top portion: Attach your sensors to the top plates as close to center as possible. Shown in the first picture is the simplest way to get all of your sensors near center. Notice the wiring through the plate, kept loose so that there aren't any snags as the turret aims itself. The fins are 8 inches tall, which should be plenty to cast shadow on the sensors. I've used scrap cardboard for the fins, but you can use whatever material suits you best, so long as it is opaque and can throw a shadow. At the back of the turret base, there is plenty of room to mount your two potentiometers. one controls speed, the other controls the sensitivity threshold for the light sensors. Mounting them to the base allows you to fiddle with them to easily dial in your settings once you have it running.

Step 2: Wiring

Follow the Wiring Diagram carefully to hook up your electronics. Mind the position of your Light Sensors, as putting them in the wrong spot will cause strange behavior. Also mind that your jumper for the servo pins 9, 10, and 11 is set to VIN, so that your servos function properly.

Note: A 6V power supply will work just fine, and is included in the RoboTurret Kit.

Step 3: Programming

Download the desktopRoboTurretV3 sketches from Github if you haven't already, and extract it to your Arduino folder. Open up:

File → Sketchbook → desktopRoboTurretV3 → roboTurret3_solarTracker

and upload it to your Arduino.

Power up your turret, get a lamp ready, and start fiddling with the knobs! You'll notice as you adjust one of the knobs, the turret will turn faster or slower. As you adjust the other, the light sensitivity will rise and fall, giving you different behavior. Adjust these knobs until your turret tracks the light smoothly, and you're ready to get some sunburn!

Step 4: Let there be Light!

You've made a robot that just can't help but stare directly at the sun! What will you do now? We'd suggest looking into making your own solar panel to throw on it so you can reclaim the energy lost by the servos and maybe charge a cell phone while you're at it? What would happen if you swapped out the Light Sensors for something like a Flame Sensor or UV Sensor? Let us know what you come up with, we'd love to see it!




Wiring Sun Tracker
Wiring Sun Tracker


Similar projects you might like

Solar Panel Sun Tracker - Phone Charger

Project tutorial by FIELDING

  • 185 respects

Non Optical Solar Tracker (East Tower 2.4KW)

Project in progress by Team Trouble

  • 57 respects

Solar Tracker with Live Data Feed - Windows IoT

Project tutorial by Jed Hodson

  • 1 comment
  • 29 respects

Solar Charged Battery Powered Arduino Uno

Project in progress by Igor Fonseca Albuquerque

  • 173 respects

Controlling an Arduino Turret with IR Remote

Project tutorial by Team RobotGeek Projects Team

  • 1 comment
  • 20 respects

Servo-Controlled, Light-Tracking Solar Panel Platform

Project tutorial by scott mangiacotti

  • 52 respects
Add projectSign up / Login