Track and Tilt- IOT Based Dual Axis Solar Tracker with Edge Ai integration

Published Aug 02, 2025
 200 hours to build
 Beginner

The Dual Axis Solar Tracker with Edge AI intelligently adjusts solar panel orientation based on real-time sun position and weather conditions, enhancing energy efficiency. Equipped with a rain detection system, it safeguards panels by tilting them during rainfall, while edge AI ensures rapid, on-device decision-making without cloud dependency.

display image

Components Used

Arduino Nano
Arduino Nano
1
Raspberry Pi 4 - 4GB
Single Board Computers Raspberry Pi 4 4GB
1
Relay module 4 Channel
Relay module 4 Channel
1
Servo motors
Servo Motors – Control flaps that direct waste into the correct compartment.
2
Rain Sensor Module
Detects rainfall and sends signals to adjust panel position to prevent damage.
1
Light Dependent Resistor (LDR)
Used to detect sunlight intensity for optimizing panel alignment.
4
Power Supply Unit
Provides regulated power to microcontrollers and actuators.
1
Description

Step 1: Hardware Assembly

Steps:

  1. Mount the Solar Panel on a servo-driven dual-axis frame.
  2. Attach 4 LDRs on each corner of the panel to detect sunlight intensity.
  3. Connect Servo Motors to Arduino PWM pins for axis control.
  4. Interface Rain Sensor Module to Arduino digital input pins.
  5. Connect Raspberry Pi Camera (or USB webcam) to Raspberry Pi.
  6. NodeMCU Setup for sending sensor data to ThingSpeak/Azure IoT

    Step 2: Arduino Programming (Sun & Rain Control)

  7. Write code to:
    1. Continuously read LDR values and adjust servo motors to align with the highest light intensity.
    2. Monitor Rain Sensor to override tracking and tilt panel to a safe position.
  8. Upload code using Arduino IDE.
  9. Step 3: Raspberry Pi Edge AI with OpenCV
  10. Install Python, OpenCV on Raspberry Pi.
  11. Write a Python script to:
    1. Capture images or video streams.
    2. Detect cloud density or shading using image processing.
    3. Adjust panel alignment for maximum efficiency.
    4. Integrate ML model (optional) to predict weather patterns.
  12. Example of AI-based Cloud Detection:
     
  13. Step 4: IoT Cloud Integration
  14. NodeMCU ESP8266 is used to upload sensor data to:
    1. ThingSpeak for live data visualization.
    2. Azure IoT Hub for analytics and dashboarding.
  15. Use MQTT/HTTP protocol to send data.
     
  16. Step 5: Testing & Demo Video
  17. Test sun tracking by using a torch to simulate sunlight.
  18. Spray water on the rain sensor to simulate rain response.
  19. Observe panel adjusting automatically.
  20. Monitor data logging on ThingSpeak/Azure dashboard.

    Working Video:

    Circuit Diagram:

Codes

Downloads

Dual_Axis_Solar_Tracker_Diagrams Download
Comments
Ad