Wemos D1 Mini Based Soil Moisture and Temperature Monitoring System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit integrates a Wemos D1 Mini microcontroller with an AHT10 temperature and humidity sensor and a Capacitive Soil Moisture Sensor V1.2. The Wemos D1 Mini serves as the central processing unit, interfacing with the AHT10 sensor via I2C communication and reading analog values from the soil moisture sensor. The AHT10 sensor measures ambient temperature and humidity, while the soil moisture sensor provides moisture levels in the soil. The circuit is powered through the Wemos D1 Mini's 3.3V output, which supplies power to both sensors.
Component List
Wemos D1 Mini
- Description: A compact microcontroller based on the ESP8266 WiFi SoC, suitable for IoT applications.
- Pins: RST, A0, D0, D5, D6, D7, D8, 3V3, 5V, G, D4, D3, D2, D1, RX, TX
AHT10
- Description: A high-precision temperature and humidity sensor with an I2C interface.
- Pins: Vcc, Gnd, SCL, SDA
Capacitive Soil Moisture Sensor V1.2
- Description: A sensor that measures the moisture content in the soil using capacitive sensing rather than resistive sensing, which is less prone to corrosion.
- Pins: GND, VCC, AOUT
Wiring Details
Wemos D1 Mini
- A0 connected to Capacitive Soil Moisture Sensor AOUT
- 3V3 connected to AHT10 Vcc and Capacitive Soil Moisture Sensor VCC
- G connected to AHT10 Gnd and Capacitive Soil Moisture Sensor GND
- D2 (SDA) connected to AHT10 SDA
- D1 (SCL) connected to AHT10 SCL
AHT10
- Vcc connected to Wemos D1 Mini 3V3
- Gnd connected to Wemos D1 Mini G
- SCL connected to Wemos D1 Mini D1
- SDA connected to Wemos D1 Mini D2
Capacitive Soil Moisture Sensor V1.2
- VCC connected to Wemos D1 Mini 3V3
- GND connected to Wemos D1 Mini G
- AOUT connected to Wemos D1 Mini A0
Documented Code
No code has been provided for the microcontroller. To fully utilize this circuit, embedded code for the Wemos D1 Mini is required to read data from the AHT10 sensor via the I2C interface and from the Capacitive Soil Moisture Sensor via the analog input A0. The code should include initialization of the I2C bus, reading and processing sensor data, and appropriate error handling. Additionally, the code may include functionality to transmit the sensor data to a remote server or display it locally, depending on the intended application of the circuit.