Re: Newbee: Optocoupler to BasicStamp
- From: "Ralph Mowery" <rmowery28146@xxxxxxxxxxxxx>
- Date: Fri, 07 Oct 2005 02:13:10 GMT
"Sam" <N@xxxxxxxxxx> wrote in message news:1128650145.897554@xxxxxxxxxx
> I just ordered some 4N28s. While I am waiting for them to arrive I thought
I
> would play around a bit.
> I just cracked open a mouse and removed the photo transistors, but cant
get
> the circuit to work.
>
> I have the center leg (base?) going to the input on my Stamp it is also
> pulled up by a 10K resistor.
> I have tried grounding both (not at the same time) other legs of the
photo
> transistor, straight to ground and also through various resistors.
>
> I cant get the Stamp to detect on/off states. Any suggestions on where my
> circuit went wrong?
Offhand I would say you leave the base open and connect the other two leads
to the Stamp. The collector (probably need a pullup resistor) goes to an
input and the emitter goes to the ground or common of the circuit.
The input to the base of a transistor is what normally turns it on. In the
case of a phototransistor the base is left open (in most cases) and its
input is the light (photons ?) .
.
- References:
- Newbee: Optocoupler to BasicStamp
- From: Sam
- Re: Newbee: Optocoupler to BasicStamp
- From: John Popelish
- Re: Newbee: Optocoupler to BasicStamp
- From: Sam
- Re: Newbee: Optocoupler to BasicStamp
- From: John Popelish
- Re: Newbee: Optocoupler to BasicStamp
- From: Sam
- Re: Newbee: Optocoupler to BasicStamp
- From: John Popelish
- Re: Newbee: Optocoupler to BasicStamp
- From: Sam
- Newbee: Optocoupler to BasicStamp
- Prev by Date: Re: Newbee: Optocoupler to BasicStamp
- Next by Date: Re: Newbee: Optocoupler to BasicStamp
- Previous by thread: Re: Newbee: Optocoupler to BasicStamp
- Next by thread: Re: Newbee: Optocoupler to BasicStamp
- Index(es):
Relevant Pages
|