I’ve posted an initial release of a WAV Trigger Arduino library on GitHub, along with a sample sketch for the YUN that demonstrates use of the library and a very basic browser based interface.
The picture below shows how I can start, stop and control the volume of a track over wifi from my phone. The YUN is only plugged in for power, and the WAV Trigger is powered from the YUN, using the on-board amp to drive the speaker. The UI is just an html page so it’ll work with any device/browser. The only reason I don’t have multi-track control is my limited knowledge of html/CSS coding and lack of time.
Both the library and the sample sketch currently have lots of limitations, but I thought it would be helpful to get something out there sooner than later. I’ll keep the GitHub repositories updated as I go.
If any of you html-savvy folks want to speed things along, the most helpful thing would be to look at “index.html”, located in the www folder of the YUN sketch. This is the file that creates the YUN’s browser UI. If someone can come up with a more functional version, providing the ability to control multiple tracks, I’d love to improve this example.
This update adds serial commands for controlling individual track volumes as well and for enabling/disabling the on-board audio amplifier. The serial remote control app has also been updated to demonstrate these capabilities – see the screenshot below.
Also, the WAV Trigger firmware update utility has been updated to v1.01, the main difference being speed. The firmware update process went from taking about a minute and a half to around 15 seconds!
I’m very pleased to announce that, after a lot of hard work, the WAV Trigger goes live on the SparkFun site tomorrow. I’m excited because I think this is a unique product that’ll hopefully inspire a lot of cool ideas.
Please bear with us as we iron out the documentation and details. The most up-to-date and accurate info will be found here for the time being, simply because I can update things myself, without having to go through proper “channels”.
The firmware shipping with the units from SparkFun is pretty much complete, although I do plan to add features and enhancements in the near future. Unlike the MP3 Trigger, the WAV Trigger’s firmware update process uses the serial control port, which happens to be pin-compatible with the FTDI Basic 5V. If you plan to take advantage of upcoming firmware releases, I suggest you get one of these handy devices.
Some things I plan to do:
WAV file compatibility: At the moment, the WAV Trigger supports only 16-bit, stereo, 44.1kHz WAV files with no meta-data. These are easy to create using a sound editor such as Audacity, so it’s not a big deal. But I do plan to support at least 22.05kHz sample rate in the future – although it will be a global setting – no mixing of sample rates. I also plan to make it more forgiving with respect to there being non-audio (meta) data in the file.
Signal Processing & Effects: The CPU is, after all, a DSP. I plan to add a 3-band EQ to the output stage, with settings from the init file. I’d also like to see if I could manage a nice reverb algorithm with the available RAM.
MIDI functionality: It’s pretty cool already, being able to map an entire keyboard range of notes to stereo WAV files, but it would be even cooler to use MIDI Control Change messages, or even a trigger input, to map to an entirely different set of sounds. Right now, you can do this by changing the MIDI Channel number on your controller, but not having to change channels would be even easier.
Serial control: The WAV Trigger’s serial control protocol is already more sophisticated than the MP3 Trigger’s simple protocol, with the ability to control individual track transport functions and volumes. I plan to add things like the ability to export track filenames. Significantly, I also plan to develop and publish an Arduino WAV Trigger Control Library to simplify using the serial control features for those of you in the Arduino world.
Over the weekend, I transferred the old MakerJam website to a new host, and a new look. I’ll continue to work on moving over much of the old content, blog posts, etc, but in the meantime things may seem a little sparse.
I don’t plan on having a forum this time around. Most of the activity in the MakerJam forum was related to SparkFun product support, and since they already have a forum, it was confusing having two places to post. I monitor the SparkFun forums on a regular basis anyway. Unfortunately, that leaves me with no place to put the old MakerJam forum posts. I’ll look into what the possibilities are.
Just finished converting my Specialized Rockhopper mountain bike to electric with a BionX PL350 kit. Check it out:
The system provides a very natural assist, using a torque sensor in the hub to apply 4 different levels of amplification to your peddling. It makes pretty much any hill feel like level ground without changing gears.
Took about 2 days to install and bring my bike up to commuter-worthiness.