Audio Modules for electronics projects (Patreon)
Content
I've often mentioned that I believe audio is a somewhat overlooked area - it is easy to be distracted by flashing LEDs, display screens, motorised mechanisms, ... - and not give enough attention to our core sense of hearing! Almost any project can benefit from the addition of an audio module - whether it's to provide positive feedback to a user interface, add background ambience to a thematic setting, or sound effects for a model, toy, or fright prop.
There's several easy to obtain, cheap audio modules that are often used in tutorials and projects in the internet, and in this video, I'm going to demonstrate some of them, including: the DF Player Mini, Catalex Serial MP3 Player, (including the YX5200, YX6300, MH-ET LIVE MH2024K and AA20HF "variants"), DY-SV17F, DY-SV5W, DY-SV8F, DY-HV8F, and DY-HV20T.
I've not included any specific links to purchase the modules used - I don't have any kind of sponsorship deal or use affiliate links - these are purely my own personal findings and recommendations based on having deployed many projects using these boards. If you search for any of the model names you should be able to find plenty of local suppliers, but let me know if you have any issues with availability.
Some of these devices can be controlled by code sent from an Arduino, ESP32, or Raspberry Pi, whereas others can be used as a completely standalone device - requiring you only to connect a power supply and speaker. Playback of different sounds can then be controlled by pressing different buttons (or any other inputs), which makes them ideal for use in an interactive museum exhibit or other installation. such as a halloween prop activated when you step on a pressure pad.
Now, it's going to be impossible for me to convey the volume or quality of these modules in a video.... they're all just going to sound like the speakers you're currently listening on at the volume level you've set (possibly a little bit more distorted due to my microphone!). So, I'm going to concentrate on demonstrating these other features instead:
how to wire them _correctly_ to minimise static noise, clicks, etc. and prevent erratic behaviour during playback
how to prepare and store audio data (using, e.g. using Audacity to normalise and trim audio files, and DriveSort to ensure that track 00004.mp3 really corresponds to track 4 on the SD card http://www.anerty.net/software/file/D... )
comparing ease-of-use; some devices can be wired directly to the GPIO pins of a 3.3V or 5V microprocessor, whereas others need external components such as resistors or capacitors
testing audio latency between flash memory and SD card devices
I've tried to be as thorough and accurate as I can in the video - while there is existing information for many of these modules already on the internet, I found much of it to be incorrect! For each board, I've referred back to the manufacturer's specification and source schematics to demonstrate the correct way to use them for optimal performance. So, if you've ever encountered issues with using any of these devices previously, please do check it out and ask any questions.
I've also tried to gather all the documentation I can, together with a feature comparison table, example wiring and code, etc. which I've uploaded to the following GitHub repository:
https://github.com/playfultechnology/arduino-audio
This is currently a work-in-progress. As I think of more examples, or try new boards, I plan to add them in to make this even more thorough.
I hope you find this useful - please do ask if you have any questions, or if I've failed to mention something important!