Arduino UNO Solar-Powered Smart Sensor System with LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes various components such as an Arduino UNO, sensors, a relay module, a solar charge controller, and more. The circuit is designed to interface with multiple sensors and actuators, powered by a solar panel and a battery, and controlled by an Arduino UNO. The document includes a component list, wiring details, and the embedded code used in the microcontroller.
Component List
16x2 I2C LCD
- Description: A 16x2 character LCD display with I2C interface.
- Pins: GND, VCC, SDA, SCL
MG996R
- Description: A high-torque servo motor.
- Pins: GND, VCC, SIG
1 Channel 5V Relay Module
- Description: A single-channel relay module for switching high-power devices.
- Pins: VCC+, VCC- (GND), IN, N.O., COM, N.C.
Arduino UNO
- Description: A 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
LJC18A3-B-Z/BY Capacitive Proximity Sensor
- Description: A capacitive proximity sensor for detecting objects.
- Pins: VO (BLU), VI (BRN), SIG (BLK)
HC-SR04 Ultrasonic Sensor
- Description: An ultrasonic distance sensor.
- Pins: VCC, TRIG, ECHO, GND
Solar Charge Controller
- Description: A controller for managing solar panel charging.
- Pins: Solar Cell +, Solar Cell -, Battery +, Battery -, Load +, Load -
Step down Buck converter
- Description: A DC-DC converter for stepping down voltage.
- Pins: IN +, IN - GND, OUT +, OUT - GND
USB Female
- Description: A USB female connector.
- Pins: VCC, GND, -D, +D
Solar Panel
- Description: A solar panel for generating electrical power.
- Pins: +, -
12V 200Ah Battery
- Description: A 12V 200Ah battery for storing electrical energy.
- Pins: GND, 12V
Wiring Details
16x2 I2C LCD
- GND: Connected to Arduino UNO GND
- VCC: Connected to Arduino UNO 5V
- SDA: Connected to Arduino UNO A4
- SCL: Connected to Arduino UNO A5
MG996R
- GND: Connected to Arduino UNO D12
- VCC: Connected to Arduino UNO 5V
- SIG: Connected to Arduino UNO GND
1 Channel 5V Relay Module
- VCC+: Connected to Arduino UNO 5V
- VCC- (GND): Connected to Arduino UNO GND
- IN: Connected to Arduino UNO D7
- N.O.: Not connected
- COM: Connected to Solar Charge Controller Load +
- N.C.: Connected to Step down Buck converter IN +
Arduino UNO
- GND: Connected to MG996R SIG, LJC18A3-B-Z/BY Capacitive Proximity Sensor VO (BLU), HC-SR04 Ultrasonic Sensor GND, 1 Channel 5V Relay Module VCC- (GND), 16x2 I2C LCD GND
- 5V: Connected to MG996R VCC, LJC18A3-B-Z/BY Capacitive Proximity Sensor VI (BRN), HC-SR04 Ultrasonic Sensor VCC, 1 Channel 5V Relay Module VCC+, 16x2 I2C LCD VCC
- A4: Connected to 16x2 I2C LCD SDA
- A5: Connected to 16x2 I2C LCD SCL
- D12: Connected to MG996R GND
- D8: Connected to HC-SR04 Ultrasonic Sensor TRIG
- D9: Connected to HC-SR04 Ultrasonic Sensor ECHO
- D7: Connected to 1 Channel 5V Relay Module IN
- D11: Connected to LJC18A3-B-Z/BY Capacitive Proximity Sensor SIG (BLK)
LJC18A3-B-Z/BY Capacitive Proximity Sensor
- VO (BLU): Connected to Arduino UNO GND
- VI (BRN): Connected to Arduino UNO 5V
- SIG (BLK): Connected to Arduino UNO D11
HC-SR04 Ultrasonic Sensor
- VCC: Connected to Arduino UNO 5V
- TRIG: Connected to Arduino UNO D8
- ECHO: Connected to Arduino UNO D9
- GND: Connected to Arduino UNO GND
Solar Charge Controller
- Solar Cell +: Connected to Solar Panel +
- Solar Cell -: Connected to Solar Panel -
- Battery +: Connected to 12V 200Ah Battery 12V
- Battery -: Connected to 12V 200Ah Battery GND
- Load +: Connected to 1 Channel 5V Relay Module COM
- Load -: Connected to Step down Buck converter IN - GND
Step down Buck converter
- IN +: Connected to 1 Channel 5V Relay Module N.C.
- IN - GND: Connected to Solar Charge Controller Load -
- OUT +: Connected to USB Female +D
- OUT - GND: Connected to USB Female -D
USB Female
- VCC: Not connected
- GND: Not connected
- -D: Connected to Step down Buck converter OUT - GND
- +D: Connected to Step down Buck converter OUT +
Solar Panel
- +: Connected to Solar Charge Controller Solar Cell +
- -: Connected to Solar Charge Controller Solar Cell -
12V 200Ah Battery
- GND: Connected to Solar Charge Controller Battery -
- 12V: Connected to Solar Charge Controller Battery +
Documented Code
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This concludes the documentation for the circuit. Each component is described along with its wiring details, and the code for the Arduino UNO is provided.