Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[NANO-RP2040] Update Microphone Docs #1029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
karlsoderby merged 1 commit into main from karlsoderby/nano-rp2040-patch-may23
May 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</EssentialElement>

<EssentialElement title="PDM" type="library" link="https://www.arduino.cc/en/Reference/PDM">
The PDM library allows you to use PDM (Pulse-density modulation) microphones, like the MP34DT05.
The PDM library allows you to use PDM (Pulse-density modulation) microphones, like the MP34DT06JTR.
</EssentialElement>

<EssentialElement link="https://github.com/arduino-libraries/Arduino_LSM6DSOX" title="Arduino_LSM6DSOX" type="library">
Expand Down
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The feature packed **Arduino Nano RP2040 Connect** brings the new **Raspberry Pi

<Feature title="Omnidirectional Microphone" image="microphone">

The Nano RP2040 connect comes with the MP34DT05 microphone. It allows you to capture and analyze sound in real time and can be used to create a voice interface to control your peripherals through sound.
The Nano RP2040 connect comes with the MP34DT06JTR microphone. It allows you to capture and analyze sound in real time and can be used to create a voice interface to control your peripherals through sound.

<FeatureLink variant="primary" title="Documentation" url="/tutorials/nano-rp2040-connect/rp2040-microphone-basics"/>
<FeatureLink variant="secondary" title="Library" url="/learn/built-in-libraries/pdm"/>
Expand Down
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Connectivity:
Secure element: ATECC608A-MAHDA-T Crypto IC
Sensors:
IMU: LSM6DSOXTR (6-axis)
Microphone: MP34DT05
Microphone: MP34DT06JTR
Communication:
UART: RX/TX
I2C: A4 (SDA), A5 (SCL)
Expand Down
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,15 @@ If you want to learn more on how to use the IMU, please check out the tutorial b

## Microphone

![The MP34DT05 microphone sensor.](assets/MP34DT05-NANORP2040CONNECT.png)
![The MP34DT06JTR microphone sensor.](assets/MP34DT06JTR-NANORP2040CONNECT.png)

### MP34DT05
### MP34DT06JTR

The **MP34DT05** is a compact, low-power omnidirectional digital MEMS microphone with an IC interface. It has a 64 dB signal-to-noise ratio, is capable of sensing acoustic waves and can operate in temperatures of -40 °C to +85 °C.
The **MP34DT06JTR** is a compact, low-power omnidirectional digital MEMS microphone with an IC interface. It has a 64 dB signal-to-noise ratio, is capable of sensing acoustic waves and can operate in temperatures of -40 °C to +85 °C.

### PDM Library

To access the data from the MP34DT05, we need to use the [PDM](https://www.arduino.cc/en/Reference/PDM) library that is included in the **Arduino Mbed OS Nano Boards** core. If the core is installed, you will find an example that works by browsing **File > Examples > PDM > PDMSerialPlotter**.
To access the data from the MP34DT06JTR, we need to use the [PDM](https://www.arduino.cc/en/Reference/PDM) library that is included in the **Arduino Mbed OS Nano Boards** core. If the core is installed, you will find an example that works by browsing **File > Examples > PDM > PDMSerialPlotter**.

- **Please note:** The sampling frequency in the PDMSerialPlotter example is set to 16000 Hz. If the microphone appears to not be working (monitor is printing a value of -128), try to change this rate to 20000 Hz. You can change this at the top of the PDMSerialPlotter example sketch, as shown in the example below:

Expand Down
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: 'Reading Microphone Data on Nano RP2040 Connect'
difficulty: intermediate
compatible-products: [nano-rp2040-connect]
description: 'Learn how to read data from the MP34DT05 microphone, and how to use the data to turn ON or OFF the built-in RGB.'
description: 'Learn how to read data from the MP34DT06JTR microphone, and how to use the data to turn ON or OFF the built-in RGB.'
tags:
- Microphone
- RGB
Expand All @@ -22,7 +22,7 @@ software:

## Introduction

The Nano RP2040 connect comes with the **MP34DT05** microphone, which can be used to record audio. In this tutorial, we will setup a basic application that simply turns ON or OFF the built in RGB LED whenever a loud noise is recorded (for example snapping our fingers).
The Nano RP2040 connect comes with the **MP34DT06JTR** microphone, which can be used to record audio. In this tutorial, we will setup a basic application that simply turns ON or OFF the built in RGB LED whenever a loud noise is recorded (for example snapping our fingers).

>**Note:** if you need help setting up your environment to use your Arduino Nano RP2040 board, please refer to [this installation guide](/software/ide-v1/tutorials/getting-started/cores/arduino-mbed_nano).

Expand All @@ -42,20 +42,18 @@ The goals of this project are:
- [PDM](https://www.arduino.cc/en/Reference/PDM) library installed.
- [Arduino Nano RP2040 Connect](https://store.arduino.cc/nano-rp2040-connect).

## The MP34DT05 Microphone
## The MP34DT06JTR Microphone

![The MP34DT05 microphone.](assets/rp2040-microphone-img-00.png)
![The MP34DT06JTR microphone.](assets/rp2040-microphone-img-00.png)

Microphones are components that convert physical sound into digital data. Microphones are commonly used in mobile terminals, speech recognition systems or even gaming and virtual reality input devices.

The MP34DT05 sensor is a ultra-compact microphone that use PDM (Pulse-Density Modulation) to represent an analog signal with a binary signal. The sensor's range of different values are the following:
The MP34DT06JTR sensor is a ultra-compact microphone that use PDM (Pulse-Density Modulation) to represent an analog signal with a binary signal. The sensor's range of different values are the following:

- Signal-to-noise ratio: 64dB
- Sensitivity: -26dBFS ±3dB
- Temperature range: -40 to 85°C

If you want to read more about the MP34DT05 sensor you can take a look at the <a href="https://content.arduino.cc/assets/Nano_BLE_Sense_mp34dt05-a.pdf" target="_blank">datasheet</a>.

### Circuit

This tutorial requires no additional circuit. You will only need to connect the board to a computer through a Micro USB cable.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ while (True):
time.sleep_ms(100)
```

### Microphone (MP34DT05)
### Microphone (MP34DT06JTR)

Below example can be used with OpenMV's frame buffer window (top right corner).

Expand Down

AltStyle によって変換されたページ (->オリジナル) /