You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/05.nicla/boards/nicla-vision/tutorials/microphone-sensor/content.md
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -29,10 +29,10 @@ In this tutorial you will use the **Arduino Nicla Vision** board to get the micr
29
29
30
30
## Goals
31
31
32
-
- Get the microphone data.
33
-
- Use the PDM(Pulse-density modulation) library.
34
-
- Print the microphone values in the Serial Monitor.
35
-
- Change RGB blinking speed with the last microphone reading. (Arduino IDE)
32
+
- Get the microphone data
33
+
- Use the PDM(Pulse-density modulation) library
34
+
- Print the microphone values in the Serial Monitor
35
+
- Change RGB blinking speed with the last microphone reading (Arduino IDE)
36
36
- Show the values on a spectrum analyzer (only with openMV)
37
37
38
38
### Required Hardware and Software
@@ -43,7 +43,7 @@ In this tutorial you will use the **Arduino Nicla Vision** board to get the micr
43
43
44
44
## Set Up
45
45
46
-
To check that you correctly set up the board please visit our [Getting Started Guide](https://docs.arduino.cc/tutorials/nicla-vision/getting-started) for both **OpenMV** and **Arduino** instructions.
46
+
To check that you correctly set up the board, please visit our [Getting Started Guide](https://docs.arduino.cc/tutorials/nicla-vision/getting-started) for both **OpenMV** and **Arduino** instructions.
47
47
48
48
## Instructions
49
49
@@ -53,23 +53,23 @@ Open the script by going to **Examples > Arduino > NanoRP2040 > Audio > Audio_ff
53
53
54
54
***Using the same sketch as the NanoRP2040, because both boards access the microphone in the same way***
55
55
56
-
Make sure the board is connected, if the board is connected to OpenMV you should see a green play button in the bottom left corner of the window. If you do not see this icon, try pressing the connect button in the bottom left corner. If there still is some issue to connect the board take another look at the getting started guide.
56
+
Make sure the board is connected, if the board is connected to OpenMV you should see a green play button in the bottom left corner of the window. If you do not see this icon, try pressing the connect button in the bottom left corner. If there still is some issue to connect the board, take another look at the getting started guide.
57
57
58
-
When the script is running, you will see an spectrum analyzer in the top right panel that reflects the audio readings input. Try making some noise and see how it reacts.
58
+
When the script is running, you will see a spectrum analyzer in the top right panel that reflects the audio readings input. Try making some noise and see how it reacts.
59
59
60
60

61
61
62
62
### Arduino
63
63
64
64
#### Setting Up the Sketch
65
65
66
-
We will edit the example from the mbed Core, go to **Examples > PDM > PDMSerialPlotter** and save it into your sketchbook.
66
+
You will edit the example from the mbed Core, go to **Examples > PDM > PDMSerialPlotter** and save it into your sketchbook.
67
67
68
68
You can run the sketch to see the result, it will show the data that the microphone is getting on the **Serial Plotter**.
69
69
70
70
#### Controlling the Blinking LED
71
71
72
-
Now that you can get the microphone data, let's control the built-in RGB LED and change the speed of its blinking depending on the values by changing the blinking time to the last reading of the microphone, the blink will be slow if the sound is loud, and fast if it is quiet.
72
+
Now that you can get the microphone data, let's control the built-in RGB LED and change the speed of its blinking depending on the values, by changing the blinking time to the last reading of the microphone; the blink will be slow if the sound is loud, and fast if it is quiet.
73
73
74
74
You can access the example sketch at **Examples > PDM > PDMSerialPlotter** and then edit as shown in this tutorial.
75
75
Or find the full edited sketch in our **Arduino_Pro_Tutorials** library.
@@ -184,9 +184,9 @@ If you want to test it, the only thing you need to do is to speak or play some s
184
184
185
185
### Troubleshoot
186
186
187
-
- In case the Serial Monitor freezes, unplug and then plug the board into your computer again, now try to upload the sketch
187
+
- In case the Serial Monitor freezes, unplug and then plug the board into your computer again. Now try to upload the sketch.
188
188
- If the sketch is not working, try to double tap the reset button and upload the sketch once again.
189
189
190
190
## Conclusion
191
191
192
-
You have learned how to use the Arduino IDE and OpenMV to get data from the microphone and then use it to change the RGB LED on the board. This can for example be used as an alarm system to wake the board up and take a screenshot with the Camera.
192
+
You have learned how to use the Arduino IDE and OpenMV to get data from the microphone and then use it to change the RGB LED on the board. This can for example be used as an alarm system to wake the board up and take a screenshot with the Camera.
0 commit comments