QuickStrike said:Very concerned about this problem:
At Node A, I measure the amplitude of the square wave at 30-200 KHz and it is 5V, however when I pick up the frequency to 3MHz the amplitude goes down to 50mV and it looks like a triangle rather than a square wave.
Too high a frequency for the components you're using.
How can I keep the signal from loosing shape and amplitude at 3MHz or higher frequencies?
Use better components, it's hard to say if it's the IR LED or the photodiode, and it may well be both?.
I’m thinking maybe a transimpedance amplifier will probably work better since it will amplify the current to voltage rather than just using the voltage at A.
I don't see any relevence at all?.
Not too concerned about the following questions:
At C there is a DC offset and at D, the DC offset if even bigger, can this be solved?
Why should you want to?, it's a single ended driver, pulled up to 5V, it's supposed to be offset from zero - and what difference does it make?.
Also at C & D there is an overshoot when signal goes high and also when goes low, can this be solved?
I wouldn't have thought so, and again, what difference does it make?.
Note: I'm not using the same voltage comparator and mosfet shown below.