This circuit is designed to control a 5V mini water pump and monitor soil moisture levels using an Arduino Nano as the central microcontroller. The circuit includes a 12V relay to switch the water pump, a capacitive soil moisture sensor for detecting moisture levels, an OLED display for output, and various other components such as resistors, a transistor, a diode, and capacitors for power stabilization and signal interfacing.
GND
connected to the common ground net.5V
connected to the OLED VDD, relay VCC, and soil moisture sensor VCC.VIN
connected to the positive side of the electrolytic capacitor and the center pin of the DC barrel jack.A0
connected to the AOUT pin of the soil moisture sensor.A4
connected to the SDA pin of the OLED.A5
connected to the SCK pin of the OLED.D4
connected to one end of a 1 kΩ resistor.-
(negative) connected to the common ground net.+
(positive) connected to the Arduino Nano VIN.POSITIF
connected to the positive terminal of the 12V power supply.NEGATIF
connected to the negative terminal of the 12V power supply.switch
connected to the common ground net.center
connected to the positive side of the electrolytic capacitor and Arduino Nano VIN.+
connected to the OLED VDD and Arduino Nano 5V.-
connected to the collector of the BC547 transistor and the anode of the 1N4007 diode.C
connected to the positive pin of the water pump.NC
connected to the OLED VDD and Arduino Nano 5V.NO
not connected in this circuit.GND
connected to the common ground net.VDD
connected to the Arduino Nano 5V, relay VCC, and soil moisture sensor VCC.SCK
connected to the Arduino Nano A5.SDA
connected to the Arduino Nano A4.collector
connected to the relay -
and the cathode of the 1N4007 diode.base
connected to one end of a 1 kΩ resistor.Emitter
connected to the common ground net.Cathode
connected to the OLED VDD and relay VCC.Anode
connected to the collector of the BC547 transistor.GND
connected to the common ground net.VCC
connected to the OLED VDD and Arduino Nano 5V.AOUT
connected to the Arduino Nano A0.cathode
connected to the common ground net.anode
connected to one end of a 1 kΩ resistor.positive pin
connected to the relay C.negative pin
connected to the common ground net.+
connected to the power jack POSITIF.-
connected to the power jack NEGATIF.void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
(No additional documentation provided for the code)
(Note: The code provided is a template and does not contain any functional code. It will need to be populated with the logic required to read the soil moisture sensor, control the OLED display, and manage the water pump via the relay.)