Sunday, August 25, 2013

Optical Tremolo

Time for another write up!
This time for the optical tremolo pedal that I built. What makes this tremolo pedal different from any other, you ask? The answer lies in it's name: Optical tremolo. Yes, that's right, this tremolo uses light to create the volume changing effect that is a tremolo. This is how it does that:
And LED light is positioned above a photo resistor, and a motor spins a disk with a pattern cut out of it . When the disk spins, light can shine through the patter cut out of it, thus hitting the photo resistor.
When light hits a photo resistor, it's resistance increases. So when you run a signal through the photo resistor while you have the LED lit and the motor with a pattern disk spinning, you get a pattern of varied resistance (and therefor volume) that corresponds to the pattern on the disk. VoilĂ ! Tremolo.
I got the idea for this project from MAKE: Magazine Vol. 15, but you can read the article online for free here: MAKE: Optical Tremolo

Everything is powered off of a 9 volt battery.
The only controls on the tremolo pedal are a switch to reverse the motor (For A-symmetrical pattern disks), a 5-way switch speed control, an "amount" potentiometer (wired in series with the photo resistor), and an on/off switch. Watch a video demo on my Youtube channel!

Finally, here are some pictures:
(Pattern disks aren't pictured, because I seem to have lost them... Haha)



The Raspberry Pi Guitar Effect Box

Today I wanted to post an article about my Raspberry Pi based guitar effect box. Here we go:

 This project, as mentioned previous, is a guitar effect unit based on and powered by a Raspberry Pi "micro-computer" and the free DSP software "Pure Data". All of the effects are written in the Pure Data (Or "PD") language. The effect box currently contains 15 effects in all, but the entire system was built around the concept that the user should be able to switch out effects for new ones very easily. Continuing on, the effect unit (Or "pedal" as I'll refer to it from now on) consists of six main components: The buttons, the potentiometers, the VFD display, the ADC (Reads pots), the USB sound card, and the Raspberry Pi itself. I'll now go over what each component does. First, the buttons. There are three momentary push buttons on the front panel of the pedal. They enable you to cycle through effects and enter menu screens. The top most button acts as a "next" button, cycling through to the next effect, and the bottom most buttons acts as a "previous" button, cycling through to the previous effect. When the middle button is pressed, the pedal enters "edit mode", in which the user can edit the parameters of an effect, such as a chorus's speed or depth, by using the four potentiometers on the front of the pedal. This brings us into a description of how the potentiometers function. Each potentiometer is wired as a voltage divider into a channel of the ADC chip, which converts the voltage off the pot to a digital value, and that digital value takes the place of a hard coded value in a PD effect file, thus changing a certain parameter of an effect.  Moving on, when the pedal is in "normal" (non-edit-mode) the VFD display shows the name of the currently selected effect, and what it's editable parameters are. The parameters are listed from right to left, corresponding to their own potentiometer. Using the image below as an example, the user has selected the effect called "Chorus" using the next/previous buttons. You can see that the editable parameters for this effect are (from right to left): Speed, Depth, and Fdbk (Feedback). If the pedal were in edit mode, the parameter "Speed" would be controlled by potentiometer #1, the one closest to the orange cable; the other parameters following suit with potentiometers #2, and #3.
  
The front panel, showing the buttons, pots, and VFD




Now we have covered 4 of the six components. Next is the USB sound card.

Inside the pedal

The photo above shows the internals of the pedal. In the top center you can see the Raspberry Pi model B, the heart of the device. Connected to it via the GPIO pins is the main circuit board, which holds the ADC chip and various resistors. I'll provide a link to the schematic at the end of this post. Also connected to the Raspberry Pi is a small black rectangle with both a yellow and a black cable connected to it. This is the USB sound card. The yellow cable is the audio input from your guitar, and the black is processed audio out from Pure Data. The reason a USB sound card was necessary was because the Pi doesn't have a built in audio-in port. Having covered 5 of the 6 main components, all that remains is the Raspberry Pi. I'm not the person to explain the Pi, so I'll redirect you here to learn more about it.
Finally, to end this post, here are some more pictures:
 
The VFD display and four pots
A shot of the pedal with my amp and strat