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
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
47
48
+
## Instructions
49
+
47
50
### OpenMV
48
51
49
52
Open the script by going to **Examples > Arduino > NanoRP2040 > Audio > Audio_fft.py**.
@@ -58,29 +61,28 @@ When the script is running, you will see an spectrum analyzer in the top right p
58
61
59
62
### Arduino
60
63
61
-
## Instructions
62
-
63
-
### Setting Up the Sketch
64
+
#### Setting Up the Sketch
64
65
65
66
We will edit the example from the mbed Core, go to **Examples > PDM > PDMSerialPlotter** and save it into your sketchbook.
66
67
67
68
You can run the sketch to see the result, it will show the data that the microphone is getting on the **Serial Plotter**.
68
69
69
-
### Controlling the Blinking LED
70
+
####Controlling the Blinking LED
70
71
71
-
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.
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
73
73
74
You can access the example sketch at **Examples > PDM > PDMSerialPlotter** and then edit as shown in this tutorial.
74
75
Or find the full edited sketch in our **Arduino_Pro_Tutorials** library.
75
76
76
-
### Complete Sketch
77
+
####Complete Sketch
77
78
78
79
```arduino
79
80
/*
80
81
This example reads audio data from the on-board PDM microphones, and prints
81
82
out the samples to the Serial console. The Serial Plotter built into the
82
83
Arduino IDE can be used to plot the audio data (Tools -> Serial Plotter)
83
84
Circuit:
85
+
- Arduino Nicla Vision, or
84
86
- Arduino Nano 33 BLE board, or
85
87
- Arduino Nano RP2040 Connect, or
86
88
- Arduino Portenta H7 board plus Portenta Vision Shield
0 commit comments