• 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 won't wake up

Scheduled Pinned Locked Moved Troubleshooting
22 Posts 7 Posters 5.6k Views 7 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.
  • S Offline
    Sceetch @sdetweil
    last edited by Feb 21, 2021, 4:35 PM

    @sdetweil thx for your comment.

    I guess the sensor works.
    If i start this script, the sensor switch after 2 minutes off.
    If the sensor receives movements, the screen turn on, so i think it works. But i will test your script in the evening.

    If there is no movement registered from the sensor the screen switch on after 1 minute.

    I don’t understand why the countdown is 2 min? In the script the delay time is setted by 10 sec.

    And why the screen turns on after another one minute. If there is no signal from the sensor??

    S 1 Reply Last reply Feb 21, 2021, 5:18 PM Reply Quote 0
    • S Offline
      sdetweil @Sceetch
      last edited by Feb 21, 2021, 5:18 PM

      @sceetch the sensor must be detecting heat difference. its very sensitive. the dial .ust be set to about 2 minutes, since last movement…

      there is a jumper on some of the boards that changes how long it holds the signal active since movement.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S 1 Reply Last reply Feb 21, 2021, 8:38 PM Reply Quote 0
      • S Offline
        Sceetch @sdetweil
        last edited by Feb 21, 2021, 8:38 PM

        @sdetweil
        Hi sdetweil, this was a good hint. I think the problem are the adjustments of the sensor itselfs. the time values in my previous post changed now. But the problem still exists.

        The reason why the screen wake up without movement is, the overlapping of signals. there is one delay in the script, but also one of the Sensor. If the script turns off the screen and the sensor gives also a signal regarding the time delay a little later, the screen will turn on again. so my opinion.

        But what is now the best adjustment of it?
        is it possible to inactivate the time delay of the sensor itself?

        In what position is the jumper to be set?
        sensivity of it should be clear. thats a customized value for the different situations.

        S B 2 Replies Last reply Feb 21, 2021, 9:22 PM Reply Quote 0
        • S Offline
          sdetweil @Sceetch
          last edited by Feb 21, 2021, 9:22 PM

          @sceetch google to answer those questions

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • B Offline
            BravoOscar @Sceetch
            last edited by Feb 22, 2021, 9:51 AM

            @sceetch

            I just added a PIR sensor, and I have put jumper on “L” and the two potmeteres on low (clockwise) . This works fine.

            Here you have som more information on the PIR sensor.

            https://lastminuteengineers.com/pir-sensor-arduino-tutorial/

            I use this module:
            https://github.com/bugsounet/MMM-NewPIR
            In the config, I have chaged delay from delay: 2 * 60 * 1000 // 2min to delay: 10 * 60 * 1000 //10min

            1 Reply Last reply Reply Quote 0
            • J Offline
              jste84
              last edited by Feb 22, 2021, 4:49 PM

              I’m having a similar issue using Mmm-PIR-Sensor

              Using a pi 3b+ and it turns the screen off but not back on again…

              J 1 Reply Last reply Feb 22, 2021, 5:29 PM Reply Quote 0
              • J Offline
                jste84 @jste84
                last edited by Feb 22, 2021, 5:29 PM

                Having tested the commands it looks like
                sudo tvservice -p doesn’t work with my monitor. (-o works though which is strange?)

                Vcgencmd works perfectly though…

                Could this be a reason why it’s not working?

                S 1 Reply Last reply Feb 22, 2021, 7:01 PM Reply Quote 0
                • S Offline
                  sdetweil @jste84
                  last edited by Feb 22, 2021, 7:01 PM

                  @jste84 yes change the command the module uses

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  J 1 Reply Last reply Feb 22, 2021, 7:08 PM Reply Quote 0
                  • J Offline
                    jste84 @sdetweil
                    last edited by Feb 22, 2021, 7:08 PM

                    @sdetweil is it this line

                    sudo chmod u+s /opt/VC/bin/tvservice && sudo chmod u+s bin/chvt
                    

                    That I need to change? Would I just change TV service to vcgencmd

                    S 1 Reply Last reply Feb 22, 2021, 7:29 PM Reply Quote 0
                    • S Offline
                      sdetweil @jste84
                      last edited by Feb 22, 2021, 7:29 PM

                      @jste84 maybe. dont know. you could try

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        20/22
                        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