• 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.

Wifi isolation for pir sensor

Scheduled Pinned Locked Moved Hardware
7 Posts 2 Posters 3.2k Views 2 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.
  • V Offline
    vicdilou @johnnyboy
    last edited by Apr 14, 2017, 4:46 PM

    @johnnyboy the sensor will be about sixty centimeters of raspberry

    J 1 Reply Last reply Apr 14, 2017, 6:17 PM Reply Quote 0
    • J Offline
      johnnyboy @vicdilou
      last edited by johnnyboy Apr 14, 2017, 6:29 PM Apr 14, 2017, 6:17 PM

      This post is deleted!
      V 1 Reply Last reply Apr 14, 2017, 9:02 PM Reply Quote 0
      • V Offline
        vicdilou @johnnyboy
        last edited by vicdilou Apr 14, 2017, 9:03 PM Apr 14, 2017, 9:02 PM

        @johnnyboy I used several cables

        I have to put all the cables in the ferrite bead ?

        J 1 Reply Last reply Apr 14, 2017, 9:08 PM Reply Quote 0
        • J Offline
          johnnyboy @vicdilou
          last edited by johnnyboy Apr 14, 2017, 9:10 PM Apr 14, 2017, 9:08 PM

          This post is deleted!
          V 1 Reply Last reply Apr 14, 2017, 10:37 PM Reply Quote 0
          • V Offline
            vicdilou @johnnyboy
            last edited by Apr 14, 2017, 10:37 PM

            @johnnyboy There is no break in connection I think, I use this to test the sensor and it says always “Motion detected”.

            from gpiozero import MotionSensor
            import time
            
            pir = MotionSensor(4)
            
            while True: #repeat this forever
                if pir.motion_detected: # if motion is detected print the message
                    print("Motion detected!")
                if not pir.motion_detected: # if no motion is detected print the message
                    print("No motion detected!")
                time.sleep(1)
            
            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              7/7
              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