Signal that is a sine wave plus an offset

Click For Summary

Discussion Overview

The discussion revolves around methods for measuring and processing a signal that consists of a sine wave combined with a DC offset. Participants explore various approaches to obtain a time average of the signal, considering both analog and digital techniques, and discuss the implications of each method in the context of low-frequency signals.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant suggests using a standard integrator with an op-amp and a leaky capacitor to achieve a time average of the input voltage, questioning if this method would provide an exponential dependence on the input signal's history.
  • Another participant proposes digitizing the signal for processing, noting the potential benefits of using a DAC for analog output after processing.
  • Concerns are raised about digital noise and other issues associated with digitization, with some participants expressing a preference for analog methods due to perceived simplicity and reliability.
  • A participant emphasizes the importance of ensuring that the RC time constant of a leaky integrator is significantly longer than the period of the signal being measured.
  • Suggestions are made to take multiple readings over a period to calculate a moving average of the DC value, with the idea that the AC component would average out over many readings.
  • There is a discussion about the potential awkwardness of digitizing a signal within an amplifier chain, with some participants considering the implications of active subtraction of the signal to enhance AC gain.
  • Another participant mentions that smaller capacitors could suffice for removing DC components while allowing AC to pass, suggesting that high input impedance circuits could be effective in this context.

Areas of Agreement / Disagreement

Participants express a mix of opinions regarding the best approach to process the signal, with some advocating for analog methods and others for digital solutions. No consensus is reached on the superiority of one method over the other, and multiple competing views remain throughout the discussion.

Contextual Notes

Participants highlight various assumptions regarding the signal characteristics, such as the low frequency and small amplitude of the sine wave, as well as the changing nature of the DC offset. The discussion includes considerations of noise, signal processing techniques, and the implications of using different types of components.

0xDEADBEEF
Messages
815
Reaction score
1
I have a signal that is a sine wave plus an offset. I would like to measure the dc component and possibly also subtract it from the signal later. The signal is very slow (10th of Herz) and the offset changes on the order of minutes.
I thought it should be possible to get a time average with an integrator, but the layouts that I find are all using periodic resets.
If I use the standard integrator with an opamp that has a capacitor as negative feed back, and I add a leak resistor over the capacitor, does this give me a time average of the input voltage with an exponential dependence on the history of the input signal? Are there better ways to do this?
 
Engineering news on Phys.org


Can you just digitize the signal and process the data? You could always use a DAC if you need an analog output waveform after processing...
 


berkeman said:
Can you just digitize the signal and process the data? You could always use a DAC if you need an analog output waveform after processing...

The sine signal is tiny and I use a lock in. Somehow I feel better with analog stuff (no digital noise, no clipping, no discretization error, no aliasing) especially since the task looks so simple.
 


You are correct. For a leaky integrator, make sure the RC time constant is at least several times longer than the period of the signal you are trying to measure.
 


0xDEADBEEF said:
The sine signal is tiny and I use a lock in. Somehow I feel better with analog stuff (no digital noise, no clipping, no discretization error, no aliasing) especially since the task looks so simple.

Analog electronics certainly has many advantages, but there are definitely cases where digital electronics works better and I suspect this is one example. If the frequencies are so low noise shouldn't be an issue because there is not need for a high speed ADC, i.e. no 10 MHz clock signals to worry about etc. A good benchtop multimeter (e.g. a 3440A) shouldn't cause any problem with noise as long as you buffer it with a good pre-amp.
 


You could use an A to D converter and take a series of readings over a period of 10 minutes or so. It should include several cycles of the input DC variations.

You could display a moving average of the DC value, by averaging every 10 readings or so and feeding this information to a computer.

If the AC component is very small then it should just average out over a large number of readings.

Then pause and calculate the long term average voltage.

If you save these values you could input them into a spreadsheet and display them graphically.
 


vk6kro said:
[...]
If you save these values you could input them into a spreadsheet and display them graphically.

I am thinking about subtracting the signal actively to run the ac stage at higher gain. The digitizing does lower the need for very large capacitors and such and dc offsets will probably be a pain, but digitizing a measured signal in the middle of an amplifier chain leaves an awkward feeling.
 


0xDEADBEEF said:
I am thinking about subtracting the signal actively to run the ac stage at higher gain. The digitizing does lower the need for very large capacitors and such and dc offsets will probably be a pain, but digitizing a measured signal in the middle of an amplifier chain leaves an awkward feeling.

I was thinking of suggesting that as well, so I'm glad you thought of it. You can digitize the full signal at the same time that you AC couple, amplify and digitize the small AC component. That would seem to give you the best overall information on the signal.
 


There is probably no need for the capacitors to be large.

The usual "voltage follower" unity gain Op amp circuit has a high input impedance and the RC time constants can be made such that capacitors like 0.1 uF will work OK to remove DC components but pass AC.
If you do this, you can have following stages operating at high gain and amplifying only AC.
 

Similar threads

Replies
19
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 7 ·
Replies
7
Views
22K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
104
Views
25K
  • · Replies 10 ·
Replies
10
Views
5K
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K