How is the phototransistor used in the circuit? If it comes to a point, sounds more like a sawtooth wave.Hi all,
Ive got a sqaure wave coming out of a phototransistor.
However the bottom of the wave isnt very good it curves into a point. How can i Fix this ?
Cheers
The phototransistor has the collected connected to 5v, and the emitter connected to 0v via a 1k resistorHow is the phototransistor used in the circuit? If it comes to a point, sounds more like a sawtooth wave.
Hi,Post the schematic.
Hi, ive posted the output. What your saying sounds like it might be right, But the output from the top of the wave is fine so there is enough darkness. Its when the wave goes down to the bottom that might mean theres not enough light ?.And please post either a scope shot or a sketch of the waveform. Depending on how the transistor is connected, the curve probably is caused by either not enough light to turn on all the way, or too much background light (not enough dark) to prevent turning off all the way.
ak
Hi,I tried to simulate your case using optocouplers. The transmission coefficient of the input current to the output is typically 100% -300%. The current is set resistor, 10kOhm par value. (Iin=(5V-Vled)/10kOhm=0.4mA Iout=4V/1kOhm=4mA ---A=10=1000%). Ie current is small, and most likely you are using the type of Darlington phototransistor. These transistors have a very high coefficient of transmission, but slowly off. Correct me if I'm wrong.