Circuit Documentation
Summary
This circuit is designed to monitor soil moisture and water levels, and control a water pump based on the sensor readings. The system uses an Arduino UNO and an ESP8266 NodeMCU for processing and communication. The soil moisture is measured using a YL-69 Sonda connected to a Soil Moisture Module, while the water level is monitored using a Water Level Sensor. The power supply is managed by a 12V 5A power supply and a voltage regulator. The water pump is controlled via an NPN transistor and a rectifier diode.
Component List
YL-69 Sonda
- Description: Soil moisture sensor probe
- Pins: +, -
Soil Moisture Module
- Description: Module to interface with the YL-69 Sonda
- Pins: positive, negative, Analog, Digital, Ground, VCC
POWER SUPPLY 12V 5AMP
- Description: Power supply unit providing 12V DC output
- Pins: 220V Positive Pole (AC), 220V Negative Pole (AC), GND, GND (DC), 12V-24V Output (DC)
power 220v
- Description: 220V AC power source
- Pins: hot wire, neutral wire
V_REG_MIC2920
- Description: Voltage regulator
- Pins: IN, GND, OUT
Water Level Sensor
- Description: Sensor to measure water level
- Pins: SIG, VCC, GND
water pump
- Description: Pump to control water flow
- Pins: positive, negative
1N4007 Rectifier Diode
- Description: Diode for rectification
- Pins: Cathode, Anode
NPN-Transistor
- Description: Transistor for switching
- Pins: E, C, B
Resistor (1 Ohm)
- Description: Resistor with 1 Ohm resistance
- Pins: pin1, pin2
Resistor (1000 Ohms)
- Description: Resistor with 1000 Ohms resistance
- Pins: pin1, pin2
NPK Soil Sensor
- Description: Sensor to measure NPK levels in soil
- Pins: 12V DC, A, B, GND
Arduino UNO
- Description: Microcontroller board
- 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
esp8266 nodemcu
- Description: Wi-Fi module
- Pins: D0, D1, D2, D3, D4, 3V3, GND, D5, D6, D7, D8, RX, TX, A0, RSV, SD3, SD2, SD1, CMD, SD0, CLK, EN, RST, VIN
Wiring Details
YL-69 Sonda
- + connected to positive of Soil Moisture Module
- - connected to negative of Soil Moisture Module
Soil Moisture Module
- positive connected to + of YL-69 Sonda
- negative connected to - of YL-69 Sonda
- Analog connected to A0 of Arduino UNO
- Ground connected to GND of Arduino UNO
- VCC connected to 5V of Arduino UNO
POWER SUPPLY 12V 5AMP
- 220V Positive Pole (AC) connected to neutral wire of power 220v
- 220V Negative Pole (AC) connected to hot wire of power 220v
- GND (DC) connected to GND of V_REG_MIC2920
- 12V-24V Output (DC) connected to IN of V_REG_MIC2920 and Cathode of 1N4007 Rectifier Diode and positive of water pump
power 220v
- neutral wire connected to 220V Positive Pole (AC) of POWER SUPPLY 12V 5AMP
- hot wire connected to 220V Negative Pole (AC) of POWER SUPPLY 12V 5AMP
V_REG_MIC2920
- GND connected to GND (DC) of POWER SUPPLY 12V 5AMP
- IN connected to 12V-24V Output (DC) of POWER SUPPLY 12V 5AMP
- OUT not connected in the provided net list
Water Level Sensor
- SIG connected to A1 of Arduino UNO
- VCC connected to 3V3 of esp8266 nodemcu
- GND connected to GND of Arduino UNO
water pump
- positive connected to 12V-24V Output (DC) of POWER SUPPLY 12V 5AMP
- negative connected to Anode of 1N4007 Rectifier Diode and C of NPN-Transistor
1N4007 Rectifier Diode
- Cathode connected to 12V-24V Output (DC) of POWER SUPPLY 12V 5AMP
- Anode connected to negative of water pump and C of NPN-Transistor
NPN-Transistor
- E not connected in the provided net list
- C connected to Anode of 1N4007 Rectifier Diode and negative of water pump
- B connected to pin1 of Resistor (1 Ohm)
Resistor (1 Ohm)
- pin1 connected to B of NPN-Transistor
- pin2 not connected in the provided net list
Resistor (1000 Ohms)
- pin1 not connected in the provided net list
- pin2 not connected in the provided net list
NPK Soil Sensor
- 12V DC not connected in the provided net list
- A not connected in the provided net list
- B not connected in the provided net list
- GND not connected in the provided net list
Arduino UNO
- A0 connected to Analog of Soil Moisture Module
- A1 connected to SIG of Water Level Sensor
- GND connected to Ground of Soil Moisture Module and GND of Water Level Sensor
- 5V connected to VCC of Soil Moisture Module
- D1 connected to RX of esp8266 nodemcu
- D0 connected to TX of esp8266 nodemcu
esp8266 nodemcu
- 3V3 connected to VCC of Water Level Sensor
- RX connected to D1 of Arduino UNO
- TX connected to D0 of Arduino UNO
Documented Code
Arduino UNO Code
void setup() {
}
void loop() {
}
esp8266 nodemcu Code
void setup() {
}
void loop() {
}
This documentation provides a comprehensive overview of the circuit, including a detailed component list, wiring details, and the code used in the microcontrollers.