Circuit Documentation
Summary
This circuit is designed to integrate various components including an Arduino UNO, a solar panel, a TP4056 battery charger, an MT3608 boost converter, a relay module, multiple LEDs, a servo motor, a pushbutton, and an LDR module. The circuit is powered by a solar panel and a 2x 18650 battery pack, and it includes functionalities for controlling LEDs, a servo motor, and a relay module based on inputs from the LDR module and a pushbutton.
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: Solar panel for generating electrical power.
- Pins: Vcc, Gnd
TP4056
- Description: Lithium battery charger module.
- Pins: OUT-, B-, B+, OUT+, IN-, IN+
MT3608
- Description: DC-DC boost converter.
- Pins: VOUT+, VIN+, VOUT-, VIN-
Relay module 5v-30v
- Description: Relay module for switching high voltage devices.
- Pins: common contact, normally open, normally closed, trigger, V-, V+
Servo
- Description: Servo motor for precise control of angular position.
- Pins: GND, VCC, PWM
LED: Two Pin (red)
- Description: Red LED.
- Pins: cathode, anode
LED: Two Pin (yellow)
- Description: Yellow LED.
- Pins: cathode, anode
LED: Two Pin (green)
- Description: Green LED.
- Pins: cathode, anode
LED: Two Pin (white)
- Description: White LED.
- Pins: cathode, anode
2x 18650
- Description: Battery pack with two 18650 cells.
- Pins: vcc, gnd
Module LDR
- Description: Light-dependent resistor module.
- Pins: VCC, GND, DO, AO
Pushbutton
- Description: Pushbutton switch.
- Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
Wiring Details
Arduino UNO
5V connected to:
- Relay module 5v-30v (V+)
- Relay module 5v-30v (normally closed)
GND connected to:
- Servo (GND)
- MT3608 (VOUT-)
- Pushbutton (Pin 1 (in))
- Module LDR (GND)
- LED: Two Pin (yellow) (cathode)
- LED: Two Pin (white) (cathode)
- LED: Two Pin (red) (cathode)
- Relay module 5v-30v (V-)
- LED: Two Pin (green) (cathode)
A0 connected to:
- Module LDR (AO)
D12 connected to:
- LED: Two Pin (white) (anode)
D10 connected to:
- LED: Two Pin (green) (anode)
D9 connected to:
- LED: Two Pin (yellow) (anode)
D8 connected to:
- LED: Two Pin (red) (anode)
D7 connected to:
- Relay module 5v-30v (trigger)
D3 connected to:
- Servo (PWM)
D2 connected to:
- Pushbutton (Pin 4 (out))
Solar Panel
Vcc connected to:
- TP4056 (IN+)
- Relay module 5v-30v (common contact)
- Module LDR (VCC)
Gnd connected to:
- TP4056 (IN-)
TP4056
IN+ connected to:
- Solar Panel (Vcc)
IN- connected to:
- Solar Panel (Gnd)
B- connected to:
- MT3608 (VIN-)
- 2x 18650 (gnd)
B+ connected to:
- MT3608 (VIN+)
- 2x 18650 (vcc)
MT3608
VOUT- connected to:
- Servo (GND)
- Arduino UNO (GND)
- Pushbutton (Pin 1 (in))
VOUT+ connected to:
- Servo (VCC)
- Relay module 5v-30v (normally open)
Relay module 5v-30v
V+ connected to:
- Arduino UNO (5V)
- Relay module 5v-30v (normally closed)
V- connected to:
- Arduino UNO (GND)
trigger connected to:
- Arduino UNO (D7)
common contact connected to:
- Solar Panel (Vcc)
normally open connected to:
- MT3608 (VOUT+)
Servo
GND connected to:
- MT3608 (VOUT-)
- Arduino UNO (GND)
- Pushbutton (Pin 1 (in))
VCC connected to:
- MT3608 (VOUT+)
- Relay module 5v-30v (normally open)
PWM connected to:
- Arduino UNO (D3)
LED: Two Pin (red)
cathode connected to:
- Module LDR (GND)
- Arduino UNO (GND)
anode connected to:
- Arduino UNO (D8)
LED: Two Pin (yellow)
cathode connected to:
- Module LDR (GND)
- Arduino UNO (GND)
anode connected to:
- Arduino UNO (D9)
LED: Two Pin (green)
cathode connected to:
- Module LDR (GND)
- Arduino UNO (GND)
anode connected to:
- Arduino UNO (D10)
LED: Two Pin (white)
cathode connected to:
- Module LDR (GND)
- Arduino UNO (GND)
anode connected to:
- Arduino UNO (D12)
2x 18650
vcc connected to:
- TP4056 (B+)
- MT3608 (VIN+)
gnd connected to:
- TP4056 (B-)
- MT3608 (VIN-)
Module LDR
VCC connected to:
- Solar Panel (Vcc)
- TP4056 (IN+)
- Relay module 5v-30v (common contact)
GND connected to:
- LED: Two Pin (yellow) (cathode)
- LED: Two Pin (white) (cathode)
- LED: Two Pin (red) (cathode)
- Relay module 5v-30v (V-)
- Arduino UNO (GND)
- LED: Two Pin (green) (cathode)
AO connected to:
- Arduino UNO (A0)
Pushbutton
Pin 1 (in) connected to:
- Servo (GND)
- MT3608 (VOUT-)
- Arduino UNO (GND)
Pin 4 (out) connected to:
- Arduino UNO (D2)
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:
}
Documentation (documentation.txt)
