MagicMirror Forum

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

    PIR Sensor doesnt detect movement

    Development
    3
    10
    157
    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.
    • 1
      1BlauNitrox last edited by 1BlauNitrox

      Hey guys,
      I am currently working on my Magic Mirror and want to add an PIR Sensor to it.
      I use the MMM-PIRModule to turn the monitor off and on.

      When I run the program by npm run start the mirror starts but the minotor instantly turns off and never on again. I dont`t know if the sensor is broken or if I just configured something wrong.

      The config looks like this:

      {
      	module: 'MMM-PIR-Sensor',
      	config: {
      		sensorPIN: 14,
      		powerSaving: true,
      		offDelay: 30000,
      	}
      }
      

      If you need more information tell me.

      T 1 Reply Last reply Reply Quote 0
      • T
        tanvir586 @1BlauNitrox last edited by

        @1BlauNitrox try pin 22 and use this configuration.

             	{
            		module: 'MMM-PIR-Sensor',
            		config: {
            			sensorPin: 22,
                                    powerSaving: true,
                                    powerSavingDelay: 30,
            		}
            	},
        
        1 1 Reply Last reply Reply Quote 0
        • 1
          1BlauNitrox @tanvir586 last edited by

          @tanvir586 Yeah, I worked. Thank you.

          But there is one issue. When the monitor turns off, there is a blue screen for about 5 seconds…
          How can I fix this?

          T 1 Reply Last reply Reply Quote 0
          • T
            tanvir586 @1BlauNitrox last edited by

            @1BlauNitrox I don’t think you can fix it. Looks like it’s monitor settings. After 30 seconds raspberry cut the hdmi power then your monitor should go to sleep straight away. But it’s delaying 5 ses. Try the monitor settings if you can find a option that goes to sleep straight away.

            S 1 2 Replies Last reply Reply Quote 0
            • S
              sdetweil @tanvir586 last edited by

              @tanvir586 my monitors (multiple brands) put up the no input panel for 15 minutes (the energystar spec defined timeout)
              not able to change it…

              Sam

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • 1
                1BlauNitrox @tanvir586 last edited by

                @tanvir586 I think every monitor has the same behaviour. When you cut the hdmi signal there will be a blue screen “No input signal”.

                T 1 Reply Last reply Reply Quote 0
                • T
                  tanvir586 @1BlauNitrox last edited by

                  @1BlauNitrox I used AOC monitor and it doesn’t do it. After hdmi power cut it shows no signal and go to sleep straight away. No blue screen.

                  S 1 2 Replies Last reply Reply Quote 0
                  • S
                    sdetweil @tanvir586 last edited by

                    @tanvir586 lucky… pre-energystar

                    Sam

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 0
                    • 1
                      1BlauNitrox @tanvir586 last edited by

                      @tanvir586 can you send me a link to your monitor?

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        tanvir586 @1BlauNitrox last edited by

                        @1BlauNitrox it’s 28 inch lcd monitor. Few years old. Don’t know the model

                        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