introduction
Using a microcontroller (MCU) to implement a voice recorder is relatively simple. Many MCUs use integrated analog-to-digital (A / D) converters. The amplifier provides the captured sound to the amplifier and then feeds it to the analog input of the A / D converter. The recorded sound can be stored in memory such as flash memory or RAM. Press the button to trigger the MCU to play the recorded sound. The principle is to provide the stored data to the digital-to-analog (D / A) converter before Provided to audio power amplifiers.
It is easy to realize this kind of voice recorder using MSP430. The MSP430 microcontroller uses integrated peripherals to implement the on-chip analog signal chain. In addition, MSP430's CPU processing power is very powerful enough to perform the compression of recorded sound.
Compression and decompression algorithms
For example, the easiest way to implement a voice recorder is to store the A / D converter conversion results (such as 12-bit samples) directly in flash memory. Audio data does not use the entire A / D converter range most of the time, that is, redundant data is also stored in flash memory. The compression algorithm can remove this redundant information, thereby reducing the capacity of the stored data.
Adaptive differential pulse code modulation (ADPCM) is this type of compression algorithm. There are various types of ADPCM algorithms, but they all use the quantizer differential encoding and adaptive quantization step step scheme in the quantizer. Before further discussing the IMA ADPCM algorithm used in related codes, we first briefly introduce the differential PCM encoding.
Differential Pulse Code Modulation (DPCM)
DPCM encodes the analog audio input signal by using the difference between the current sample and the previous sample. Figure 1 shows the structure of the DPCM encoder and decoder. In this example, we use the signal estimate Se (n) instead of the previous input to determine the signal difference d (n), thus ensuring that the encoder uses the same information as the decoder. If the encoder uses the last input sample, it will cause a cumulative error of quantization, which makes the reconstructed signal different from the original input signal. By using the signal estimation shown in Figure 1, we can avoid the difference between the reconstructed signal Sr (n) and the original input signal. The reconstructed signal Sr (n) is the input to the predictor, which determines the next signal estimate Se (n + 1).
Figure 2 shows a short recorded audio stream, and two schematic diagrams are given to compare the difference between analog audio input samples (PCM values) and continuous samples (DPCM values).
PCM values ​​range from 26 to 203, with a total of 177 steps. The encoded DPCM values ​​range from -44 to 46, with a total of 90 steps. Although the quantizer step size is only 1, this DPCM encoding has realized the compression function of the input data. Simply select a larger quantizer step size to further narrow the range of encoded DPCM values.
Touchless Sensor-Makes it germ Free
Environment Friendly-Prevents Contamination
Ideal fit for Kitchen/Bathroom/Bedroom
As users hands or debris enter the zone 6 inches (15cm) from the infrared sensor on top of the dustbin, the lid will automatically open.
The Lid will remain open if hand or debris is within the 6 inch (15cm) range of the infrared sensor. Lid will close 7 seconds after users hands move away.
The new touch switch panel has higher stability and efficiency. you can use it effortlessly. There are [OPEN" & [CLOSE" buttons for manual operation, and there is a ON/OFF power switch on the back of the dustbin.
The new removable plastic rim is easy to lift out, and the plastic ring helps leave no excess plastic bag visible (w/o liner).
Two liners (30L+20L) for easy recycling
Features:
-100% [Hands-Free" operation.
-[Germ-Free"-Prevents cross-contamination
- Trash Bag Retainer Ring stops full, heavy bag from falling in and keeps bag ends neatly out of view
-Rubber feet keeps this trash can in place and protects floors from scratches
-Removable hard ABS plastic head for easy cleaning
-Uses 4 AA-Sized batteries 1.5V(LR6) (Not included)
-Low energy-consuming
-Multiple colors to satisfy your different requirements.
-Capacity:30L+20L
-Dimensions: 34W x 48 L x 64H CM
-1 Year Manufacturer`s Warranty included
Rectangular Sensor Automatic Dustbin 2-Compartment 30L+20L
Automatic Dustbin,Hand Sensing Dustbin,Hotel Dustbin,Environmental Dustbin
NINGBO ZIXING ELECTRONIC CO.,LTD. , https://www.zixingautobin.com