MOD Player For The Stellaris Launchpad

[Ronen K.] wrote in to tell us about the MOD playing Stellaris Launchpad project he recently completed. A MOD is a sound file for the computers of days long gone. But you’ll certainly recognize the sound of the 8-bit goodness that is coming out of this device.

To understand how a MOD file stores samples you might want to glance at the Wikipedia page. There are a ton of these files out there, but this implementation is meant for files with only four channels. For now the only external hardware used is an audio jack which needs a ground connection and a PWM signal on each of the two audio channels. [Ronen] is storing the files in flash memory rather than using an SD card or other external storage. This leaves 213k of space for up to six files that can be selected by the user buttons which cycle forward or backward through the list. See this demonstrated after the break.

The project ports existing code from an STM32 application. Since that is also an ARM microcontroller there’s not a ton of work that needed to be done. But he did have to write all of the PWM functionality for this chip. This PWM tutorial turned out to be very helpful during that process.

Continue reading “MOD Player For The Stellaris Launchpad”

Internet Radio Occupies An 80-year-old Radio Case

[Florian Amrhein] made use of some old hardware to build his own internet radio in a 1930’s radio case.

The original hardware is a tube-amplified radio which he picked up on eBay. There’s tons of room in there once he removed the original electronics and that’s a good thing because he crammed a lot of new parts into the build. The main one being an old laptop he had on hand. It’s got a 10″ screen which is too large for the opening, but that ended up being okay. He coded an interface with C and SDL which give him a visual representation of his favorite online streams. The knob to the right moves the red line when turned and causes the Debian box to change to the new stream using the Music Player Daemon. Two potentiometers control the tuning and volume, and there is also a rotary encoder which is not yet in use. All three are connected to the laptop via an Arduino.

Check out the finished product in the video after the break. It sounds quite good thanks to the small automotive speaker and amplifier also crammed into the old case.

If you don’t have a laptop lying around to use in a project like this consider a microcontroller and character LCD based system.

Continue reading “Internet Radio Occupies An 80-year-old Radio Case”

Adding Node.js Based Sensors To The Parrot AR Drone

[Max Ogden] wanted the option to add sensors to his Parrot AR Drone. This a commercially available quadcopter which runs Linux. This makes it rather easy for him to use Node.js to read the sensors from an Arduino board. The use of the Arduino is merely for easy prototyping. It is only needed to bridge the drone’s serial port with a sensor’s delivery method, so just about any microcontroller could be substituted for it.

There are some hardware considerations to take into account. The manufacturer was nice enough to populate a 0.1″ pitch pin socket on the serial port (if only this kind of invitation to mess with hardware was an industry standard). But the device expects 3.3V levels so pick your hardware accordingly. There is one commenter who tried the project for themselves and found that the drone wouldn’t boot up with the Arduino already connect — he had to boot and then complete connections. Troubles aside this makes adding your own sensor payload very simple and you don’t have to wait until landing to get at the data.

Maybe we’ll have to add some shock voltage data reporting to our shockerDrone.

Headphone Light Show

Seriously, nothing says ‘Look at me!’ like these headphones. [Yardley Dobon] added a rainbow of colored electroluminescent wire to his headphones and made them pulse to the music. The video after the break shows the headphones bumping to the tunes. This is one of two versions of the project, the other runs the EL wire along the headphone wire itself. We’re a bit surprised that the high frequency from that parallel run doesn’t inject noise into the signal. We do enjoy seeing these in action, but in practice observers unfortunately won’t be able to hear the tunes to which the lights are pulsing.

It took us a little while to figure out that [Yardley] didn’t roll his own VU hardware. The inverter driving the EL wire is designed to bump to the music. But he did hack it to use an audio line rather than a microphone. He mentions that this has other uses, like allowing carefully crafted sound clips to precisely control the inverter.

Continue reading “Headphone Light Show”

Turning Toy Pianos Into MIDI Keyboards

Building a MIDI device is always a great microcontroller project, and nearly everyone has an old toy keyboard lying around in the back of a closet or in the basement. [JenShen] decided to take one of these toy keyboards and build a MIDI keyboard.

The keyboard [JenShen] used was a simple Casio keyboard with built-in voices. After tearing out the guts of the keyboard, the only thing that remained is the row of push buttons underneath the keys. These buttons were laid out in a row/column matrix, so [JenShen] needed to decode this matrix before sending the result to an Arduino for processing.

A 74HN595 shift register was used to read the 8 rows of buttons underneath the keys, while the rows were tied to different input pins on the ‘duino. This allowed [JenShen] to scan the keyboard matrix with an Arduino and generate MIDI notes and send them to other synths.

In the video after the break, you can check out [JenShen]’s circuit and code that allowed him to turn a toy keyboard into a proper 32-note MIDI keyboard. It’s not velocity sensitive, but he says he’ll show everyone how to accomplish that in a future post.

Continue reading “Turning Toy Pianos Into MIDI Keyboards”

Glockentar: A Guitar + Glockenspiel Mashup

This unique electronic instrument combines a chopped up guitar and a hacked apart glockenspiel with an Arduino. [Aaron]’s Glockentar consists of guitar hardware and glockenspiel keys mounted to a wood body. Solenoids placed above the keys actuate metal rods to play a note.

Under the hood, an Arduino connects the pieces. The conductive pick closes a circuit, which is a digital input into the Arduino. This actuates the corresponding solenoid to play the glockenspiel key, and sends a character to a computer over serial.

On the computer, an openFrameworks based program creates lighting that is projected onto each string. MadMapper is used for projection mapping, which maps the openFrameworks output to each string. Video is passed between applications using the Syphon framework.

[Aaron] has provided a write up that goes into details, including the Arduino and openFrameworks source for the project. There’s also a video overview and demo of the Glockentar after the break.

Continue reading “Glockentar: A Guitar + Glockenspiel Mashup”