Voltage output from DAC module, Obtaining the Pk-Pk Value

In summary, the conversation discusses the use of a moving average filter to filter out noise from a signal. The output of this filter is then sent to a DAC module and the goal is to obtain and store the voltage peak-peak value of the filtered signal in an array. The best method for obtaining this value is dependent on the specific implementation of the moving average filter. Several suggestions are given, including using the RMS value and detecting peaks in the signal.
  • #1
zanner
6
0
I have a sine wave produced as an output, which varies. This sine wave has been filtered by a moving average filter. From this output, coming out of a DAC module, I need to obtain the the voltage peak-peak value and store it preferably in an array.
How can I do this?
More importantly how can I obtain my voltage peak-peak value?
 
Engineering news on Phys.org
  • #2
That depends entirely on how the moving average filter works . Can you tell us more?
 
  • #3
anorlunda said:
That depends entirely on how the moving average filter works . Can you tell us more?

The moving average filter is done via code. Essentially I am taking data points from the ADC module and storing these into an array. Each time I get a new data point the moving average is calculated. The calculated data is then passed onto the DAC module to deal with and output it.

Essentially this is being done to filter out noise.
 
  • #4
  • I'm confused. You have a signal that you filter and send to a DAC as an output. Then you want the peak value of the output to input again to store in an array.
  • The average of a sin over an integer number of cycles is zero by definition.
  • Despite the confusion I think RMS is your answer. Calculate the RMS of the sin and multiply by ##\sqrt 2## to get peak. Look up RMS on Wikipedia to see how to do that. Your sampling rate should be more than 10x the frequency of the sin.
 
  • #5
A moving average filter is a low pass filter. If the period over which the average is taken is small relative to the period of the sin wave then it will have little effect on the peak to peak value. At the other extreme (long averaging time) you get zero output as anorlunda says.

However all this appears irrelevant to your question which is...

I need to obtain the the voltage peak-peak value and store it preferably in an array.
How can I do this?
More importantly how can I obtain my voltage peak-peak value?

You could put the analogue output of the DAC through an ADC and use code to calculate and log the peak to peak value. Peaks can be detected by looking for the point at which the slope changes from positive to negative or negative to positive.

If you already have access to the digital data going to the DAC (eg all this is being done on one microprocessor) you could process that data to measure the peak to peak values avoiding the need for an ADC.
 

1. What is a DAC module?

A DAC (Digital-to-Analog Converter) module is a device that converts digital signals to analog signals, allowing digital systems to interface with analog components.

2. How do I obtain the Pk-Pk value from a DAC module?

The Pk-Pk (peak-to-peak) value can be obtained by measuring the difference between the highest and lowest voltage output from the DAC module.

3. What is the significance of the Pk-Pk value in a DAC module?

The Pk-Pk value represents the amplitude or strength of the analog signal produced by the DAC module. It is an important factor in determining the accuracy and quality of the output signal.

4. Can the Pk-Pk value be adjusted in a DAC module?

Yes, the Pk-Pk value can be adjusted by changing the digital input values to the DAC module. This can be done by programming the digital system connected to the DAC module.

5. Are there any factors that can affect the Pk-Pk value in a DAC module?

Yes, the Pk-Pk value can be affected by external factors such as noise, temperature, and power supply fluctuations. It can also be influenced by the resolution and accuracy of the DAC module itself.

Similar threads

  • Electrical Engineering
2
Replies
39
Views
2K
  • Electrical Engineering
Replies
10
Views
2K
  • Electrical Engineering
Replies
10
Views
1K
  • Electrical Engineering
Replies
15
Views
2K
Replies
5
Views
789
  • Electrical Engineering
Replies
28
Views
3K
Replies
1
Views
1K
Replies
8
Views
1K
  • Electrical Engineering
Replies
5
Views
1K
Replies
11
Views
2K
Back
Top