I want to connect a 240V PIR motion detector directly to my Raspberry Pi 3.
Inside its plastic case I found 2 PCBs. One is the power supply board which has a 24VDC relay, a S9013 NPN transistor, some blue resistors, 2 small zener diodes and 1 bigger one, a big red film capacitor (CBB22/630V334J), a smaller one (CBB22/630V223J), a gray film capacitor (222/1200V), 4 1N4007 diodes, 2 electrolytic caps (220uF/35V, 100uF/25V), 1 small ceramic capacitor, 2 big gray resistors??? and 3 wires (RED, BLUE, BROWN). The other board contains the PIR sensor, a S9013 NPN transistor, a lot of blue resistors ??? , a UTC324D IC, 5 electrolytic caps (1uF/50v, 10uF/50V, 100uF/16v, 100uF/25V, 47uF/25V), 4 small ceramic capacitors, 3 zener diodes, 3 potentiometers for adjusting "SENS, TIME, LUX" and a photoresistor (which i removed for another purpose and I can't find it, but I think it works without it).
The board with the PIR sensor is connected to the power supply board with 3 wires. How i should connect these 3 wires to my Raspberry Pi 3 in order to get the PIR sensor working? Do i have to remove something from the PCB? Is it going to work on 3.3v as it is? The UTC324D datasheet says that it can work with supply voltages between 3-32VDC so this is not a problem.
If i can't connect it to my Raspberry Pi, can you tell me how I can make this work on 12v? I have seen a tutorial about wiring an external motion detector to 12v, but the author of the article had a 4 pin board and I don't know how to wire it.
Some photos: