I am trying to turn on some LEDs with a Raspberry Pi using PIR.
I have purchased,
The PIR provided is slightly different to the one in the listing as it has four terminals.
For the sake of clarity, the markings in the photo read;
Output Input Load Power A N N L | | | |
What does the
A stand for and do? Is this the switched live? I guess the others are
I know that PIR hats which have been designed specifically for the Raspberry Pi do exist. While these are great for robots, they are not so suited for permanent in-ceiling installation. This is going in my ceiling, so I need a solution that looks OK.
- How can I take a signal from this PIR and safely put that into the Raspberry Pi?
- I understand that this PIR is expecting mains in and mains out, so should I used a relay between it and the Raspberry Pi?
- If so, which relay?
- How should I wire it?
- Can I put the input
Ldirectly into mains?
- Regarding the physical cable to use, can I run 2.5mm twin and earth to this PIR, or does it need something else? Four core?
- Have I purchased the wrong PIR and would a 12v PIR be better/easier?
I have only ever used the little relays for getting the Raspberry Pi to control mains devices, not getting mains devices to control the Raspberry Pi. Any explanation on the variables of relays would be tremendously appreciated.
PS Just to be clear, I am not asking for product recommendations, just how to get PIR into a Pi.