I am pulsing the VDD with 50% duty cycle at a frequency of 188 Hz (PWM). I get some weird spikes on my output TP3. Am I missing something about phototransistors?
I think that its not a spike, and because it is a photo transistor. The transistor is slow, after a spike, the photo transistor lowers the voltage/current. It is recommended to use a laser, just use a mosfet. Then connect it to a laser, and on the output, just put an led, right into a common transistor, (you might need an op amp to amplify the led signal)