• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

PIR Sensor turning display on/off over and over

Scheduled Pinned Locked Moved Unsolved Troubleshooting
29 Posts 13 Posters 19.9k Views 13 Watching
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.
  • J Offline
    Jay @deepshades
    last edited by Mar 10, 2017, 8:14 PM

    @deepshades
    Basically its just the standard PIR-Sensor shipped with female to female gpio connections (PIR-Sensor Amazon).

    D 1 Reply Last reply Mar 10, 2017, 8:34 PM Reply Quote 0
    • D Offline
      deepshades @Jay
      last edited by Mar 10, 2017, 8:34 PM

      @Jay

      Ok, so you just use a script to let the sensor deactivate the hdmi output?
      Could you tell me the steps to let all work together?

      J 1 Reply Last reply Mar 10, 2017, 9:03 PM Reply Quote 0
      • J Offline
        Jay @deepshades
        last edited by Mar 10, 2017, 9:03 PM

        @deepshades
        Well ok…
        step 1: get nodejs and npm --> sudo apt-get install nodejs then sudo apt-get install npm
        step 2: update + upgrade the pi --> sudo apt-get update then sudo apt-get dist-upgrade
        step 3: install MagicMirror --> as seen here MagicMirror Github Page
        step 4: connect the PIR-Sensor to your Pi --> ground to ground (e.g. Pin 6), VCC to 5V (e.g. Pin 2), Out to GPIO XX (e.g. Pin 16)
        step 5: check if PIR-Sensor works --> as seen at my script above (watch your connected GPIO pin, maybe change in script is required) --> some fiddling with sensitivity knobs here is needed
        step 6: install MMM-PIR --> MMM-PIR Github Page
        step 7: reboot and reinstall MagicMirror in MagicMirror directory --> cd MagicMirror and npm install

        this has worked for me…

        J 1 Reply Last reply Mar 10, 2017, 9:41 PM Reply Quote 1
        • J Offline
          johnnyboy @Jay
          last edited by johnnyboy Apr 28, 2017, 10:26 PM Mar 10, 2017, 9:41 PM

          This post is deleted!
          J 1 Reply Last reply Mar 10, 2017, 9:53 PM Reply Quote 0
          • J Offline
            Jay @johnnyboy
            last edited by Mar 10, 2017, 9:53 PM

            @johnnyboy

            The steps I described started after a succesfully installation of the operating system on the pi, so with no MagicMirror installed --> step 3 is the first time MM is installed.
            These are the steps which worked for me, somehow after the second install of the MagicMirror (step 7) the PIR worked --> this step could be obsolete for others, thats just what i did experience.

            J 1 Reply Last reply Mar 10, 2017, 10:02 PM Reply Quote 1
            • J Offline
              johnnyboy @Jay
              last edited by johnnyboy Apr 28, 2017, 10:26 PM Mar 10, 2017, 10:02 PM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • J Offline
                jproehl
                last edited by Apr 2, 2017, 6:44 AM

                Hi: I’m having the same problem with the PIR sensor module - when motion is detected the screen comes on for about 1 sec and then shuts off. It operates like that for a minute or so and then begins to not respond or responds intermittently to motion. I’ve added a magnet ring, updated the OS and the MMM-PIR module, but still have the same issues. Any ideas what I should check? Thx!

                E 1 Reply Last reply Apr 4, 2017, 11:01 PM Reply Quote 0
                • E Offline
                  elmerito25 @jproehl
                  last edited by Apr 4, 2017, 11:01 PM

                  @jproehl Does your PIR sensor has a sensitivity and time option? Try playing with it and see if it works. Also, feel free to post pix of the wiring connection so we can visually verify. I also play around with the GPIO pins. Hope this helps!

                  J 1 Reply Last reply Apr 5, 2017, 4:32 AM Reply Quote 0
                  • J Offline
                    jproehl @elmerito25
                    last edited by Apr 5, 2017, 4:32 AM

                    @elmerito25 Hi:

                    Thanks for the reply. The PIR has two rheostats labeled Sx and Tx, so which is which. I’m tempted to dispense with the PIR altogether and just use the monitor on/off switch to activate the display. But, I’ll mess with the PIR when I get a chance and see if I can get anywhere. Using Board numbering, the PIR has its VCC pin wired to pin 4, its ground pin wired to Pin 6 and its signal pin wired to Pin 7. I set the pin number in my config.js file to 4 (Board pin 7 is GPIO pin 4). Would there be any problem with this wiring?

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 3
                    • 3 / 3
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Sam, technical setup by Karsten.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy