Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oscilloscope - Signals distorted; #97

Open
geekyjoyce72 opened this issue Sep 1, 2018 · 6 comments · Fixed by #114
Open

Oscilloscope - Signals distorted; #97

geekyjoyce72 opened this issue Sep 1, 2018 · 6 comments · Fixed by #114
Labels
Milestone

Comments

@geekyjoyce72
Copy link

Actual Behaviour

Waveforms above 50 kHz appear distorted.

Expected Behaviour

Waveforms should appear as they are, as per specifications (there's no specification listed on the maximum frequency of the oscilloscope channels)

Steps to reproduce it

  1. Apply signal using external function generator to oscilloscope channel of PSLab; verify with external oscilloscope
  2. View signal in oscilloscope app; signal is distorted.
  3. Measure output of buffer amplifier at signal conditioning stage.

LogCat for the issue

Not applicable

Screenshots of the issue

Refer to attached video @ https://gofile.io/?c=FZKiRT

PSLab App Screenshot:
image

Op-amp output:

image

Would you like to work on the issue?

Am willing to help.

@naman653
Copy link
Member

I am unable to produce this graph. The video url is also not working. Will you please help ? I'm willing to work on the issue.

@geekyjoyce72
Copy link
Author

Hi.

I've checked the video link, it seems to be working. The set-up is as such:

  1. Set-up an external function generator to output a >=50 kHz square wave
  2. Verify signals on PSLab oscilloscope
  3. Measure and verify signals using external oscilloscope, after input op-amp.

Feel free to contact me if you need more assistance

@neel1998
Copy link
Member

neel1998 commented Jul 2, 2019

@geekyjoyce72 can you please check whether this issue still exist with latest changes. Thanks

@geekyjoyce72
Copy link
Author

Hello,

For the sake of being meticulous with testing, this is the output measured in the application.

Screenshot_2019-07-02-22-27-16-372_io pslab

This is an issue that is not at all possible to fix in software. The reason is that this is an issue on the hardware design side of things, namely, the analog front end.

This is the part of the circuit that I mentioned in the initial post:
cir

And this is the output of the op-amp, measured on a digital oscilloscope:
scope

The issue can be seen when the circuit is recreated and simulated in LTSpice:
sim

The op-amp is filtering out the higher frequency components of the signal, and as such, the square wave looks distorted. As you can see as per the simulation, the "cut-off" frequency of the circuit is around 216 kHz.

The components in that section of the circuit that are responsible for setting the "cut-off" frequency are R20 and C23.

This is the basic circuit of a op-amp low pass filter:
Lowpass

and the "cut-off" frequency is set by this formula: 1/2πCR1

I have filed this issue here as all the issues are being tracked here, as I am told. In the meantime, I am looking at redesigning and improving the overall hardware design.

@cweitat
Copy link
Contributor

cweitat commented Jul 18, 2019

@CloudyPadmal able to check this for the next version hardware?

@CloudyPadmal CloudyPadmal transferred this issue from fossasia/pslab-android Jul 23, 2019
@CloudyPadmal
Copy link
Contributor

Low pass filter capacitor will be replaced by C0603X508D4HACTU 0.5 pF capacitor increasing the cutoff frequency to 1.99~1.33 MHz considering +/-0.1 pF tolerance.

@CloudyPadmal CloudyPadmal added this to the Version 06 milestone May 18, 2020
@CloudyPadmal CloudyPadmal linked a pull request May 18, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants