Multimedia - Audio Basic
- AmebaPro2 [ AMB82 MINI ] x 1
- 3.5mm TRS/TRRS breakout x 1 (e.g., Adafruit 2791 / Sparkfun 11570)
- Potentiometer x 2
In this example, we will use the Ameba Pro2 board to playback audio recorded by the onboard analogue microphone.
The following examples are relevant to this guide.
Connect the audio jack and potentiometers to the Ameba board as shown in the diagram.
Open one of the Audio examples in “File” -> “Examples” -> “AmebaMultimedia” -> “Audio”.
Compile the code and upload it to Ameba.
Plug in a pair of wired earbuds into the audio jack. After pressing the Reset button, you should be able to hear sounds picked up by the onboard microphone replayed through the earbuds.
In the “AudioVolumeAdjust” example, turning the potentiometers will adjust either the input volume of the microphone or the output volume of the audio jack.