Signal Rectification For Mixer VU Display

  • Thread starter Thread starter MathsDude69
  • Start date Start date
  • Tags Tags
    Signal
Click For Summary

Discussion Overview

The discussion revolves around the challenge of rectifying an AC audio signal for use with an ATmega328 microcontroller's ADC in a primitive audio mixer unit. Participants explore various methods to convert the AC waveform into a suitable format for the ADC, which requires a 0 to 5 Volt input range.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant notes the issue of the ADC sampling negative voltages due to the AC nature of the audio signal and suggests adjusting the amplitude and offset to fit the ADC's input range using opamp circuits.
  • Another participant introduces the concept of an "Envelope Follower" or a bridge rectifier with a capacitor filter to convert the AC signal into a slowly varying DC signal, mentioning the use of diodes and opamps to mitigate diode voltage drops.
  • A different participant suggests using an absolute value circuit, describing it as a non-linear op-amp circuit that functions like a full wave rectifier without the voltage loss associated with diodes.
  • Some participants question the necessity of using an ATmega chip for a VU meter, with one asking if the signal strength will be converted according to the Volume Units standard.
  • Links to external resources are provided by participants, suggesting potential solutions or additional information relevant to the problem.

Areas of Agreement / Disagreement

Participants express various approaches to the problem, with no consensus on a single solution. Multiple competing views and methods are presented, indicating an ongoing exploration of the topic.

Contextual Notes

Some suggestions depend on specific circuit designs or assumptions about the input signal's characteristics, such as its amplitude range and symmetry. The discussion does not resolve the mathematical or technical details of the proposed solutions.

MathsDude69
Messages
25
Reaction score
0
Hey Guys,

Im currently designing a primitive audio mixer unit using opamp circuits for simple filters/crossover networks. Prior to the signal being run through a power amp circuit I am looking to pass the signal to an ATmega328 MCU which has an ADC with a range from 0 to 5 Volts outputting to a digital range of 0 - 1023. This range is then remapped to fit the range 0 - 10 and the MCU outputs this visually to an 10 segement LED bargraph. The issue I am having is the the initial audio signal is an AC waveform. Thus half of the time the ADC would be sampling a negative voltage :-( Naturally if I bridge rectify this signal the magnitude of the waveform will be minus 2 diode potential barriers (-1.4 volts assuming silicon diodes are used) or even worse the magnitude of the original signal will be less than the forward voltage of the two diodes in which case no signal will pass. Does anyone know a solution to this problem??
 
Engineering news on Phys.org
MathsDude69 said:
Hey Guys,

Im currently designing a primitive audio mixer unit using opamp circuits for simple filters/crossover networks. Prior to the signal being run through a power amp circuit I am looking to pass the signal to an ATmega328 MCU which has an ADC with a range from 0 to 5 Volts outputting to a digital range of 0 - 1023. This range is then remapped to fit the range 0 - 10 and the MCU outputs this visually to an 10 segement LED bargraph. The issue I am having is the the initial audio signal is an AC waveform. Thus half of the time the ADC would be sampling a negative voltage :-( Naturally if I bridge rectify this signal the magnitude of the waveform will be minus 2 diode potential barriers (-1.4 volts assuming silicon diodes are used) or even worse the magnitude of the original signal will be less than the forward voltage of the two diodes in which case no signal will pass. Does anyone know a solution to this problem??

What is the amplitude range of the input signal? You say it is symmetric about 0V, so just adjust the amplitude and offset of the signal to match the 0-5V input range of the ADC. Amplitude and offset adjustments can be done with opamp circuits...
 
It's called an "Envelope Follower", or in simpler times a bridge rectifier with a capacitor filter. Basically you want to turn your AC into a slowly varying DC, just like a power-supply, usually using diodes. You can use an opamp to get around the .7v diode drop. I used to have a nice circuit someplace, but you should be able to find one online.

It seems a bit of an overkill to use an ATMEGA chip as a VU meter...but if you got them...
 
Good point about the VU meter -- Hey MathsDude, are you going to convert the signal strength into the LED bargraph display according to the Volume Units standard of VU meters?

http://en.wikipedia.org/wiki/VU_meter

.
 
Absolute value circuit is what you want. It is a non-linear op-amp circuit that works just like a full wave rectifier without the lost .7 volts. Google it and I'm sure you will come up with a schematic.
 
Maybe the AC-to-DC converter in figure 4 is a solution to OP's problem?

http://www.freeweb.hu/kredi/elek/telj/acdcpr.pdf
 
Last edited by a moderator:
Last edited by a moderator:

Similar threads

Replies
3
Views
5K
  • · Replies 6 ·
Replies
6
Views
5K
Replies
9
Views
4K
  • · Replies 13 ·
Replies
13
Views
3K
Replies
3
Views
1K
Replies
138
Views
26K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 35 ·
2
Replies
35
Views
5K
  • · Replies 6 ·
Replies
6
Views
7K
  • · Replies 1 ·
Replies
1
Views
7K