MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

PIR with a relay module

  • So, as in this thread I am trying to use a PIR sensor that powers off my screen via a relay. I’ve had no luck so far. The module MMM-PIR-sensor works nicely as it should, as long as I don’t use relayPIN in the config.js. I also tried doing that via external python scripts, but somehow the relay doesn’t get triggered. Well, it clicks extactly once and that’s it.

    Has anyone managed to use a PIR sensor with a relay on a Raspberry Pi 3 B? If so, how did you do that?

    Edit: Btw, gpio -g write 27 0 or gpio -g write 27 1 do absoloutly nothing. Wiringpi v 2.44 is installed.

Log in to reply