制造商零件编号 SSD005/4-V2B
BLUETOOTH 5 LOW ENERGY USB DONGL
Smart Sensor Devices
License: General Public License Bluetooth / BLE Adafruit Feather Raspberry Pi MCU
Introduction
This tutorial demonstrates how to connect a PDM MEMS Microphone to an Adafruit Feather RP2040 and use a BleuIO to create a background noise sensor that measures and advertises the current sound level in decibels (dB). The project leverages the Arduino PDM interface to continuously fill a buffer with data, translating it into the current sound level every time the buffer is full.
Requirements
Connecting the PDM Microphone
1. Wiring the Microphone:
Running the Example
1. Connect the BleuIO Dongle:
2. Connect the Feather RP2040 to Your Computer:
3. Adjust Update Frequency (Optional):
// How often we update the advertising message (in seconds) #define READ_UPDATE_FREQUENCY 1
4. Upload the Code:
5. Start Advertising:
6. Monitor the Serial Output (Optional):
Scanning the Results
To see the results, use any BLE scanner app. Here, we use nRF Connect:
The data in the red box represents the sensor values. For example, if the value is `0x0032`, it translates to:
0x0032 = 50 dB
By following this tutorial, you've successfully created a background noise sensor using an Adafruit Feather RP2040 and a BleuIO Bluetooth Low Energy USB Dongle. This project demonstrates how to measure and advertise sound levels in decibels, which can be useful in various applications such as environmental monitoring and smart home systems. Happy building!