4-Bit Audio Output Via Voltage Reference - ZVEIL

4-Bit Audio Output Via Voltage Reference

by Elliot Williams July 30, 2016

[Bruce Land] switched his microprocessor programming class over from Atmel parts to Microchip’s PIC32 series, and that means that he’s got a slightly different set of peripherals to play with. One thing that both chips lack, however is a digital-to-analog converter (DAC). Or do they? (Dun-dun-dun-duuuuhnnnn!)

The PIC part has a programmable, sixteen-level voltage reference. And what is a Vref if not a calibrated DAC? With that in mind, [Bruce] took to documenting its performance and starting to push it far beyond the manufacturer’s intentions. Turns out that the Vref has around 200 kHz of bandwidth. (Who would update a voltage reference 200,000 times per second?)

Anyway, [Bruce] being [Bruce], he noticed that the bits weren’t changing very often in anything more than the least significant bit: audio waveforms, sampled fast enough, are fairly continuous. This suggests using a differential PCM encoding, which knocks the bitrate down by 50% and saves a lot on storage. (Links to all the code for this experiment is inline with his writeup.)

The audio hacks that come out of [Bruce]’s Cornell ECE classes are always a treat. From the lock that you have to sing to open, to chiptunes programmed into an FPGA, there’s something for music fans of all inclinations.


Filed under: Microcontrollers, musical hacks

Elliot Williams
Elliot Williams

Author



Leave a comment

Comments will be approved before showing up.


Also in In The News

What's The Cringiest Thing You’ve Witnessed At A Wedding?

by Razmig Messerian July 15, 2019

Here comes the — oh, yikes.


View Entire Post ›

Continue Reading

This Wedding Party Got Photobombed By "Scooter Girl" And They Loved Every Second Of It

by Razmig Messerian July 15, 2019

After the shoot, the photograper went on a hunt to find the amazing photobomber.


View Entire Post ›

Continue Reading

Joe Jonas And Sophie Turner Just Shared Pictures From Their Honeymoon And They're Obviously The Cutest

by Razmig Messerian July 15, 2019

The couple flew out to the Maldives for some R&R after getting married for the second time in France.


View Entire Post ›

Continue Reading