This circuit is designed to monitor soil moisture levels using an ESP-8266 microcontroller, which reads data from a soil moisture sensor and displays the information on an OLED display. The system also includes a DHT11 sensor for measuring temperature and humidity, a TP4056 module for charging a Li-ion battery, and an MT3608 boost converter to step up the voltage when necessary. A toggle switch is used to control the power supply to the circuit.
A0
connected to Soil Moisture Module Analog
D1
connected to OLED SCK
D2
connected to OLED SDA
D4
connected to DHT11 Sensor V2 DAT
3V3
connected to OLED VDD
, Soil Moisture Module VCC
, and DHT11 Sensor V2 VCC
GND
connected to OLED GND
, Soil Moisture Module Ground
, DHT11 Sensor V2 GND
, and MT3608 VOUT-
Vin
connected to MT3608 VOUT+
+
connected to Soil Moisture Module positive
-
connected to Soil Moisture Module negative
VCC
and Ground
connected as described above.Analog
connected to ESP-8266 A0
SCK
connected to ESP-8266 D1
SDA
connected to ESP-8266 D2
VDD
connected to ESP-8266 3V3
GND
connected to ESP-8266 GND
DAT
connected to ESP-8266 D4
VCC
connected to ESP-8266 3V3
GND
connected to ESP-8266 GND
OUT-
connected to Toggle Switch COM
B-
connected to 18650 Li-ion Battery -
B+
connected to 18650 Li-ion Battery +
OUT+
connected to MT3608 VIN+
VOUT+
connected to ESP-8266 Vin
VOUT-
connected to ESP-8266 GND
VIN+
connected to TP4056 OUT+
VIN-
connected to Toggle Switch L1
+
connected to TP4056 B+
-
connected to TP4056 B-
L1
connected to MT3608 VIN-
COM
connected to TP4056 OUT-
No code was provided for the microcontroller. The expected code should handle reading data from the soil moisture sensor and the DHT11 sensor, processing the data, and displaying it on the OLED screen. It should also manage WiFi connectivity if remote monitoring or control is required.
Please note that the above documentation is based on the provided parts list and electrical net list. The actual functionality and interconnections should be verified with the actual circuit design and requirements.