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

Arduino UNO Solar-Powered Smart Lighting System with Motion Detection

View and Edit Project In Cirkit DesignerImage of Arduino UNO Solar-Powered Smart Lighting System with Motion Detection

Circuit Documentation

Summary

This circuit is designed to integrate various components including an Arduino UNO, solar panel, solar charge controller, battery, sensors, and other peripherals. The system is powered by a solar panel and a 12V battery, and it includes functionalities for motion detection, light sensing, motor control, and data logging.

Component List

  1. Arduino UNO

    • Description: Microcontroller board based on the ATmega328P.
    • 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
  2. Solar Panel

    • Description: Converts sunlight into electrical energy.
    • Pins: gnd, vcc
  3. Solar Charge Controller

    • Description: Manages the power from the solar panel to charge the battery.
    • Pins: Solar Cell +, Solar Cell -, Battery +, Battery -, Load +, Load -
  4. 12V 200Ah Battery

    • Description: Stores electrical energy.
    • Pins: GND, 12V
  5. LM2596

    • Description: DC-DC buck converter.
    • Pins: IN, OUT
  6. Photocell (LDR)

    • Description: Light-dependent resistor used for light sensing.
    • Pins: pin 0, pin 1
  7. INA219

    • Description: Current and power monitor.
    • Pins: VCC, GND, SCL, SDA, VIN -, VIN +
  8. L298N DC Motor Driver

    • Description: Dual H-Bridge motor driver.
    • Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
  9. DC Mini Metal Gear Motor

    • Description: Small DC motor with metal gears.
    • Pins: IN1, IN2
  10. Resistor (10k Ohms)

    • Description: Resistor with 10k Ohms resistance.
    • Pins: pin1, pin2
  11. Resistor (1k Ohms)

    • Description: Resistor with 1k Ohms resistance.
    • Pins: pin1, pin2
  12. 12V White LED Strip

    • Description: LED strip powered by 12V.
    • Pins: +12V, GND
  13. HC-SR501 Motion Sensor

    • Description: PIR motion sensor.
    • Pins: GND, OUT, VCC
  14. SD Module

    • Description: SD card module for data logging.
    • Pins: CS, SCK, MOSI, MISO, VCC, GND
  15. NPN Transistor

    • Description: General-purpose NPN transistor.
    • Pins: E, C, B
  16. MPU-6050

    • Description: 6-axis motion tracking device.
    • Pins: VCC, GND, SCL, SDA, XDA, XCL, AD0, INT

Wiring Details

Arduino UNO

Solar Panel

Solar Charge Controller

12V 200Ah Battery

LM2596

Photocell (LDR)

INA219

L298N DC Motor Driver

DC Mini Metal Gear Motor

Resistor (10k Ohms)

Resistor (1k Ohms)

12V White LED Strip

HC-SR501 Motion Sensor

SD Module

NPN Transistor

MPU-6050

Documented Code

Arduino UNO Code (sketch.ino)

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 used to initialize any settings or configurations, and the loop() function contains the main code that runs repeatedly.