Making An Audio Spectrum Analyzer With A Microcontroller

While [Vinod] says he’s not an expert in this sort of thing, we really like his audio spectrum analyzer build from a simple microcontroller and LCD display.

It is a well-studied fact that every audio waveform – a recording of your voice, for instance – is just the sum of many, many sine waves. These sine waves can be plucked out using Fourier analysis, using a Discrete Fourier transform. This is the principle that spectrum analyzers operate under; [Vinod] wrote a bit of code using DFT to take apart audio captured from a microphone and output their frequency on an LCD display.

To output the spectrum on his LCD, [Vinod] stacked horizontal bars up into 8 custom characters in his display. Like [Vinod]’s previous audio on an ATMega32 experiment, an LM324 amplifier is connected to the ATMega through an analog pin. [Vinod] has a very clever build on his hands with his spectrum analyzer, and a great answer to the perennial ‘how do I build a guitar tuner’ questions we’re constantly asked.

After the break, you can see [Vinod]’s spectrum analyzer in action. Be forewarned; you may want to turn down the volume.

Continue reading “Making An Audio Spectrum Analyzer With A Microcontroller”

Making Capacitive Touch Sensors With Pencil And Paper

capacitive-touch-sensor

There are few things more frustrating than being in the middle of working on a project and realizing that you are missing some crucial component that ties the whole thing together. According to Murphy’s Law, this sort of thing will only happen when parts are completely impossible to procure.

If you’re ever hunting for a touch sensor but can’t get your hands on one, [Alan Chatham’s] tutorial on simple DIY capacitive touch sensors might be just what you need to keep things moving along.

[Alan’s] sensors rely on the conductive properties of graphite, which is easily found in just about any pencil on the market. The sensors are created by simply drawing on a piece of paper with a pencil, then wiring the images or text up to your favorite microcontroller via some paperclips and a couple of resistors.

Paper and pencil might not make for the most durable means of input, but we’re pretty sure that [Alan’s] capacitive touch sensors would be very helpful in a pinch. He doesn’t have video of the sensors in action just yet, though he says he’ll put something together here shortly.

Making A Digital Delay From A Simple Microcontroller

If you’d like to start experimenting in DSP, or just want to build a guitar pedal, here’s the project for you. It’s an audio echo using just a microcontroller from the fruitful workshop of [Vinod].

For his circuit, [Vinod] fed the output of a small electret microphone into a small amplifier, and then into the ADC of an ATMega32. Inside the microcontroller, [Vinod] set up a circular array which writes the voltage from the microphone and sends it out to a speaker. Because the array is circular (i.e. it loops around when it gets to the end), [Vinod] has a digital version of a loop of magnetic tape, perfect for recording sounds and playing back echos.

Because [Vinod] is using an ATMega32, he only has a limited amount of RAM to record audio samples. The delay time could be lengthened with a more capable microcontroller, or even the addition of a large RAM chip. With his setup, [Vinod] can do some really interesting experiments with audio and DSP, so we wouldn’t be surprised if an enterprising musician used this project as the basis for a digital delay stomp box.

You can check out [Vinod]’s demo of his echo machine after the break.

Continue reading “Making A Digital Delay From A Simple Microcontroller”

Salvaged LCD Screen Hacking

You can find all kinds of LCD screens in broken electronics. But it’s often a chore to figure out how they are controlled if you don’t have a working device that can be used to sniff the communications protocol. [Justin] grabbed this character LCD screen from an old Brother printer and decided to see if he could reuse it in his own projects. Luckily the driver card still worked so he patched into the LCD’s control lines and sniffed the signals when the printer is powered on.

He used the OpenBench Logic Sniffer for this project. It easily captured the data, and also provided analysis tools. The SPI analyzer managed to decode the command signals and message of “Please wait” that pops up at power up. After a bit of folly with the pin out of the display, he is now able to control it thanks to an Arduino library which he wrote. Check out the demo after the break to seem him scrolling through a bunch of different functions for the device.

Continue reading “Salvaged LCD Screen Hacking”

Bananaphone Lets You Use Fruit And Other Things As Switches

We’re used to [Sprite_TM] rolling out his own hacks hot on the heels of new concepts. Now we’re glad to see that [Jeff Ledger] is doing the same thing here. He was inspired by a Kickstarter project which vows to let you use fruit, clay, and a number of other common (but weird for this use) substances to interface with electronic projects. The mess you see above is the Bananaphone, a synthesizer played with touch sensitive bananas. Think of them as keys on a piano.

The interface works by measuring R/C decay. Each banana is connected to its own input pin on the Propeller board. The capacitance of the bananas rise when you touch them, and this results in a longer R/C decay measurement. Calibrate the target decay period, and you’ve got a reliable capacitive touch sensor which also happens to be delicious. Check out the results which [Jeff] achieves in the video after the break.

Continue reading “Bananaphone Lets You Use Fruit And Other Things As Switches”

Controlling A TV With A Microcontroller

Here’s two builds that print text to a TV with only two pins:

Still Alive with an Arduino

After seeing all the builds that play Still Alive, [Bob] decided to take a 1972 amber monitor and recreate the cut scene at the end of PortalThe build uses the TVout library for Arduino. There were a few problems with running the Unix and Still Alive animations at the same time, so [Bob] flips a bit in the EEPROM at the end of the command line animation and restarts into GLaDOS’ report. You can check out the old school color monitor here

ATMega Video Text Generator

[Stian] didn’t think his build was good enough for Hackaday, but his friend [Mikael] thought otherwise. [Stian] wrote a library to generate an NTSC video signal in real time. It’s a text-based build with 37×17 character resolution and only requires about 3kB of RAM. As a bonus, it only takes up two pins on [Stian]’s ATMega128.

You can check out the videos for both these builds after the break.

Continue reading “Controlling A TV With A Microcontroller”

Morse Code Interpreter

[Sulaiman Habsi] and two classmates put together a Morse Code interpreter as a class project at Sultan Qaboos University. The system listens to a morse code signal using a microphone, then translates that input to text which is displayed on this character LCD.

The breadboarded circuit feeds an audio signal from the microphone, through an OpAmp, to the ADC of an ATmega8 microcontroller. The captured signal is stored as a byte in a special way. The three least-significant bits signify how many total dots or dashes are contained in the character, the remaining bits represent those dots and dashes with zeros and ones. A full description of this process is included in a PDF linked in the article above. As you can see in the video after the break, the hardware waits to process all of the signals once the full message has been received.

This would be a great add-on for a Morse Code practice keyer.

Continue reading “Morse Code Interpreter”