0
\$\begingroup\$

I am putting together a PIR system and need a relay with 240V 13A, UK mains, input and a 3.3V output to go to a Raspberry Pi. The Raspberry Pi needs to listen for the presence of the mains PIR device. What type of relay do I need?

Just to be clear, I am not asking for any specific product recommendations, I just know nothing about relays so would appreciate a point in the right direction.

\$\endgroup\$
18
  • 3
    \$\begingroup\$ @Andyaka No, it's the other way around, OP needs to detect mains presence via GPIO. \$\endgroup\$
    – Justme
    Jul 29, 2021 at 12:18
  • 1
    \$\begingroup\$ Yes, it's a follow up of that question : electronics.stackexchange.com/questions/579364/… \$\endgroup\$
    – Blup1980
    Jul 29, 2021 at 12:19
  • 1
    \$\begingroup\$ If the PIR device uses a triac with RC snubber you may find that leakage through the snubber may tend to hold the relay on when the triac turns off. \$\endgroup\$
    – Transistor
    Jul 29, 2021 at 12:21
  • 1
    \$\begingroup\$ You'd not use a relay but an opto-isolator in that case. \$\endgroup\$
    – Andy aka
    Jul 29, 2021 at 12:21
  • 1
    \$\begingroup\$ Is this the type of thing I need? ebay.co.uk/itm/272619019157 \$\endgroup\$ Jul 29, 2021 at 12:36

1 Answer 1

1
\$\begingroup\$

You could get a relay with a 240V AC coil, and contacts that will work at a low DC voltage. Some relays may be unreliable when switching very low voltages and currents, because of the metals used on their contacts.

Alternatively, as mentioned in the comments, consider whether an opto-isolator would do the job better. You would need a small amount of circuitry to drive it from the mains.

\$\endgroup\$
1
  • \$\begingroup\$ I agree that an opto is a good technical choice. But given the technical knowledge of the OP. I strongly suggest that he doesn't design anything that will be in contact with the main. Instead he should use standard, approved and certified, out of the box equipment \$\endgroup\$
    – Blup1980
    Jul 30, 2021 at 7:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.