BISS001 module
BISS001 - Micro Power PIR Motion Detector IC
- Input voltage: 3-5 V
- Hi: 0.7*Vdd = 0.7 * 5 V = 3.5 V
- Lo: 0.3*Vdd = 0.3 * 5 V = 1.5 V
HC-SR501 module
Technical data of the HC-SR501 Motion and Sensor Modules:
Input voltage: 4.5 V - 20 V
Digital output when motion is detected: 3.3 V (high)
Digital output with no movement on the HC-SR501: 0 V (low)
Working temperature in the environment: -15 � C to 70 � C
Delay Time 0.5 to 200 seconds
Angle of coverage: 100 �
Reach 5m - 7m
Size of the HC-SR501 motion:
Sensor Lens diameter: 23mm
Length: 24.03mm
Width: 32.34mm
Height (with lens): 24.66mm
Center screw hole spacing: 28 mm
Screw hole diameter: 2mm (M2)
Collect pir data using Linux gpio and send it to mqtt
both pots are all the way to the left (if jumper is on the left toword edge of board) to make minimal timeout
pir.shgpio-utils
gpio-utils exists on Raspberry Pi
#!/bin/sh -e
led=/sys/devices/platform/rpi_control_board/leds/d1/brightness
# pir sensor connceted to 5V, GPIO12, GND
sudo stdbuf -oL -eL gpio-event-mon -n gpiochip0 -o 12 -r -f | while read gpio event time dir edge ; do
case $dir in
rising)
echo -n "^"
echo 1 > $led
;;
falling)
echo -n "_"
echo 0 > $led
;;
*)
echo -n "?"
;;
esac
done
gpiod
alternative version using gpiod package available on sunxi
#!/bin/sh -e
led=/sys/class/leds/orangepi:red:status/brightness
# pir sensor connceted to 5V, PA6, GND
sudo stdbuf -oL -eL gpiomon 0 6 | while read event dir edge time ; do
echo "# $dir"
case $dir in
RISING)
echo -n "^"
echo 1 > $led
;;
FALLING)
echo -n "_"
echo 0 > $led
;;
*)
echo -n "?"
;;
esac
done
Updated by Dobrica Pavlinušić on Jan 16 3:13am
Posted by Dobrica Pavlinušić on Apr 27 3:07am
WB3-12 360 Degree Microwave Motion Detector Module 12V-35V
Features:
Working Voltage: 12V ~ 35V DC
Quiescent Current: <7mA
Output Type: Digital
Default Delay Time: 1S (1~120S adjustment delay, please explain in advance)
Sensing Distance: 5m ~ 8m (default setting 6 meters)
Detection Angle: 180� x 360�
Output Signal: 3.3V , Low: 0V
Pin Number: 3 Pins
Operating Temperature: -20�C ~ +80�C
Size: 17.5mm x 23mm / (round plate D25)
In my testing works on 5V, has 10s delay on trigger.
Updated by Dobrica Pavlinušić on Jan 3 9:21am
Posted by Dobrica Pavlinušić on Jan 3 9:03am
|
Weblog Navigation
Loading...
|