Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino Nano-Controlled Environmental Monitoring System with Relay-Operated Water Pump

Image of Arduino Nano-Controlled Environmental Monitoring System with Relay-Operated Water Pump

Circuit Documentation

Summary

This circuit integrates various components controlled by an Arduino Nano microcontroller to perform a set of functions that likely involve environmental sensing, data display, and control of a relay-driven water pump. The DHT11 sensor is used for measuring temperature and humidity, while the Humidity YL-69 sensor is likely used for soil moisture detection. The LCD I2C Display provides a user interface for displaying data. The Relay module interfaces with the Mini Diaphragm Water Pump, allowing the Arduino to control its operation, possibly based on sensor readings. The 18650 Li-Ion battery provides power to the circuit, with the Arduino Nano regulating the voltage for the other components.

Component List

Arduino Nano

A compact microcontroller board based on the ATmega328P, featuring digital and analog I/O pins, communication interfaces, and a USB connection for programming and power.

Relay Module 1 Channel

An electromechanical switch that allows the Arduino to control high power devices, with inputs for signal (S), power (5V), and ground (GND), and outputs for normally closed (NC), common (COM), and normally open (NO) contacts.

DHT11

A basic, low-cost digital temperature and humidity sensor with a single digital signal output (S), power (5V), and ground (GND).

LCD I2C Display

A liquid crystal display with an I2C interface, requiring connections for ground (GND), power (VCC), data (SDA), and clock (SCL).

Humidity YL-69

A sensor used to measure the moisture level in soil, with analog (A0) and digital (D0) outputs, power (VCC), and ground (GND).

Mini Diaphragm Water Pump

A small pump suitable for moving water, with connections for positive (Positive (+)) and negative (Negative (-)) terminals.

18650 Li-Ion Battery

A rechargeable lithium-ion cell providing a power source for the circuit, with positive (Positive) and negative (Negative) terminals.

Wiring Details

Arduino Nano

  • Digital Pin D3 connected to Relay Module Signal (S)
  • Digital Pin D2 connected to DHT11 Signal (S)
  • Analog Pin A0 connected to Humidity YL-69 Analog Output (A0)
  • Analog Pins A4 (SDA) and A5 (SCL) connected to LCD I2C Display Data (SDA) and Clock (SCL)
  • 5V Pin providing power to Relay Module, DHT11, LCD I2C Display, and Humidity YL-69
  • GND Pin connected to common ground with DHT11, LCD I2C Display, Relay Module, and Humidity YL-69
  • VIN Pin connected to 18650 Li-Ion Battery Positive terminal

Relay Module 1 Channel

  • Signal (S) connected to Arduino Nano Digital Pin D3
  • 5V and GND for power, connected to Arduino Nano 5V and GND
  • Common (COM) connected to 18650 Li-Ion Battery Negative terminal
  • Normally Open (NO) connected to Mini Diaphragm Water Pump Negative (-)

DHT11

  • Signal (S) connected to Arduino Nano Digital Pin D2
  • 5V and GND for power, connected to Arduino Nano 5V and GND

LCD I2C Display

  • Data (SDA) connected to Arduino Nano Analog Pin A4
  • Clock (SCL) connected to Arduino Nano Analog Pin A5
  • VCC and GND for power, connected to Arduino Nano 5V and GND

Humidity YL-69

  • Analog Output (A0) connected to Arduino Nano Analog Pin A0
  • VCC and GND for power, connected to Arduino Nano 5V and GND

Mini Diaphragm Water Pump

  • Positive (+) connected to 18650 Li-Ion Battery Positive terminal
  • Negative (-) connected to Relay Module Normally Open (NO)

18650 Li-Ion Battery

  • Positive terminal connected to Arduino Nano VIN and Mini Diaphragm Water Pump Positive (+)
  • Negative terminal connected to Relay Module Common (COM)

Documented Code

The provided code files for the Arduino Nano are empty, and thus there is no specific code to document. In a typical application, the code would initialize the sensors, read their values, control the LCD display, and manage the relay state based on sensor inputs or other logic. The code would be written in C++ using the Arduino IDE and would include libraries for interfacing with the DHT11 sensor and the LCD display over I2C.

For a complete documentation, the code should be provided, and it would include setup routines, main loop logic, functions for sensor readings, display updates, and relay control. Comments within the code would explain the purpose and functionality of each section and function.