PIR sensor interface with Optocoupler + traic light on off control

Thread Starter

Qual

Joined Aug 5, 2016
48
Hi all,

I have rigged up circuit which turns on light using MOC3021 optocoupler and BT139 traic , reference circuit in image 1.
Now i want make light get on / off based on motion detected by PIR sensor.
Issue is though bulb glows but it doesn't get switch off or switch on based on motion
PIR sensor gives output 3.3V and i am feeding this voltage to optocoupler , is there anything i should modify or add ?
Pls suggest.
 

Attachments

Dodgydave

Joined Jun 22, 2012
11,307
You need to feed a DC supply to the Led in the Opto-coupler to make the light switch on. Can you post your pir circuit diagram, or model of pir sensor?
 

Dodgydave

Joined Jun 22, 2012
11,307
It won't work as the pir only gives out a 3.3V pulse and already has a 1K output resistor, so you need a slave NPN transistor like this.....


npn-switch-led.png
 

MaxHeadRoom

Joined Jul 18, 2013
28,702
Although it Will work, a better choice of opto for that application is a zero cross version, rather than the 3021 random phase switch.
Max.
 
Top