Arduino Nano-Based Battery-Powered Automatic Plant Watering System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to control a water pump based on soil moisture levels. It uses an Arduino Nano to read data from a soil moisture sensor and activate a relay module to power the water pump. The circuit is powered by a 18650 Li-Ion battery and includes a rocker switch for manual control.
Component List
Arduino Nano
- Description: A small, complete, and breadboard-friendly board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
1 Channel 5V Relay Module
- Description: A relay module that allows the Arduino to control high voltage devices.
- Pins: VCC+, VCC- (GND), IN, N.O., COM, N.C.
SparkFun Soil Moisture Sensor
- Description: A sensor used to measure the moisture level in the soil.
- Pins: VCC, GND, SIG
18650 Li-Ion
- Description: A rechargeable lithium-ion battery.
- Pins: Positive, Negative
Rocker Switch
- Description: A switch used to manually control the power to the circuit.
- Pins: 1, 2
Water Pump
- Description: A small water pump used to irrigate plants.
- Pins: VCC, GND
Wiring Details
Arduino Nano
- GND: Connected to the GND of the Water Pump, GND of the Relay Module, and GND of the Soil Moisture Sensor.
- D2: Connected to the SIG pin of the Soil Moisture Sensor.
- D3: Connected to the IN pin of the Relay Module.
- VIN: Connected to the COM pin of the Relay Module and pin 2 of the Rocker Switch.
- 5V: Connected to the VCC+ pin of the Relay Module and VCC pin of the Soil Moisture Sensor.
1 Channel 5V Relay Module
- VCC+: Connected to the 5V pin of the Arduino Nano.
- VCC- (GND): Connected to the GND of the Arduino Nano and GND of the Water Pump.
- IN: Connected to the D3 pin of the Arduino Nano.
- N.O.: Connected to the VCC pin of the Water Pump.
- COM: Connected to the VIN pin of the Arduino Nano and pin 2 of the Rocker Switch.
SparkFun Soil Moisture Sensor
- VCC: Connected to the VCC+ pin of the Relay Module and 5V pin of the Arduino Nano.
- GND: Connected to the GND of the Arduino Nano and Negative pin of the 18650 Li-Ion.
- SIG: Connected to the D2 pin of the Arduino Nano.
18650 Li-Ion
- Positive: Connected to pin 1 of the Rocker Switch.
- Negative: Connected to the GND of the Soil Moisture Sensor and GND of the Arduino Nano.
Rocker Switch
- 1: Connected to the Positive pin of the 18650 Li-Ion.
- 2: Connected to the COM pin of the Relay Module and VIN pin of the Arduino Nano.
Water Pump
- VCC: Connected to the N.O. pin of the Relay Module.
- GND: Connected to the GND of the Relay Module and GND of the Arduino Nano.
Documented 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
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino Nano.