Bangert 30 1619GJ Andijk
Bangert 30 1619GJ Andijk > RaspBerry Pi 433Mhz PIR Sensor

RaspBerry Pi 433Mhz PIR Sensor


PIR sensor 
   A passive infrared sensor 
   is an electronic sensor that measures infrared light radiating from objects in its field of view. 
   They are most often used in PIR-based motion detectors. 
Bron: Wikipedia



This one should be easy:
On alibaba / aliexpress the startprice at somthing like  4.50
Sends a 433Mhz signal when triggered
battery powered

Nice to trigger things in raspberry and domoticz
endless possibilities


ordered 2 and 2 and 2

Wait wait wait 
China is far away but verry Cheap

               Well thats verry fast this time

4 december 2018
recieved 2 and 2


RxB6 reciever i have now 
     verry expensive 2.50 euro ;-) but next day delivered
         with only 3 wires to pi gpio
         +3.3vdc data 0vdc_ground
         and 173mm solid 0.8mm2 copper wire antenna (piece off scrap wire)

rfsniffer uderstands all 2x2=4 sensors
Received 12103593
Received 14377

verry nice good value for money  5 euro a piece

now modify rfsniifer code to do something when code recieved


rfsniffer.cpp
          printf("Received %i", mySwitch.getReceivedValue() );
          if (mySwitch.getReceivedValue() == 12103593) {printf(" Kitchen\n");}
          if (mySwitch.getReceivedValue() == 15637657) {printf(" LivingRoom\n");}
          if (mySwitch.getReceivedValue() == 14377) {printf(" HallWay\n");}
          if (mySwitch.getReceivedValue() == 128553) {printf(" Garage\n");}



root@raspberrypi:/home/pi/433Utils/RPi_utils# ./RFSniffer
Received 14377 HallWay
Received 14377 HallWay
Received 14377 HallWay
Received 14377 HallWay
Received 14377 HallWay
Received 14377 HallWay
Received 14377 HallWay
Received 14377 HallWay
Received 14377 HallWay
Received 14377 HallWay
Received 14377 HallWay
Received 15637657 LivingRoom
Received 15637657 LivingRoom
Received 15637657 LivingRoom
Received 15637657 LivingRoom
Received 15637657 LivingRoom
Received 15637657 LivingRoom
Received 15637657 LivingRoom
Received 15637657 LivingRoom
Received 15637657 LivingRoom
Received 12103593 Kitchen
Received 12103593 Kitchen
Received 12103593 Kitchen
Received 12103593 Kitchen
Received 12103593 Kitchen
Received 12103593 Kitchen
Received 12103593 Kitchen
Received 12103593 Kitchen
Received 128553 Garage
Received 128553 Garage
Received 128553 Garage
Received 128553 Garage
Received 128553 Garage
Received 128553 Garage
Received 128553 Garage
Received 128553 Garage
Received 128553 Garage
Received 128553 Garage
Received 128553 Garage
Received 128553 Garage
Received 15637657 LivingRoom
Received 15637657 LivingRoom
Received 15637657 LivingRoom
Received 15637657 LivingRoom
Received 15637657 LivingRoom
Received 15637657 LivingRoom
Received 15637657 LivingRoom
Received 15637657 LivingRoom
Received 15637657 LivingRoom

not expected to revieve this well
now launch commands with it an log

can use codesend from rpiutils 
          to switch a 433mhz wall socket 
              to switch a light on in garage when garage is recieve
also handy for burglars then they have a light

          

rfsiffer modified 
 if recieved garare then verzenden.sh wich is a script that executes codesend her 20 times
problem is there has to be a delay otherwise recieve and transmit blur eachother
sleep3 is i think not a nice way to make a delay 
but for testing this works

pir detector activates doorbelsound wich is normally activated by buttonpress sender

      if (mySwitch.getReceivedValue() == 128553) {
               printf(" Garage\n"); //garage pir detector recieved
               sleep(3); 
               int status = system("./verzenden.sh 681396 20"); // transmit call to doorbel 20times 
          }
          printf("Received %i\n", mySwitch.getReceivedValue() );
        }




Today 8 12 18
  the last 2 are velivered
  this one includes batterys
  and this one has some jumpers inside

the only one where you can turn the red detector led off
  wich is nice to turn the led off
  the red licht is a bit annoying and i do not want a led

and the only one with a manual paper 
the box says S496 pir detector
   vsual exactly same as image on the top of this page
also perfect number recieve in rfsniffer 10x recieved when it detects something
Received 8210054
Received 8210054
Received 8210054
Received 10508934
Received 10508934
Received 10508934




smarthome bangert 30 andijk ;-)

Comments or GuestBook?



De hele dag met zijn cut achter de computer , Dan zou je denken dat je er toch weleens achter komt dat je meer als 2 wijsvingers hebt en dat als je die gebruikt dat het dan veel sneller gaat
Got your ip


Big thanks to BingBot, GoogleBot, YandexBot for being the best visitors to my sites ;-)

GuestBook