Description: The project involves driving an analog VU meter using the audio output from a Raspberry Pi. The setup utilizes software on the Raspberry Pi to digitally sample the peak audio level, which is then sent to an 8-bit digital-to-analog converter (DAC). The DAC output is used to drive the analog meter. The Raspberry Pi generates digital signals through its GPIO pins, while the analog meter requires an analog signal. To convert the digital output from the Raspberry Pi into an analog voltage, a DAC is necessary. Although it is possible to construct a DAC with discrete components, using a commercially available DAC integrated circuit (IC) is more convenient, accurate, and reliable.
The AD557 DAC operates with a single 5V supply, which is ideal given the readily available 5V power from the Raspberry Pi. The DAC produces an output voltage range from 0V to 2.55V, where an input value of 0 corresponds to 0V output and an input value of 255 corresponds to 2.55V output. The input voltage range for the DAC is flexible, accepting 0 to 0.8V as "0" and 2 to 5V+ as "1," making it compatible with the Raspberry Pi's 3.3V digital outputs. Various GPIO pins on the Raspberry Pi provide a number between 0 and 255 to the data input pins (1 through 7) on the DAC. The DAC is powered and grounded using the 5V power and ground pins available on the Raspberry Pi GPIO header.
The DAC features three Vout pins, which may seem unusual but allow for alternative configurations for non-standard output voltage ranges. The CS (chip select) and CE (chip enable) pins on the AD557 are important for controlling the output voltage. The output voltage changes only when both pins are low (grounded), ensuring that the right values are set on the data pins before updating the output voltage, thus preventing unintended changes. In this setup, the CS pin is permanently connected to ground, while the CE pin is connected to a GPIO pin for software control. The CE pin must be driven from high to low for at least 225ns to update the DAC output voltage.
A 15K resistor is included in the circuit to limit current. The Sifam audio level meter used in this project is current-driven and requires minimal current. It indicates a reading of 0 (entering the red zone) at approximately 300µA. At the maximum DAC output voltage of 5V, the 15K resistor ensures the meter receives around 333µA (5V / 15,000Ω), placing the needle appropriately into the red zone. It is important to note that while this meter is labeled as a VU meter, it does not provide a true VU reading, as the VU standard has a strict definition that is not being emulated in this project.
The circuit will be soldered and housed in a suitable enclosure for final assembly.I have been working on driving an analog VU meter based on the sound going out the Raspberry Pi`s audio outputs. This now works! The music [1] is playing from a Raspberry Pi, with software running on the Pi digitally sampling the peak output audio level and writing that out to an 8-bit digi
tal-to-analog converter (DAC). The DAC output is then used to drive the analog meter. If you`re interesting in knowing how all this hangs together, keep reading. The Raspberry Pi is very capable of generating digital signals using its GPIO pins but an analog meter requires an analog signal. To convert a digital value emitted from the Raspberry Pi to an analog voltage we need a DAC. It`s possible, and rewarding, to build a DAC using discrete components, but it`s more convenient, accurate and reliable if you use an off-the-shelf DAC packaged as an integrated circuit (IC).
5V single supply operation: The AD557 requires just a single 5V supply voltage. This is ideal for the Raspberry Pi where we have 5V power readily available. Many DAC ICs require a supply voltage somewhat higher than 5V making them trickier to use with the Pi. 0 to 2. 55V output: A value of 0 at the input gives 0V at the output. A value of 255 at the input (the maximum) gives 2. 55V at the output. This is easy to work with and think about. Flexible input voltage: The digital inputs accept values of 0 to 0. 8V as "0", and 2 to 5V+ as "1", making them compatible with the 3. 3V digital outputs on the Raspberry Pi. Various GPIO pins on the Raspberry Pi are used to provide a number between 0 and 255 to the data input pins (1 through 7) on the DAC.
The power supply and ground for the DAC are provided by the 5V power and ground pins available on the Raspberry Pi GPIO header. The slightly odd seeming output configuration involving three Vout pins is actually just what is required for normal operation.
These three pins allow for alternate configurations where a non-standard output voltage range is required. See the AD577 documentation for more details. The CS (chip select) and CE (chip enable) pins on the AD557 warrant some explanation. The DAC will only change its output voltage when both of these pins are low (at ground). This means that you can ensure you have the right values set on the data pins before telling the AD557 to update the output to the next value, ensuring unintended changes in output voltage are avoided while a new value is being set on the inputs.
There are use cases that require both the CS and CE pins to be used which I won`t go in to here. Since we only need one of these pins here, CS is connected permanently to ground. CE is connected to a GPIO pin so we can control it from software running on the Raspberry Pi. The value on CE pin needs to be dropped from 1 to ground 0 for at least 225ns in order for the AD557 to update it`s output voltage to a new value. The 15K resistor is there to limit current. The Sifam audio level meter we`re using is current driven, and needs very little current at that. It will show 0 (where the meter goes in to the red) at around 300uA. At the maximum output voltage from the DAC (5V), a 15K resistor will ensure the meter gets around 333uA (5 / 15000) which puts the needle nicely just in to the red zone.
Note that although this meter is marked as a VU meter, we are in no way indicating a true VU reading. The VU term has a strict definition which we`re not trying to emulate in any real way here. I hope you`ve found this post interesting and/or educational. My wife and I are about to solder up the circuit and get it and the Pi in to some kind of box. I`ll certainly post some pictures of the result once that`s done.
The 8 microcomputer data operates with an 8-bit parallel output, while also accommodating serial input for D-A converters. Typically, data must be entered in two groups and processed as a whole. The requirements for data latching involve 16 straight odd...
This is the simplest VU meter that can be constructed. It is based on a single integrated circuit. A volume unit (VU) meter, or standard volume indicator, is a device used to display the level of any voltage signal source,...
A VU (Volume Unit) meter has traditionally been a key component of audio metering systems. The Peak Program Meter (PPM) is known for its inadequacy in accurately displaying peak signal levels. This circuit serves the same function as previously described....
The function of the sound level display circuit is to enhance the appearance of an amplifier circuit or a radio player. It provides an impressive visual representation of audio levels.
The sound level display circuit serves as a visual indicator of...
This simple VU meter can be utilized in a variety of projects. Since traditional electromagnetic VU meters are either no longer available or prohibitively expensive, this design employs the LM3914 integrated circuit and ten LEDs, allowing for versatile application in...
This is audio mixer circuit. The circuit is for one channel input, if you need, for example 5 channel mixer, then you need to build 5 similar circuits.
The audio mixer circuit described is designed to handle a single channel input....
The current sourcing and sinking capability of the I/O pins on the Raspberry Pi is limited. According to the Wiki page, the current limit for each I/O block (for example, GPIO0 through GPIO27 combined) is only 26 mA maximum, which...
This circuit of measurement of level uses the UAA180 of SIEMENS and a circuit of rectification of precision, round the IC2B. The calibration has become in steps 3db from the one Led in the other, ensuring, a very good rate...
This is a simple circuit diagram of a 5-LED audio VU meter utilizing the ICs KA2284 or KA2285. The KA2284 and KA2285 are monolithic integrated circuits designed as logarithmic display driver ICs. They serve as bar-type display drivers for 5-dot...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more