Re: Newbee: Optocoupler to BasicStamp




"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 ?) .


.



Relevant Pages

  • Re: astable multivibrator issues - 2N3904s work, but not TIP31As
    ... the circuit would not oscillate unless I briefly disconnected then re- ... The main issue folks have is that they forget to bypass the power supply, ... As a side note, the easy way to build a square wave oscillator from a cmos 555 is to connect the output pin to a resistor, then connect the other side of the resistor to ground through a capacitor. ... For your application, you might use the discharge to directly drive one LED, and have the other LED driven by a power PMOS or PNP transistor. ...
    (sci.electronics.basics)
  • Re: Simple mosfet question
    ... describe the simple circuit and I think it will be clear: ... There is a 2N7000 N-ch mosfet transistor, ... a resistor, 10k, and the other side of the 10k resistor is tied to a ... Need to learn how to apply control theory in your embedded system? ...
    (sci.electronics.design)
  • Re: Help! Capacitive coupled transistor setup
    ... It is the reference circuit from Kodak for their CCD imaging sensors. ... with the emitter of each transistor and its corresponding ... resistor to the base of one of the transistors. ... end of the resistor to V high and observe the LEDS, ...
    (sci.electronics.design)
  • Re: discrete comparator
    ... >> in a circuit to limit the output of an antique generator. ... >> the value of the 470K hysteresis resistor is just a guess. ... >> from the collector to base of the PNP transistor. ... >> so it serves both current limiting and voltage regulation. ...
    (sci.electronics.design)
  • Re: build circuit
    ... >>I want to build a simple circuit that will turn off a 120 volt light ... 1Meg Ohm resistor ... Solder the 0.33uF capacitor between these leads. ... Connect the ground lead to ground (ie, the center pin of the LM7805, which is also connected to the - input of the wall adapter). ...
    (sci.electronics.basics)