Hi everyone !. I was trying to hack buttons of this
rf remote for led stripsI opened the remote and found out the traces for the power button and soldered two wires to the pads on the remote's pcb.
I want to trigger the power button using ths
motion sensor module and an optoisolator . So i connected the pins of the remote button to the collector and emitter (minding the polarity ofc). And input to the opt-out of sensor using 120ohm resistor.
The problem is that the thing works perfectly for the first time after motion detection and then the the optoisolator stays high.
I tried using an Arduino (both mega and a nano), individualy the Arduino can control the remote using optoisolator just fine but when I try to get an input from the rcwl sensor to trigger the opto , the same problem appears again (the output to isolator get stuck on high after the initial motion detection event). I checked with the serial monitor for the sensor and is is working just fine.
I really want to know what is going wrong. Any help would be hugely appreciated.
Reference -
Block diagram attached.
Add/edit- the optocoupler(pc 817) is a simple transistor type and not a triac type. But it is behaving like a triac (by staying high even when input led shuts off)