Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    Solved pir don't exit EXT-screen off

    EXT-Pir
    2
    5
    45
    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.
    • A
      arnoakavdb last edited by

      Hi,
      i’ve installed ext-screen to shut down screen after a while and ext-pir in addition.ext-screen work good but i can’t go back to screen on with pir module.i connect my pir module to 5v-gnd-gpio22.when i run raspi-gpio get gpio22 is always down even if i move in front of it.normal gpio must be down if nobody is detected and up is presence is detected am i right? i try to direct gpio22 to 5v and still down and don’t understand why…whta i’m missing?
      thanks in advance

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by

        hi,

        for testing:

        write a test.sh file in ~/

        for (( ; ; ))
        do
           raspi-gpio get 22
           sleep 0.5
        done
        

        execute it with:

        bash test.sh
        

        it will scan every 0.5 sec the state of your gpio 22

        if you will see level=0 -> it’s on rest
        if you will see level=1 -> it’s something detected

        in my case, i use gpio 14 and result is:

        GPIO 14: level=0 fsel=0 func=INPUT pull=NONE
        GPIO 14: level=0 fsel=0 func=INPUT pull=NONE
        GPIO 14: level=0 fsel=0 func=INPUT pull=NONE
        GPIO 14: level=1 fsel=0 func=INPUT pull=NONE
        GPIO 14: level=1 fsel=0 func=INPUT pull=NONE
        GPIO 14: level=1 fsel=0 func=INPUT pull=NONE
        GPIO 14: level=0 fsel=0 func=INPUT pull=NONE
        GPIO 14: level=0 fsel=0 func=INPUT pull=NONE
        GPIO 14: level=0 fsel=0 func=INPUT pull=NONE
        

        if level is always on 0:

        • maybe sensor is dead 😕
        • maybe you have make an mismake connexion (try another gpio)
        • verify GND/5v connexion
        1 Reply Last reply Reply Quote 0
        • A
          arnoakavdb last edited by

          ok i try and yes i think my sensor is dead must wait for an another one.thank you for your help

          1 Reply Last reply Reply Quote 0
          • A
            arnoakavdb last edited by

            i try my sensor with a multimeter and it work good i don’t understand why the 3,3v output don’t level my gpio to 1 so it won’t wake up the screen…

            1 Reply Last reply Reply Quote 0
            • A
              arnoakavdb last edited by

              finally i figure out by move the regulator of time and sensibily and now the pir level good the gpio

              1 Reply Last reply Reply Quote 0
              • Topic has been marked as solved  A arnoakavdb 
              • First post
                Last post
              Powered by NodeBB | @bugsounet ©2022