Shop OBEX P1 Docs P2 Docs Learn Events
How to tell if Transistor is open? — Parallax Forums

How to tell if Transistor is open?

bear_phillipsbear_phillips Posts: 14
edited 2005-01-31 19:52 in BASIC Stamp
Hi,

I am wanting to hook a BS2 to a sound trigger design I found (http://www.hiviz.com/tools/triggers/triggers2.htm). Is their a simple way for a BS2 to tell if a circuit is open or closed. Using my voltmeter I can tell when the circuit is open, but I don't know how to do the same thing with a stamp.

thanks
chad

Comments

  • NewzedNewzed Posts: 2,503
    edited 2005-01-31 17:38
    If your transistor if a 5 volt thing, you can run a line from the collector to an I/O pin via a 1K resistor.· Set the pin to input and then read its state.· if IN pin = 1 then the transistor is open.· If IN pin = 0 then the transistor is conducting.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Do you have a Stamp Tester?

    http://hometown.aol.com/newzed/index.html
    ·
  • nick bernardnick bernard Posts: 329
    edited 2005-01-31 19:52
    by the same token you could sample a higher voltage with a transistor

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    League Bowling.... it's not a sport, it's a way of life
Sign In or Register to comment.