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
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
This is the time display in status 1
This is the noise and temperature of state two
This is the atmospheric pressure and relative altitude of state 3