Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino Nano Based Soil Moisture Monitoring System with OLED Display and DHT11 Sensor

View and Edit Project In Cirkit DesignerImage of Arduino Nano Based Soil Moisture Monitoring System with OLED Display and DHT11 Sensor

Circuit Documentation

Summary

The circuit in question is designed to monitor soil moisture levels using multiple YL-69 Sonda sensors interfaced with YL-83 Module LM393 comparator modules. The system also includes a DHT11 temperature and humidity sensor and an OLED display for output. An Arduino Nano serves as the microcontroller to process sensor data and control the display. The circuit is powered by a MB102 Breadboard Power Supply Module that can provide both 3.3V and 5V outputs. The circuit is intended for monitoring the health of plants by checking the moisture level in the soil and displaying the temperature and humidity conditions.

Component List

Microcontroller

Sensors

Display

Power Supply

Resistors

Miscellaneous

Wiring Details

Arduino Nano

YL-69 Sonda and YL-83 Module LM393

KY-015 DHT11

0.96" OLED

MB102 Breadboard Power Supply Module 3.3V/5V

Resistors (1k Ohms)

Documented Code

The code provided is for the Arduino Nano microcontroller. It includes the necessary libraries and defines the pins used for interfacing with the DHT11 sensor and the OLED display. The code initializes the DHT sensor and the display, reads the temperature and humidity from the DHT11 sensor, and reads the digital outputs from the YL-83 modules to determine the moisture level in the soil. The OLED display shows the temperature, humidity, and the number of plants that need watering based on the soil moisture readings.

The code is structured with a setup function that initializes the serial communication, the display, and the DHT sensor. The main loop function reads the sensor data, updates the display with the current temperature and humidity, and checks the soil moisture levels to determine if the plants need watering.

The code also includes animations for the OLED display, represented by arrays of bytes that define the bitmap images for temperature and humidity symbols. These animations are displayed on the OLED along with the sensor readings.

Due to the length of the code, it is not included in this document but is available in the provided files sketch.ino and documentation.txt.