Circuit Documentation
Summary
This circuit is designed to interface various components with an Arduino UNO microcontroller. It includes a solar charge controller connected to a solar panel and a battery, providing a renewable energy source. The circuit also features a buck converter for voltage regulation, a relay module to control a water pump, and multiple sensors for environmental monitoring. Additionally, the circuit integrates LEDs with resistors for indication purposes and utilizes rocker switches for manual control.
Component List
Microcontroller
- Arduino UNO: A microcontroller board based on the ATmega328P. It has 14 digital input/output pins, 6 analog inputs, a USB connection, a power jack, an ICSP header, and a reset button.
Power Management
- Solar Charge Controller: Manages the power flow from the solar panel to the battery and load.
- Battery: Stores electrical energy for use by the circuit.
- Solar Panel: Converts sunlight into electrical energy.
- Power Jack: Provides an interface for external power supply.
- Buck Converter: Steps down voltage from a higher level to a lower level.
Actuators
- 1 Channel 5V Relay Module: An electrically operated switch that allows the Arduino to control higher power loads.
- Water Pump: Pumps water when activated.
- Plastic Solenoid Valve: Controls the flow of liquid when electrically actuated.
Sensors
- Water Level Sensor: Detects the level of water in a container.
- SparkFun Soil Moisture Sensor: Measures the moisture level in the soil.
Indicators
- LED: Two Pin (white): Provides visual indication.
- Resistor: Limits current to the LEDs to prevent damage.
Control
- Rocker Switch: A manual switch that provides on/off control.
Wiring Details
Arduino UNO
- 5V: Powers the solenoid valves and relay module.
- D12: Receives the signal from the soil moisture sensor.
- D8: Receives the signal from the water level sensor.
- D7: Controls one of the solenoid valves.
- D4: Controls the other solenoid valve.
- D2: Controls the relay module.
Solar Charge Controller
- Solar Cell +: Connected to the positive terminal of the solar panel.
- Solar Cell -: Connected to the negative terminal of the solar panel.
- Battery +: Connected to the positive terminal of the battery and the positive input of the buck converter.
- Battery -: Connected to the negative terminal of the battery and the negative input of the buck converter.
Battery
- +: Connected to the power jack positive terminal and the solar charge controller.
- -: Connected to the power jack negative terminal and the solar charge controller.
Solar Panel
- +: Connected to the solar charge controller.
- -: Connected to the solar charge controller.
Power Jack
- POSITIF: Connected to the positive terminal of the battery.
- NEGATIF: Connected to the negative terminal of the battery.
Buck Converter
- IN+: Connected to the battery positive terminal.
- IN-: Connected to the battery negative terminal.
- OUT+: Powers the sensors, relay module, and LEDs.
- OUT-: Common ground for the sensors, relay module, and LEDs.
1 Channel 5V Relay Module
- IN: Controlled by the Arduino D2 pin.
- VCC+: Powered by the buck converter.
- VCC- (GND): Common ground with the buck converter.
- N.O.: Normally open contact connected to the rocker switch.
- COM: Common contact connected to the VCC+ and the resistors for the LEDs.
Water Pump
- VCC: Powered through the relay module when the relay is activated.
- GND: Common ground with the buck converter.
Plastic Solenoid Valve
- Pin1: Both valves are powered by the Arduino 5V pin.
- Pin2: One valve is controlled by the Arduino D7 pin, and the other by the D4 pin.
Water Level Sensor
- SIG: Signal connected to the Arduino D8 pin.
- VCC: Powered by the buck converter.
- GND: Common ground with the buck converter.
SparkFun Soil Moisture Sensor
- SIG: Signal connected to the Arduino D12 pin.
- VCC: Powered by the buck converter.
- GND: Common ground with the buck converter.
LED: Two Pin (white)
- Cathode: Common cathode connected to the rocker switch.
- Anode: Each LED is connected to a resistor, which is then connected to the relay module's COM contact.
Resistor
- Pin1: Connected to the anode of an LED.
- Pin2: Connected to the relay module's COM contact.
Rocker Switch
- 1: Connected to the common cathode of the LEDs and the normally open contact of the relay module.
- 2: Connected to the common ground with the buck converter.
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:
}
Note: The provided code is a template and does not contain any functional code specific to the circuit's operation. The actual implementation should include setup and loop functions that initialize the pins and manage the sensors, actuators, and other components based on the desired logic.
