Pir

javadoc

 

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

Arduino schéma ( you can also use an other compatible controler )

 

Result :

 

Examples:


#file : service/Pir.py edit raw
#########################################
# Pir.py
# description: PIR - Passive Infrared Sensor
# categories: sensor
# more info @: http://myrobotlab.org/service/Pir
#########################################

# start the service
pir = Runtime.start('pir','Pir')