Re: using serial or parallel port for TTL input




<chad@xxxxxxxxxxxxxxxx> wrote in message
news:1132254545.707421.320160@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> HI,
>
> I would like to be able to use my PC to detect when a transistor is
> high. I have found several circuit designs on how to control a
> transistor from a serial or parallel port, but none for detecting the
> state of transistor.
>
> I want to build a laser beam break detector like this
> :http://repairfaq.ece.drexel.edu/sam/laserexp.htm#expbbd
>
> When the beam is broken, a transistor will be triggered and I would
> like the computer to sense when the line is high.
>
> Can this be done with a serial or parallel port?
>
> thanks
> chad
>

Yes, this can be done very easy with the parallel port. You can use any one
of the five status inputs on the connector. For example S3 (S7-S0 byte,
S0-S2 not accesable) is on pin 15. The pin is normally high. I suggest you
use an opti-isolation IC to interface the port, that way you will protect
the computer if something goes wrong in your circuit. Use an opto with an
NPN transistor output, such as the 4N28. Connect the transistor's collector
to pin 15, and the emitter to any one of the ground pins (18-25). The led
inside the opto can be connected to your monitored circuit. Now have your
software poll the port and do it's routine on the bit change.


.



Relevant Pages

  • Re: Analog output from a computers RS232 serial port
    ... > parallel port, you have done your own design in half way, use your own ... > transistor emitter and ground, connect the transistor collector to 5V ... > circuitry, the DC output voltage is from transistor emitter, the base ...
    (sci.electronics)
  • Re: How to connect this transistor NTE199?
    ... I have a project that uses transistor NTE199. ... How to connect this resistor to the transistor. ... If the circuit you're looking at specified that the transistor be a NTE199 unit, ... then connect the resistor to the center pin. ...
    (sci.electronics.design)
  • Re: using serial or parallel port for TTL input
    ... I have found several circuit designs on how to control a ... > transistor from a serial or parallel port, ... control external circuitry, as well as using these ports to monitor external ...
    (sci.electronics.design)
  • Re: using serial or parallel port for TTL input
    ... > transistor from a serial or parallel port, ... You could alternatively use a control input on the serial port, ... need a larger voltage swing for that (or may not - despite outputting ...
    (sci.electronics.design)
  • Re: Checking a BC548B NPN Transistor?
    ... conduct to 700mV so I presume that means pin 2 is the B. ... Just made the circuit and insert the transistor in the CBE position. ...
    (sci.electronics.basics)