Greenhouse Simulation Based on Microcontroller: LCD1602 + DC Motor + DHT11 Temperature and Humidity Module

· Greenhouse simulation based on the 51 microcontroller

Greenhouse Simulation Based on Microcontroller: LCD1602 + DC Motor + DHT11 Temperature and Humidity Module

Specific Functions

Based on the AT89C51 microcontroller as the main control unit,

1. Use the DHT11 temperature and humidity module to detect temperature and humidity in real-time;

2. Use the LCD1602 module to display real-time temperature and humidity data;

3. Simulate a Bluetooth module via serial communication to send messages to a mobile phone when someone enters;

4. Simulate heating, cooling, humidifying, and dehumidifying modules using a DC motor;

5. Set the desired temperature and humidity range for the greenhouse using independent buttons;

6. If the set humidity and temperature are exceeded, the corresponding motors will act, and a buzzer will sound an alarm.

Simulation Platform Introduction

This design uses Proteus 8.9 software for simulation. Proteus is a software used for simulating various electronic circuits. It contains many models of microcontrollers and chips, allowing for the simulation of many extended functions of microcontrollers, which is very convenient for beginners. Proteus has two functions: it can be used for circuit simulation and PCB production. With Proteus software, one can simulate first and then create the physical device. During the simulation process, it is not only debugging the hardware circuit but also debugging the software program, as Proteus can be integrated with Keil programming software, allowing programs to be written in Keil and then simulated in Proteus. This approach saves raw materials and reduces component waste, making circuit design much easier.

Software Development Platform Introduction

The programming language for this design is C, using Keil software for programming. This software is specifically designed for software development for C language-based microcontrollers. It has powerful functions and a clean, user-friendly interface, allowing beginners to quickly get started with programming the system environment. Once the project file is created and the required microcontroller chip is selected, the corresponding software program can be imported. The files generated by the system are highly portable and can be easily transferred to various other development platforms.

Greenhouse Simulation Based on Microcontroller: LCD1602 + DC Motor + DHT11 Temperature and Humidity Module

Specific Simulation Demonstration

Greenhouse Simulation Based on Microcontroller: LCD1602 + DC Motor + DHT11 Temperature and Humidity Module

#01

After clicking to run the simulation, the LCD1602 displays the real-time collected temperature and humidity data.

Greenhouse Simulation Based on Microcontroller: LCD1602 + DC Motor + DHT11 Temperature and Humidity Module

#02

The DHT11 temperature and humidity module serves as the main data collection module.

Greenhouse Simulation Based on Microcontroller: LCD1602 + DC Motor + DHT11 Temperature and Humidity Module

#03

There are five buttons used to execute corresponding functions.

Greenhouse Simulation Based on Microcontroller: LCD1602 + DC Motor + DHT11 Temperature and Humidity ModuleGreenhouse Simulation Based on Microcontroller: LCD1602 + DC Motor + DHT11 Temperature and Humidity ModuleGreenhouse Simulation Based on Microcontroller: LCD1602 + DC Motor + DHT11 Temperature and Humidity ModuleGreenhouse Simulation Based on Microcontroller: LCD1602 + DC Motor + DHT11 Temperature and Humidity Module

#04

By setting the buttons, you can switch the temperature and humidity data you want to set, specifically the high and low ranges for temperature and humidity. The initial temperature range is 20-30, and the humidity range is 30-50.

Greenhouse Simulation Based on Microcontroller: LCD1602 + DC Motor + DHT11 Temperature and Humidity Module

#05

If a button press is detected, it indicates that someone has entered the greenhouse, and the serial port will send a prompt message as shown in the figure.

Greenhouse Simulation Based on Microcontroller: LCD1602 + DC Motor + DHT11 Temperature and Humidity Module

#06

Simulate the process of handling temperature and humidity exceeding the set threshold in the greenhouse using motors; during the execution of the corresponding process, the motor rotates, and the indicator light turns on.

All Materials

Greenhouse Simulation Based on Microcontroller: LCD1602 + DC Motor + DHT11 Temperature and Humidity Module

How to Obtain

· Send to the public account to obtain all materials:

Send to the public account: 1111

Leave a Comment