Hi people!
Can you please help me with the following problem:
I have an aperiodic square wave communication signal of 3.3V.
The signal has variable (and unknown) DC offset.
I would like to make a circuit that outputs the peak voltage of the signal at ANY given moment.
(For example, if the DC offset voltage is 2,2V, the peak of the square wave is 3,3 + 2,2 = 5,5V and the circuit should output 5,5V)
If the DC offset voltage changes to 1,1 the peak voltage of the square wave is 3,3 + 1,0 = 4,3V and the circuit should output 4,3V)
Any ideas how I might achieve this?
Preferably an analogue solution, the only thing I can come up with is:
a) Use an ADC to sample the voltage over a small timeframe
b) Use a microcontroller and code to find the highest voltage in that timeframe
c) Use a DAC to display the peak voltage
I'm sure someone out there has a more elegant solution
Regards,
Dollarday
Can you please help me with the following problem:
I have an aperiodic square wave communication signal of 3.3V.
The signal has variable (and unknown) DC offset.
I would like to make a circuit that outputs the peak voltage of the signal at ANY given moment.
(For example, if the DC offset voltage is 2,2V, the peak of the square wave is 3,3 + 2,2 = 5,5V and the circuit should output 5,5V)
If the DC offset voltage changes to 1,1 the peak voltage of the square wave is 3,3 + 1,0 = 4,3V and the circuit should output 4,3V)
Any ideas how I might achieve this?
Preferably an analogue solution, the only thing I can come up with is:
a) Use an ADC to sample the voltage over a small timeframe
b) Use a microcontroller and code to find the highest voltage in that timeframe
c) Use a DAC to display the peak voltage
I'm sure someone out there has a more elegant solution
Regards,
Dollarday