• 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 behind glass?

Scheduled Pinned Locked Moved Hardware
65 Posts 16 Posters 96.9k Views 19 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
    Nususu @cowboysdude
    last edited by Jan 21, 2017, 3:33 PM

    @cowboysdude thanks, I’ll check that out and let you know how it goes!

    1 Reply Last reply Reply Quote 1
    • N Offline
      Nususu @cowboysdude
      last edited by Jan 24, 2017, 8:54 PM

      @cowboysdude I got it working using this code:

      https://github.com/paviro/MMM-PIR-Sensor

      With this code, I’ve got a problem where the screen only stays on for about 1 second after motion detection. Now I need to modify the code somehow to allow me to tell the mirror to stay on for a set amount of time after detecting motion, i.e. only go dark once no motion has been detected for x seconds. Problem is I don’t know where to start with that. Will let you know if I figure anything out. Any ideas?

      C 1 Reply Last reply Jan 25, 2017, 12:31 PM Reply Quote 1
      • C Offline
        cowboysdude Module Developer @Nususu
        last edited by yawns Jan 25, 2017, 12:36 PM Jan 25, 2017, 12:31 PM

        @Nususu try adding the powerSaving to your config…

        {
                module: 'MMM-PIR-Sensor',
                config: {
                    powerSaving: false
                }
            }
        

        See what that does :) PLUS there’s also an adjustment on your PIR sensor itself… which one and I don’t know … do a google search for adjustments :)

        1 Reply Last reply Reply Quote 0
        • A Offline
          Aly
          last edited by Jan 27, 2017, 3:11 PM

          @Nususu - same here

          Perhaps, with a resistor?

          N 1 Reply Last reply Jan 27, 2017, 3:19 PM Reply Quote 0
          • N Offline
            Nususu @Aly
            last edited by Jan 27, 2017, 3:19 PM

            @Aly I found documentation for the sensor that a resistor would indeed solve the issue here. I can set the delay up to 200 seconds with a 250k resistor, so I ordered one and will report back how it went.

            1 Reply Last reply Reply Quote 0
            • A Offline
              Aly
              last edited by Jan 27, 2017, 3:27 PM

              @Nususu - great !!

              Can you post the doc. ?

              N 1 Reply Last reply Jan 27, 2017, 3:46 PM Reply Quote 0
              • N Offline
                Nususu @Aly
                last edited by Nususu Jan 27, 2017, 3:48 PM Jan 27, 2017, 3:46 PM

                @Aly I misspoke, shouldn’t have called it documentation. Rather, it was this picture:alt text

                Which appears to be a translation from the Chinese original picture.

                A 1 Reply Last reply Jan 27, 2017, 3:50 PM Reply Quote 1
                • A Offline
                  Aly @Nususu
                  last edited by Jan 27, 2017, 3:50 PM

                  @Nususu

                  so if we remove the R6 resistor the delay would be 30s ?

                  N 1 Reply Last reply Jan 27, 2017, 3:53 PM Reply Quote 0
                  • N Offline
                    Nususu @Aly
                    last edited by Nususu Jan 27, 2017, 3:54 PM Jan 27, 2017, 3:53 PM

                    @Aly yes, it would appear so. I just bought a soldering iron and resistors which arrive tomorrow so I’ll perform a couple tests: 1. Remove r6 and verify that it’s 30s. 2. Add 250k resistor and test duration.

                    A 1 Reply Last reply Jan 27, 2017, 3:59 PM Reply Quote 0
                    • A Offline
                      Aly @Nususu
                      last edited by Jan 27, 2017, 3:59 PM

                      @Nususu

                      Ok - thanks for your help! :)

                      I can/will test it on coming monday.

                      N 1 Reply Last reply Jan 29, 2017, 6:32 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 6 / 7
                      6 / 7
                      • First post
                        57/65
                        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