Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO Solar-Powered Light Sensor System with Servo Control

View and Edit Project In Cirkit DesignerImage of Arduino UNO Solar-Powered Light Sensor System with Servo Control

Circuit Documentation

Summary

This circuit involves a combination of photoresistor sensors, resistors, a solar panel, a battery, and an Arduino UNO microcontroller. The circuit is designed to measure light intensity using photoresistors and control two MG90S servos based on the readings. The Arduino UNO is powered by a 12V battery and a solar panel, and it reads the analog signals from the photoresistors to control the servos.

Component List

  1. Battery 12V

    • Pins: +, -
    • Description: Provides 12V power supply to the circuit.
  2. Photoresistor (LDR) Sensor (Wokwi Compatible)

    • Pins: VCC, GND, DO, AO
    • Description: Measures light intensity.
  3. Resistor

    • Pins: pin1, pin2
    • Description: Limits current in the circuit.
    • Properties: Resistance: 10 Ohms
  4. Solar Panel

    • Pins: +, -
    • Description: Provides additional power supply to the circuit.
  5. MG90S Servo Motor

    • Pins: SIG, VCC, GND
    • Description: Controls mechanical movement.
  6. Arduino UNO

    • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
    • Description: Microcontroller for processing and control.

Wiring Details

Battery 12V

Photoresistor (LDR) Sensor (Wokwi Compatible)

Resistor

Solar Panel

MG90S Servo Motor

Arduino UNO

Code Documentation

Arduino UNO Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This code is a basic template for the Arduino UNO. The setup() function is where you initialize your settings, and the loop() function is where the main code runs repeatedly. You can add your specific logic to control the servos based on the readings from the photoresistors in these functions.