Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.15.0 is available! For more information about this release, check out this topic.

    PIR with a relay module

    Troubleshooting
    1
    1
    729
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MadScientist last edited by MadScientist

      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.

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Enjoying MagicMirror? Please consider a donation!
      MagicMirror created by Michael Teeuw.
      Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
      This forum is using NodeBB as its core | Contributors
      Contact | Privacy Policy