Arduino UNO Solar-Powered Light Sensor System with Battery Backup
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to integrate various sensors and modules with an Arduino UNO microcontroller. The system is powered by a solar panel and a 12V 200Ah battery, regulated by a solar charge controller and an LM2596 voltage regulator. The circuit includes light sensors (LDRs), resistors, and other modules such as a WiFi module, MPU-6050, and a GSM module. The Arduino UNO reads data from the sensors and can communicate wirelessly via the WiFi and GSM modules.
Component List
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
Solar Panel
- Description: Converts sunlight into electrical energy.
- Pins: gnd, vcc
Solar Charge Controller
- Description: Manages the power from the solar panel to charge the battery.
- Pins: Solar Cell +, Solar Cell -, Battery +, Battery -, Load +, Load -
12V 200Ah Battery
- Description: Stores electrical energy.
- Pins: GND, 12V
LM2596
- Description: Voltage regulator.
- Pins: IN, OUT
Photocell (LDR)
- Description: Light-dependent resistor.
- Pins: pin 0, pin 1
Resistor
- Description: Limits current flow.
- Pins: pin1, pin2
- Properties: Resistance: 10000 Ohms
Wifi module ESP8266-01
- Description: WiFi module for wireless communication.
- Pins: RX, GPIO0, GPIO2, GND, +3V3, Reset, CH-PD Chip power down, TX
MPU-6050
- Description: 6-axis motion tracking device.
- Pins: VCC, GND, SCL, SDA, XDA, XCL, AD0, INT
Adafruit TSL2591 High Dynamic Range Digital Light Sensor
- Description: High dynamic range light sensor.
- Pins: VCC, 3.3V, GND, SCL, SDA, INT
GP2Y1010AU0F
- Description: Optical dust sensor.
- Pins: VCC, Vout, S-GND, LED, LED-GND, V-LED
SIM800L GSM Module
- Description: GSM module for cellular communication.
- Pins: 5V, GND, VDD, SIM_TXD, SIM_RXD, RST
MG996R
- Description: Servo motor.
- Pins: GND, VCC, SIG
DHT22
- Description: Temperature and humidity sensor.
- Pins: +, Out, -
LDR
- Description: Light-dependent resistor.
- Pins: A0, D0, GND, VCC
LCD Display (16 pin)
- Description: 16-pin LCD display.
- Pins: VSS, VDD, VO, RS, R_W, E, DB0, DB1, DB2, DB3, DB4, DB5, DB6, DB7, A, K
Wire Connector
- Description: Connects wires.
- Pins: +, -
Wiring Details
Arduino UNO
GND connected to:
- Resistor pin2
- Resistor pin2 (second resistor)
- LM2596 OUT
Vin connected to:
- LM2596 OUT
A0 connected to:
- Photocell (LDR) pin 0 (second LDR)
A1 connected to:
- Photocell (LDR) pin 0 (first LDR)
Solar Panel
gnd connected to:
- Solar Charge Controller Solar Cell -
vcc connected to:
- Solar Charge Controller Solar Cell +
Solar Charge Controller
Solar Cell + connected to:
- Solar Panel vcc
Solar Cell - connected to:
- Solar Panel gnd
Battery + connected to:
- 12V 200Ah Battery 12V
- LM2596 IN
Battery - connected to:
- 12V 200Ah Battery GND
- LM2596 IN
12V 200Ah Battery
12V connected to:
- Solar Charge Controller Battery +
GND connected to:
- Solar Charge Controller Battery -
LM2596
IN connected to:
- 12V 200Ah Battery 12V
- 12V 200Ah Battery GND
OUT connected to:
- Arduino UNO GND
- Arduino UNO Vin
Photocell (LDR)
pin 0 connected to:
- Arduino UNO A0 (second LDR)
- Arduino UNO A1 (first LDR)
pin 1 connected to:
- Resistor pin1 (first resistor)
- Resistor pin1 (second resistor)
Resistor
pin1 connected to:
- Photocell (LDR) pin 1 (first resistor)
- Photocell (LDR) pin 1 (second resistor)
pin2 connected to:
- Arduino UNO GND (first resistor)
- Arduino UNO GND (second resistor)
Code Documentation
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:
}
documentation.txt