Using a Headphone Jack as a UART

We’ve seen audio ports being used to establish a communications channel between a computer and a microcontroller before, but nothing quite as slick as this. [Gordon] is using a webpage running on a tablet to send Javascript to a microcontroller where the entire program is interpreted.

[Gordon] is using the Espruino Pico, a board that’s on Kickstarter right now. This tiny board is built around a javascript interpreter, allowing code to be written and updated on the fly without mucking around with bootloaders.

This technique can be expanded to provide bidriectional communication between a microcontroller and a computer. On the project Github, [Gordon] used the microphone pin on a TRRS jack to sent data to a computer. It needs two more resistors, but other than that, it’s as simple as the one-way communications setup.

[Gordon] put together a few demos of the program, including one that will change the color of some RGB LEDs in response to input on a webpage.

Continue reading “Using a Headphone Jack as a UART”

Low-Voltage Tube Amp is Great for Beginners

If you ever wanted to build your own tube amplifier but you were intimidated by working with high voltages, [Marcel]’s low-voltage tube amp design might spark your interest. The design operates with a B+ (plate) voltage of only 40v, making it less intimidating and dangerous than many other amps that operate over 300V. It’s also incredibly easy to build—the whole design uses only 11 components.

The amplifier is designed around the ECL82 tube, which includes both a triode and a pentode in one package. The ECL82 is practically an amplifier in a tube: it was designed for low-cost electronics like record players that needed to be as simple as possible. The triode in the ECL82 is used as a pre-amplifier for the incoming signal. The pentode is controlled with the pre-amplified signal and acts as a power amplifier.

[Marcel]’s amplifier also uses a PY88 tube rectifier instead of semiconductor diodes, making it an entirely silicon-free design. Although [Marcel] hasn’t posted up detailed build instructions yet, his simple schematic should be all you need to get started. If you want some more background information about tube amps but you don’t know where to start, check out our post on basic tube amp design from earlier this year.

Beverly-Crusher, the Greatest Name for an Audio Effect

