Optoisolator confusion - Arduino

Discussion in 'General Electronics Chat' started by deejayspinz, Jul 23, 2011.

Thread Status:
Not open for further replies.
  1. deejayspinz

    Thread Starter New Member

    Aug 3, 2009
    I am building a circuit that will work in a car. The intent is to have something on the car (12V) trigger on the Arduino input pin. I'm using the below circuit and have it working, but I am confused about something. I expected that with no signal on the 12V side, the Arduino input pin (connected to #5 below) would be Low (or near 0V). However, I get 5V on #5 until the 12V input is applied (then it drops to near 0v). Also note that I did not connect the ground between #2 and #4 (but have tried with and without and the result is the same). D2 (diode) is also not being used as this is a DC circuit. I can work around this in code by simply reversing what I am looking for (LOW), but thought that optoisolators worked by triggering the output when input voltage is applied - in this case it is opposite this? What am I missing? I am using a NTE3041 optoisolator (NPN based).

  2. Adjuster

    Well-Known Member

    Dec 26, 2010
    Your post will be closed, because you referred explicitly to this being a car project, which is barred from discussion on this forum. I can't therefore really discuss it, but perhaps some general remarks can be made about opto-couplers.

    An LED / photo-transistor opto-coupler provides an approximate current transfer, so that passing current in LED makes the photo-transistor capable of passing current.

    If an NPN photo-transistor is connected with its emitter to ground and its collector resistor via a pull-up resistor to a positive rail, then lighting the LED will pull the output down.
  3. bertus


    Apr 5, 2008

    I am closing this thread as it violates AAC policy and/or safety issues.

    6. Restricted topics. The following topics are regularly raised however are considered “off-topic” at all times and will results in Your thread being closed without question:

    • Any kind of over-unity devices and systems
    • Automotive modifications
    • Devices designed to electrocute or shock another person
    • LEDs to mains
    • Phone jammers
    • Rail guns and high-energy projectile devices
    • Transformer-less power supplies
    This comes from our Tos:
    Terms of Service
    There will be enough sites where automotive questions can be discussed :
    Member selected automotive forums

Thread Status:
Not open for further replies.