张三叔

Design of environmental monitoring system based on microcontroller

 
Overview

Selection of main control microcontroller

This time, Arduino Mega 2560 is used as the main control. The reason for choosing this AVR microcontroller is because Arduino contains a large number of standard libraries and third-party libraries.
It is very friendly to freshmen students. In addition, the functional parts involved this time also have certain difficulties in programming books, and Arduino happens to have
This time, the difficulty of using the library functions of the functional part has dropped sharply, so this microcontroller is the best choice.

Let’s take a look at the functions of each part

The functions involved are roughly divided into three: real-time time, noise monitoring, and pressure parameters;
The display content is divided into three display states using the button circuit.
Displays time, displays temperature and atmospheric pressure, and thirdly displays relative altitude and noise.
The functions involved are roughly divided into three: real-time time, noise monitoring, and pressure parameters;
The display content is divided into three display states using the button circuit.
Displays time, displays temperature and atmospheric pressure, and thirdly displays relative altitude and noise.

LM386 operational amplifier circuit

image.png
The circuit where the LM386 IC is located here is a simple low-voltage high-frequency amplifier circuit
When pins 1 and 8 are not connected, the gain is 20, but in order to increase the sensitivity, a capacitor with a value of 10uF is used between pins 1 and 8 to expand the gain.
The LM386 audio amplifier circuit amplifies the signal from the condenser microphone and provides it to the Analog port of Arduino to obtain a digital data through ADC conversion.
The general conversion relationship is as follows:
ADC = (11.003 * dB) – 83.2073
db = (ADC + 83.2073) / 11.003
The other two parts are directly implemented in the clock called in the library function and operate in the same way as the 51 principle.
It is also relatively simple. The parameters read by the BMP280 pressure sensor are atmospheric pressure, altitude and temperature.

Let’s take a look at the picture below

image.png
This is the time display in status 1
image.png
This is the noise and temperature of state two
image.png
This is the atmospheric pressure and relative altitude of state 3

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-19 13:35:00

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号