Environmental noise measuring instrument based on 89C51 microcontroller

Publisher:万童洁Latest update time:2006-04-27 Source: 电子器件Keywords:Noise Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
  1 Introduction 
 
  Environmental noise monitoring is an important link for humans to improve their quality of life and strengthen environmental protection. Large-scale environmental noise monitors have been erected on the streets in prosperous neighborhoods and residential areas of major cities. However, most of the current domestic portable noise testers are expensive imported special equipment. Except for those owned by professional environmental protection departments such as health and measurement, they cannot be popularized as civilian products. This article introduces a low-cost, portable digital display environmental noise measuring instrument with 89C51 microcontroller as the core and using V/F conversion technology. The instrument works stably and has good performance. After calibration and calibration, it can meet the needs of general civilians. It can be widely used in industrial and mining enterprises, government agencies, schools and other occasions where environmental noise needs to be measured and controlled.

       2. Measurement mechanism of sound pressure level.

  The hearing threshold of the human ear is generally 20 μPa, and the pain threshold is generally 200 Pa. The difference is 107 times. Such a wide sound pressure range is difficult to measure, and the human ear has a very special ability to distinguish the relative changes in sound pressure. linear characteristics. Therefore, sound pressure level Lp is commonly used in acoustics to reflect changes in sound pressure, and the sound pressure level of sound pressure p is expressed as


  Lp=20 lg (p/p0) (dB) (attached)

       Among them: the reference quantity p0 is 20μPa. When p=p0, Lp=0 dB, and when p=200 Pa, Lp=140 dB.

  The sound pressure level can be measured with a sound level meter, and the true sound pressure level or average sound pressure level can be obtained by inputting 1 kHz pure tone for 0.2 s to 0.25 s or more than 0.5 s. Taking into account the human ear's perception of loudness at different frequencies, in noise measurement, the inverse curve of the 40phon equal loudness curve is often used to weight the sound pressure level. That is, the A sound level is measured using the A weighting network and written as dB (A ). The attached table gives the relationship between the center frequency of the octave band and the correction amount of the A sound level:

  


       3 Hardware circuit composition  

       The hardware structure principle of the environmental noise measuring instrument is shown in Figure 1: 
 

 

                                             Figure 1 Hardware schematic diagram

  Environmental noise is converted into electrical signals by high-sensitivity, non-directional electret microphones. The frequency characteristics of the microphone used have non-uniformity of less than 1.5 dB in the range of 50 to 14 000 Hz. It can be used for outdoor measurements after adding a windproof cover and a rainproof cover. The three-stage amplification circuit is composed of an operational amplifier LM324. Carefully adjusting the relevant peripheral component parameters can make its amplitude-frequency characteristics similar to the A-weighted curve. D1, C1, and R1 form a peak detection network, and its output DC level reflects the noise sound pressure.

  The voltage/frequency conversion circuit is composed of LM331, and the output frequency signal becomes a TTL level and is sent to the P3.4 pin of the microcontroller as a counting pulse of T0. The conversion circuit has good linearity and strong anti-interference ability. The output frequency range is above 10 ~ 10 000 Hz. Its change ratio reaches 103, which is better than the ordinary 8-bit parallel A/D converter and helps to improve the measurement range of the system. In Figure 1, Rs can be used to adjust the gain deviation and change the output frequency.

  The core part of the system is the AT89C51 microcontroller, whose command system is fully compatible with MCS-51 and has a 4kB E2PROM on the chip, which can easily form a minimum measurement system. Its P3.5 pin is connected to the 100 kHz square wave output by the timer composed of NE555, and the T0 timing count is controlled through the T1 interrupt. The counting pulse frequency input from the T0 terminal also reflects the measured sound pressure. After software processing, the noise sound pressure level display value is output from the P1 port, decoded by 74LS248 and then driven to display the two-digit 1.8 in high-brightness LED digital tube. The decoder's light-off end is appropriately controlled to make the two digital tubes glow in turn. Realize dynamic display and reduce power consumption.

       4 Software design

  The software of the environmental noise measurement system adopts a modular design and consists of a main program, an interrupt service program, a table lookup subprogram and a display subprogram. The flow chart of each program module is shown in Figure 2:

  The main program is in a cyclic working state, mainly completing the initialization of the timer/counter and interrupt system, and cyclically calling table lookup and display subroutines. Whenever T1 counts the external 100 kHz clock for 0.5 s, it applies for an interrupt. After responding to the interrupt, the CPU reads the count values ​​​​in the TH0 and TL0 registers and re-initializes T0 and T1 in order to detect the next data.

 


                                                   Software flow chart

  It is worth pointing out that the table lookup programRealizes the conversion of counting value to sound pressure level. From equation (1), we know that for every 12.2% increase in sound pressure, the sound pressure level increases by 1dB. Therefore, for every 12.2% increase in the T0 count value, the sound pressure level increases by 1dB. Define a table in E2PROM, each three bytes is a set of data, the first two bytes are the count value, and the last byte is the sound pressure level value represented by the compressed BCD code. During debugging, refer to the precision sound level meter and read the count value corresponding to a certain sound pressure level to determine the corresponding relationship between the two parameters in the table. After the program is solidified, it can also be adjusted through the hardware circuit. The pseudo-instruction format that defines the table is given below:

  TAB: DB1BH, 0A0H, 0BBH, ; table upper limit:               
    05H, 83H, 83H,
    04H, 0EAH, 82H,

    04H, 61H, 81H,

    03H, 0E7H, 80H,

    03H, 7AH, 79H

    03H, 19H, 78H,

    02H, 0C3H, 77H,

    02H, 76H, 76H,

   ∶
  00H, 00H, 0AAH, ; table lower limit

  Among them, the two data "0AAH" and "0BBH" are displayed respectively after decoding.The lower limit mark "[" and the upper limit mark "]" indicate that the measurement range is exceeded.

  In order to improve the anti-interference ability of the system, in addition to taking corresponding measures on the hardware, a redundant design method is adopted on the software, that is, repeating important instructions and setting no-operation instructions in unused space to prevent the program from jumping and crashing.

       5 Conclusion

  Finally, the ND-2 precision sound level meter produced by the state-owned Jiangxi Hongsheng Equipment Factory was used to calibrate the system. The measurement error is less than 1 dB, and the measurement range is between 40 and 96 dB, which is sufficient for the measurement of noise in general environments. Require.

  During the instrument production process, senior engineer Wang Yixin from the Physics Department of Changshu College gave a lot of guidance. The Occupational Health Department of Changshu Health and Epidemic Prevention Station provided the calibration instrument. I would like to express my deep gratitude!

  References

