Nick Mulder
- Oct 13, 2005
- 43
- Joined
- Oct 13, 2005
- Messages
- 43
Hello,
Question simplified:
Say I had a 48Hz square wave whose high V value was modulated over time (see the black line in the first attached graphic) and I wanted to extract and output the curve of the modulation as a voltage (the red line)...
How would I go about this ?
Some thoughts that may or may not be helpful/relevant:
The signal I am after is a low frequency signal compared to the one 'carrying it' (not to be confused with PWM!) - I thought that by simply adding a steep low pass filter I might be able to get way with it. But there is the worst case scenario to think about which is represented in the second graphic, imagine the 'high signal' were to fluctuate between max and min values as it does in the green box area, without a very (?) steep LPF how can I save that output from the filter ? (a 24Hz signal)
I was thinking of a combination of a LPF to get rid of all the higher frequency harmonics of the square wave but combined with a high-Q band stop filter set at 48Hz ?
I don't know much about the electronics here - just talking in terms I've learned from synthesizers ///
Again, not getting confused with PWM but thinking about it in terms of duty cycle it would be an odd situation where a %50 cycle would give a constant voltage if the high value if the original square wave yet a %25 duty cycle (the worst case scenario) would give a 1/2 freq (sine?) wave whose range was equal to the high voltage of the original square wave. Yep, its what I want, but is this odd or what ?
(addendum: I am aware that the red line appears to be 'aware' of the future signal path of the square wave in the graphics, I mean this to be real time so its output would of course lag behind the square wave signal, its just clearer in the graphic to display it this way)
View attachment 41260
View attachment 41261
Question simplified:
Say I had a 48Hz square wave whose high V value was modulated over time (see the black line in the first attached graphic) and I wanted to extract and output the curve of the modulation as a voltage (the red line)...
How would I go about this ?
Some thoughts that may or may not be helpful/relevant:
The signal I am after is a low frequency signal compared to the one 'carrying it' (not to be confused with PWM!) - I thought that by simply adding a steep low pass filter I might be able to get way with it. But there is the worst case scenario to think about which is represented in the second graphic, imagine the 'high signal' were to fluctuate between max and min values as it does in the green box area, without a very (?) steep LPF how can I save that output from the filter ? (a 24Hz signal)
I was thinking of a combination of a LPF to get rid of all the higher frequency harmonics of the square wave but combined with a high-Q band stop filter set at 48Hz ?
I don't know much about the electronics here - just talking in terms I've learned from synthesizers ///
Again, not getting confused with PWM but thinking about it in terms of duty cycle it would be an odd situation where a %50 cycle would give a constant voltage if the high value if the original square wave yet a %25 duty cycle (the worst case scenario) would give a 1/2 freq (sine?) wave whose range was equal to the high voltage of the original square wave. Yep, its what I want, but is this odd or what ?
(addendum: I am aware that the red line appears to be 'aware' of the future signal path of the square wave in the graphics, I mean this to be real time so its output would of course lag behind the square wave signal, its just clearer in the graphic to display it this way)
View attachment 41260
View attachment 41261
Last edited by a moderator: