• 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 98.1k 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.
  • C Offline
    Cato Module Developer @dmcinnes
    last edited by Sep 19, 2016, 8:54 PM

    @dmcinnes Would you mind share some code? :)

    D C 2 Replies Last reply Sep 19, 2016, 11:21 PM Reply Quote 0
    • D Offline
      dmcinnes Module Developer @Cato
      last edited by Sep 19, 2016, 11:21 PM

      @Cato just the regular PIR sensor mirror code works fine! The data pin triggers in the same way as a PIR sensor.

      1 Reply Last reply Reply Quote 0
      • C Offline
        cowboysdude Module Developer @Cato
        last edited by Sep 21, 2016, 12:09 PM

        @Cato said in PIR sensor behind glass?:

        @dmcinnes Would you mind share some code? :)

        https://github.com/cowboysdude/Pir-Sensor

        N 1 Reply Last reply Jan 20, 2017, 7:18 PM Reply Quote 1
        • ? Offline
          A Former User
          last edited by Oct 25, 2016, 2:50 PM

          hmm… some questions if you would not mind.

          Ive just ordered 2 sensors .

          I need to know what plugs in to what to feed in to the chips (im guessing the sensors i need? please explain what i am missing… and what connects in to the Raspberry PI.

          Also note the second i want to have outside the home and set up to a facial recog module, and comand it to open the door via face and voice confirm if possibl.

          And how this connects to the a

          D 1 Reply Last reply Oct 30, 2016, 8:18 PM Reply Quote 0
          • A Offline
            amcolash
            last edited by Oct 25, 2016, 11:39 PM

            If you want a very simple solution (independent of MM completely), check out this script. This is what I am using, it is a very simple python script that reads the value of a PIR and then selectively turns on / off the monitor. You will need to change things up a bit as I wrote it for a C.H.I.P. but the GPIO library is the same.

            C 1 Reply Last reply Nov 9, 2016, 12:41 PM Reply Quote 1
            • D Offline
              dmcinnes Module Developer @Guest
              last edited by Oct 30, 2016, 8:18 PM

              @wjdw87 cool! The connection is basicly the same as a PIR sensor. It has three wires, ground, vcc, and data which goes high when it senses motion. I plugged it into the PI’s 3.3v, ground and I believe gpio 22 (whichever is the default for the module).
              Since the wire comes out as a three pin JST I split it into individual header connectors because all the pins are not next to one another on the PI.

              Hope that helps!

              1 Reply Last reply Reply Quote 0
              • R Offline
                rvdgeer
                last edited by Nov 9, 2016, 10:27 AM

                Can anyone of you please share a picture of how you’ve connected the microwave sensor to the Pi pins?
                I know this sounds dumb, but I can’t seem to find out what pin connects to what, as I don’t know what pin is ground and what pins is (data) out…

                Thanks!

                C 1 Reply Last reply Jan 21, 2017, 5:26 AM Reply Quote 0
                • C Offline
                  cowboysdude Module Developer @amcolash
                  last edited by cowboysdude Nov 9, 2016, 12:41 PM Nov 9, 2016, 12:41 PM

                  @amcolash said in PIR sensor behind glass?:

                  If you want a very simple solution (independent of MM completely), check out this script. This is what I am using, it is a very simple python script that reads the value of a PIR and then selectively turns on / off the monitor. You will need to change things up a bit as I wrote it for a C.H.I.P. but the GPIO library is the same.

                  VERY good choice! Mine also works independent… but I really like your idea!

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    Nususu @cowboysdude
                    last edited by Jan 20, 2017, 7:18 PM

                    @cowboysdude I recently picked up these microwave sensor modules to use in conjunction with the code you posted for PIR Sensor. I’m pretty new to all this, and I can’t get any function out of the sensor. Do you have some advice on how to troubleshoot this? It could be an error on my part in implementing the code, wiring it incorrectly, or something else, but I’m just not sure how to figure out what the issue is.

                    C 1 Reply Last reply Jan 21, 2017, 5:24 AM Reply Quote 0
                    • C Offline
                      cowboysdude Module Developer @Nususu
                      last edited by Jan 21, 2017, 5:24 AM

                      @Nususu I would go online and lookup ‘wiring pir sensor raspberry pi’ there are TONS of things out there. Your issue could be one of any or a combination of things… I did that using a PIR sensor so I have no idea how it would act with microwave sensors… good I’m hoping because I want to get some… BUT let me know if you need anymore help, not that I helped you now but I will do what I can!

                      N 1 Reply Last reply Jan 21, 2017, 3:33 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 5 / 7
                      • 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