Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
2 Corrected spelling
| link

Using a MofsetMosfet correctly as a switch in this circuit and how to prevent it from "loading"? the circuit

1
source | link

Using a Mofset correctly as a switch in this circuit and how to prevent it from "loading"? the circuit

I have a staircase generator circuit with a Mosfet connected to capacitor 2. The input of the capacitor is connected to a comparator and I wish for the Mosfet to cutoff when the output of the comparator is high. The comparator is connected to a sine wave generator enter image description here The waveform I want to achieve is shown below. enter image description here I am having problems achieving this, when the Mosfet is disconnected as above, the wave form I get is this. enter image description here So the blue staircase wave is working as intended albeit no resetting. However the moment I connect it the staircase waveform is affected with some weird fluttering at the beginning and then it not resetting the staircase anyway enter image description here. I have confirmed that with a manual switch the staircase resets as needed however I cannot get the transistor to work as intended.

enter image description here