• 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 - put your mirror to sleep if not used

Scheduled Pinned Locked Moved System
utilitygpiomotion-sensorpower-saving
56 Posts 32 Posters 96.7k Views 47 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.
  • N Offline
    nemesismega @paviro
    last edited by Dec 19, 2016, 6:22 AM

    @paviro said in PIR-Sensor - put your mirror to sleep if not used:

    MMM-PIR-Sensor will monitor a connected PIR-sensor and putt your mirror to sleep if no one uses it either by disabling HDMI output or by turning of a relay.

    Developer note

    If you are a developer and want to pause your module while no one uses it (if it is processor intense), you can listen to the USER_PRESENCE broadcast. It will return true or false as its payload.

    will vga / dvi monitor work with this module?

    [card:paviro/MMM-PIR-Sensor]

    S 1 Reply Last reply Jan 22, 2017, 2:57 PM Reply Quote 0
    • T Offline
      Them Russians
      last edited by Jan 8, 2017, 9:23 PM

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • F Offline
        fox
        last edited by Jan 27, 2017, 6:31 PM

        i have bought a sensor.
        This is not a troubleshooting post. I want only know how to connect it.
        Please add this to the description.
        Three wires from the sensor and to which raspi port?

        Issues With MMM-WatchDog known?

        https://forum.magicmirror.builders/post/29827

        Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

        T 1 Reply Last reply Jan 28, 2017, 2:54 AM Reply Quote 0
        • T Offline
          Them Russians @fox
          last edited by Jan 28, 2017, 2:54 AM

          @fox pop the plastic dome off and you’ll see the labeling. I believe the middle pin is the digital output and the ground and 5V power are on the outside.

          F 1 Reply Last reply Jan 28, 2017, 6:18 PM Reply Quote 0
          • F Offline
            fox @Them Russians
            last edited by Jan 28, 2017, 6:18 PM

            @Them-Russians said in PIR-Sensor - put your mirror to sleep if not used:

            @fox pop the plastic dome off and you’ll see the labeling. I believe the middle pin is the digital output and the ground and 5V power are on the outside.

            The sensor is labeled. But on which pin on the raspi? Have i missed something in the module how-to?

            Issues With MMM-WatchDog known?

            https://forum.magicmirror.builders/post/29827

            Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

            T 1 Reply Last reply Jan 28, 2017, 9:10 PM Reply Quote 0
            • T Offline
              Them Russians @fox
              last edited by Jan 28, 2017, 9:10 PM

              @fox You define the pin in the config.js file.

              Make sure you sue the GPIO pin number, and not the generic pin number.

              For instance, in the pin diagram the pin 1 down from the top left is GPIO pin 2, but regular pin 3. In the config file, you would define it a SensorPIN = 2.

              F 1 Reply Last reply Jan 31, 2017, 7:03 PM Reply Quote 0
              • F Offline
                fox @Them Russians
                last edited by fox Jan 31, 2017, 9:09 PM Jan 31, 2017, 7:03 PM

                @Them-Russians said in PIR-Sensor - put your mirror to sleep if not used:

                @fox You define the pin in the config.js file.

                Make sure you sue the GPIO pin number, and not the generic pin number.

                For instance, in the pin diagram the pin 1 down from the top left is GPIO pin 2, but regular pin 3. In the config file, you would define it a SensorPIN = 2.

                Thank you very much. I understood.
                Does someone control this with a timeout? Or when switches the script the HDMI Port off? Perhaps some want x minutes to be shown?

                Edit. I am a noob. I just have to adjust the delay knob on the PIR-Sensor PCB :)

                Issues With MMM-WatchDog known?

                https://forum.magicmirror.builders/post/29827

                Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

                1 Reply Last reply Reply Quote 0
                • K Offline
                  krauthamer
                  last edited by Feb 2, 2017, 2:04 AM

                  Love this Module, thanks.

                  I’m a noob and looking for some assistance to add a delay to turn off the display. Ideally the display would turn off 30 seconds after the last detected movement. Any help would be greatly appreciated.

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    AAPS
                    last edited by AAPS Feb 9, 2017, 12:35 PM Feb 9, 2017, 12:32 PM

                    I originally wasn’t going to use this module, but it seems pretty cool, so I’ll try. I, however, have no clue how to physically connect the raspberry pi to the PIR sensor without a breadboard. I understand that I must specify the GPIO pins I connect to in the config file, but that will only help me if I figure out how to connect everything (soldering?). Could someone help me? I’m completely new to motion detection. :dizzy_face:

                    M 1 Reply Last reply Feb 9, 2017, 7:54 PM Reply Quote 0
                    • M Offline
                      Morningstar @AAPS
                      last edited by Morningstar Feb 9, 2017, 9:06 PM Feb 9, 2017, 7:54 PM

                      @AAPS
                      (Raspi 3)
                      Just connect the PIR sensor Pins with three of these connector cables (female on both sides) directly to the GPIO pins on the PI, without soldering.
                      alt text

                      You need to know the pin assignments of your PIR sensor. I used:
                      (4) +5V
                      (6) GND (ground)
                      (32) GPIO12
                      i think you can also use (15) instead of my (32) then you don’t need to change the pin in the config file.
                      alt text

                      Hope that helps.

                      A 1 Reply Last reply Feb 9, 2017, 11:43 PM Reply Quote 2
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 3 / 6
                      • 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