Solved pir don't exit EXT-screen off
-
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 -
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 detectedin 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
- maybe sensor is dead
-
ok i try and yes i think my sensor is dead must wait for an another one.thank you for your help
-
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…
-
finally i figure out by move the regulator of time and sensibily and now the pir level good the gpio
-