Adafruit’s Tony DiCola has put together a detailed tutorial describing how to transform an Atmel-based Arduino Yún (ATmega32u4 MCU) into a soundboard that can be controlled from a webpage over WiFi.
Aside from the Atmel-powered Arduino Yún, key project components include a MicroSD card with 20 megs of available space and a USB audio adapter (or USB speakers).
“Before you get, started you will want to have your Yun connected to your wireless network and be familiar with connecting to the Yún over SSH,” DiCola explained.
The project’s first step? Making sure the MicroSD card is inserted into the Yun and powered on. After connecting to the Yún with SSH, Makers are instructed to install the audio and drivers.
Next up? Installing and configuring the Flask web application framework.
“Once the audio and Flask setup steps are complete, you can install the software for this project,” said DiCola. “While connected to the Yun over SSH, execute commands to download the software and unzip it on the SD card.”
As DiCola notes, Makers can add their own sounds to the soundboard by simply copying MP3 files into the YunSoundboard-master/sounds folder. For Mac or Linux, the scp tool is used to copy files from a PC to the Yun by executing in a terminal. On Windows, Makers will need to install the pscp utility, with the syntax the same as used for the Mac/Linux command, except for the ‘pscp’ command instead of scp.
“Once the sounds are copied over, reload the web page and you should see them added to the list of sounds automatically,” he noted.
According to DiCola, the above-mentioned project is a great example of how to use the Yún’s Linux processor to host a web application and play sounds. Of course, the basic project can be modded or expanded to run on other boards. Makers can also copy their music collection to the device for WiFi controlled boombox, or hook up a PIR motion sensor to the Yun and have the web page alert them if someone is near the device and ready to be pranked.
As we’ve previously discussed on Bits & Pieces, the Atmel-powered Yún has been used in a wide variety of Maker projects that we’ve recently covered, including an electricity monitor, mesh extender platform, high-five camera, Foursquare soap bubble machine, a Gmail (alert) lamp, water heater regulator, smart measuring camera and a security camera.
Interested in learning more about building a WiFi Yún soundboard? You can check out Tony DiCola’s full tutorial on Adafruit here.