Image is © aliceazzo [http://aliceazzo.deviantart.com/].
Image © aliceazzo [http://aliceazzo.deviantart.com/].
When it comes to audio effects, you have your delay, reverb, chorus, phasing, and the rest that were derived from strictly analog processes. Compared to the traditional way of doing things, digital audio is relatively new, and there is still untapped potential for new processes and effects. One of those is the bit crusher, an effect that turns 8- or 16-bit audio into mush. [Electronoob] wanted to experiment with bitcrushing, and couldn’t find what he wanted. Undeterred, he built his own.

There are two major effects that are purely in the digital domain. The first is the sample rate reducer. This has a few interesting applications. Because [Shannon] and [Nyquist] say we can only reproduce audio signals less than half of the sample rate; if you run some audio through a sample rate reducer set to 1kHz, it’ll sound like crap, but you’ll also only get bass.

The bitcrusher is a little different. Instead of recording samples of 256 values for 8-bit audio or ~65000 values for 16-bit audio, a one-bit bitcrusher only records one value – on or off. Play it through a speaker at a decent sample rate, and you can still hear it. It sounds like a robotic nightmare, but it’s still there.

[Electronoob] created his bitcrusher purely in software, sending the resulting bitcrushed and much smaller file to an Arduino for playback. Interestingly, he’s also included the ability to downsample audio, giving is project both pure digital effects for the price of one. 1-bit audio is a bit rough on the ears, but 2, 3, and 4-bit audio starts to sound pretty cool, and something that would feel at home in some genres of music.

Continue reading “Beverly-Crusher, the Greatest Name for an Audio Effect”

Poor Audio Quality Made Great: Listen to Vintage Music Using an Antique Radio Without Removing the Insides

Sometimes it is not how good but how bad your equipment reproduces sound. In a previous hackaday post the circuitry of a vintage transistor radio was removed so that a blue tooth audio source could be installed and wired to the speaker. By contrast, this post will show how to use the existing circuitry of a vintage radio for playing your own audio sources while at the same time preserving the radio’s functionality. You will be able to play your music through the radio’s own audio signal chain then toggle back to AM mode and listen to the ball game. Make a statement – adapt and use vintage electronics.

Pre-1950’s recordings sound noisy when played on a high-fidelity system, but not when played through a Pre-War console radio. An old Bing Crosby tune sounds like he is broadcasting directly into your living room with a booming AM voice. You do not hear the higher frequency ‘pops’ and ‘hiss’ that would be reproduced by high-fidelity equipment when playing a vintage recording. This is likely due to the fact that the audio frequency signal chain and speaker of an antique radio are not capable of reproducing higher frequencies. Similarly, Sam Cooke sounds great playing out of an earlier transistor radio. These recordings were meant to be played on radios from the era in which they were recorded.

Choosing an Antique Radio

Vintage radios can be found at garage sales, estate sales, hamfests, antique shops, antique radio swap meets, and Ebay. Millions of radios have been manufactured. People often give them away. For this reason, antique radios are relatively inexpensive and the vast majority are not rare or valuable.

Generally speaking, tube radios must be serviced and may not even work. Transistor radios often work to some level. Try to find a radio that is clean and uses a power supply transformer or batteries.

Click past the break to learn how to restore these radios to working condition

Continue reading “Poor Audio Quality Made Great: Listen to Vintage Music Using an Antique Radio Without Removing the Insides”

Pi Musicbox 0.5 Released

Pi MusicBox Logo

 

Have an extra Raspberry Pi kicking around? Pi MusicBox provides a way to quickly turn it into a standalone streaming device that can fetch music from tons of sources. The latest release of Pi MusicBox adds a bunch of new features.

We took a look at this software over a year ago, and noted that it made streaming Spotify easy, and had support for controlling tracks using Music Player Daemon (MPD). The newest release supports AirPlay, DNLA, Google Music, SoundCloud, and several other music sources.

Since the analog audio output on the Pi isn’t great, Pi MusicBox includes support for a variety of USB sound cards. It’s also possible to use the HDMI port for digital audio output, which can be connected into your home theatre system.

If you want to build a standalone music device, this looks like a great place to start. The user community has built a variety of projects that run this software, which are featured on the Pi MusicBox homepage.

Party Ready Mini LED Volume Tower

Audio LED Light Tower

There are many very cool visual effects for music, but the best are the kind you build yourself. [Ben’s] mini LED volume towers adds some nice bling to your music.

[Ben] was inspired to created this project when he saw a variety of awesome stereo LED towers on YouTube (also referred to as VU meters). We have even featured a few VU meters, one very recently. [Ben] goes over every detail, including how to test your circuit (a very important part of any project). The schematic is deceptively simple. It is based on the LM3914 display driver IC, a simple chained comparator circuit is used to control the volume bar display. All you really need is a 3D printer to make the base, and you can build this awesome tower.

See the completed towers in action after the break. What next? It would be cool to see a larger tower that displays frequency magnitude!

Continue reading “Party Ready Mini LED Volume Tower”

Automatic Audio Leveling Circuit Makes Scanning More Fun

alan-scope1

[Alan’s] friend came to him with a problem. He loved listening to his scanner, but hated the volume differences between stations. Some transmitters would be very low volume, others would nearly blow his speakers. To solve the problem, [Alan] built up a quick automatic leveling circuit (YouTube link) from parts he had around the lab.

[Alan’s] calan-scope2ircuit isn’t new, he states right in the video that various audio limiting, compressing, and automatic gain control circuits have been passed around the internet for years. What he’s brought to the table is his usual flair for explaining the circuits’ operation, with plenty of examples using the oscilloscope. (For those that don’t know, when [Alan] isn’t building circuits for fun, he’s an RF applications engineer at Tektronix).

Alan’s circuit is essentially an attenuator. It takes speaker level audio in (exactly what you’d have in a desktop scanner) and outputs a limited signal at about 50mv peak to peak, which is enough to drive an auxiliary amplifier. The attenuator is made up of a resistor and a pair of 1N34A Germanium diodes. The more bias current applied to the diodes, the more they will attenuate the main audio signal. The diode bias current is created by a transistor-based peak detector circuit driven off the main audio signal.
But don’t just take our word for it, watch the video after the break.

Continue reading “Automatic Audio Leveling Circuit Makes Scanning More Fun”