Controlling rotary solenoid using optocoupler

Discussion in 'General Electronics Chat' started by Xavier Pacheco Paulino, Mar 2, 2017.

  1. Xavier Pacheco Paulino

    Thread Starter Active Member

    Oct 21, 2015
    647
    68
    Hello,

    I have assembled the schematic attached below:
    [​IMG]

    I am using the exact components as shown. That is, an optocoupler omron EE-SH3 and a darlington TIP102. When the circuit has 5V at the input of the optocoupler, the solenoid gets energized. But this is not what I want. The desired operation is that when the optocoupler gets 5V at the input, I want the solenoid to be energized only when I put an object in the photomicrosensor. How can I achieve that? Seems like the circuit is doing the opposite.
     
  2. djsfantasi

    AAC Fanatic!

    Apr 11, 2010
    4,535
    1,682
    Undortunately, your schematic doesn't show. If you're having trouble inserting images, this link provides one way of successfully inserting a picture.
     
  3. Xavier Pacheco Paulino

    Thread Starter Active Member

    Oct 21, 2015
    647
    68
     
  4. Xavier Pacheco Paulino

    Thread Starter Active Member

    Oct 21, 2015
    647
    68
    Hi, can you see it now? If not, I will have to open a new thread since I can't edit it.
     
  5. crutschow

    Expert

    Mar 14, 2008
    21,688
    6,249
    Connect opto pin 4 to ground.
    Connect opto pin 5 to the transistor base.
    Connect a 3k resistor from the +24V to the transistor base.
    This will turn on the transistor when the opto is interrupted.
     
Loading...