[1] Ma Dayou et al. Handbook of Acoustics. [M]Beijing: Science Press, 1983

[2] He Limin. Microcontroller Application Collection (1). [M]Beijing University of Aeronautics and Astronautics Press. 1991

[3] Zhou Zecun. Detection Technology. [M]Beijing: Machinery Industry Press. 1993

[4] Yang Zhenjiang. A/D, D/A converter interface technology and practical circuits. [M]Xidian University Press. 1996

[5] Cai Meiqin et al. MCS-51 series single chip microcomputer system and its application. [M]Beijing: Higher Education Press. 1992

Keywords:Noise Reference address:Environmental noise measuring instrument based on 89C51 microcontroller

Previous article:USB printer driver design for 80C51 and CH375
Next article:Environmental noise measuring instrument based on 89C51 microcontroller

Recommended ReadingLatest update time:2024-11-16 16:48

Comparison between MSP430 series and 89C51 series
1. The 89C51 microcontroller is an 8-bit microcontroller. Its instructions use a complex instruction set called "CISC", with a total of 111 instructions. The MSP430 microcontroller is a 16-bit microcontroller that uses a reduced instruction set (RISC) structure, with only 27 simple instructions, a large number of inst
[Microcontroller]
89c51 C language software anti-shake button
The simulation results are as follows: #include reg51.h sbit SI=P1^4; sbit LED0=P3^0; void delay() {     unsigned char i,j;     for(i=0;i 100;i++)           for(j=0; j 100;j++)                 ; } void main() {     LED0=0;     while(1)     { if(SI==0)            {           delay            
[Microcontroller]
89c51 single chip microcomputer running light operation
To use 51 single-chip microcomputer to realize the running light operation I think is the first hands-on experiment for every beginner to learn single-chip microcomputer and understand embedded system. Today I encountered a small problem when I was relearning, and I would like to share it with you here. To control t
[Microcontroller]
89c51 single chip microcomputer running light operation
Design of liquid dripping speed monitoring system with 89C51 microcontroller as the core control device
1 Introduction The liquid drip speed control system is a set of control equipment that can improve efficiency and service quality for large hospitals. In particular, the remote monitoring function allows the nurse station to monitor the patient's drip status in real time and adjust the drip speed according to the pati
[Microcontroller]
Design of liquid dripping speed monitoring system with 89C51 microcontroller as the core control device
89c51 microcontroller minimum system, detailed function explanation of 89c51 minimum system schematic diagram
  The minimum system of a single-chip microcomputer is composed of some components necessary to form a single-chip microcomputer system. In addition to the single-chip microcomputer, it also needs to include a power supply circuit, a clock circuit, and a reset circuit. Microcontroller minimum system circuit schematic
[Microcontroller]
89c51 microcontroller minimum system, detailed function explanation of 89c51 minimum system schematic diagram
Design of speed control system for fuel injection pump calibration platform based on 89C51 single chip microcomputer
1 Introduction The performance of the fuel injection system directly affects the working process and performance indicators of the diesel engine, and is a key part of the diesel engine to improve emissions, reduce fuel consumption and improve performance. The traditional diesel locomotive diesel injection pump c
[Microcontroller]
Design of speed control system for fuel injection pump calibration platform based on 89C51 single chip microcomputer
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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号