|PythonVersions| |PypiPackage| |Downloads|
pibooth-pir-sensor
is a plugin for the pibooth
_ application.
.. image:: https://raw.githubusercontent.com/DJ-Dingo/pibooth-pir-sensor/master/templates/pir-sensors.png :align: center :alt: PIR sensor
PIR sensor for Pibooth. :raw-html:<br />
It plays a random sound & turn on a light when there are motion. :raw-html:<br />
If someone activate the PIR-sensor, after a 2 minute countdown period has expired without any motion. :raw-html:<br />
That way it can turn on a light, and say "Hello, wanna take a photo" too a person if they walk by the Pibooth Selfiecam.
This is not a plugin yet, run it in the background.
Adds an PIR sensor to the pibooth
.. contents::
Hardware ^^^^^^^^
<br />
<br />
<br />
<br />
<br />
:: This is not a plugin yet, run it in the background.
:: How to Setup comming soon
.. image:: https://raw.githubusercontent.com/DJ-Dingo/pibooth-pir-sensor/master/templates/pir-sensor-info_.png :align: center :alt: PIR-sensor info
Most commen PIR-sensors hc-sr501, hc-sr505 Mini :raw-html:<br />
Here we use an hc-sr501, but it works with any PIR-sensor
Tricks
^^^^^^
Tricks to make PIR, less sensitive but still respond. There are 2 things you can do. :raw-html:<br />
First take off the Fresnel Lens "white plastic cover".
<br />
IMPORTANT, make shure the tin foil does not have contact with the circuit board... image:: https://raw.githubusercontent.com/DJ-Dingo/pibooth-pir-sensor/master/templates/pir-sensor-no-shield2.png :align: center :alt: PIR-sensor no shield
.. image:: https://github.com/DJ-Dingo/pibooth-pir-sensor/blob/master/templates/state-sequence-pir-sensor.png :align: center :alt: State sequence
Here is the diagram for hardware connections.
.. image:: https://github.com/DJ-Dingo/pibooth-pir-sensor/blob/master/templates/Pibooth-Pir-Sensor%20Sketch_2__bb.png :align: center :alt: PIR-sensor Electronic sketch
PIR - look at your PIR for correct details
Ferrite
^^^^^^^
To prevent false motion, you can use Ferrite etc a Clip On Soft Ferrite Ring around the 3 wire :raw-html:<br />
.. image:: https://github.com/DJ-Dingo/pibooth-pir-sensor/blob/master/templates/ferrite_pir.png :align: center :alt: PIR-sensor Wirring
Or you can solder a Ferrite 2810138-50r-10 or hf30acb321611-t between the wire from the GPIO and VCC on the PIR :raw-html:<br />
And again a Ferrite 2810138-50r-10 or hf30acb321611-t between the wire from the GPIO and OUT on the PIR.
.. image:: https://github.com/DJ-Dingo/pibooth-pir-sensor/blob/master/templates/ferrite_.png :align: center :alt: Ferrite-Info
.. --- Links ------------------------------------------------------------------
.. _pibooth
: https://pypi.org/project/pibooth
.. |PythonVersions| image:: https://img.shields.io/badge/python-2.7+ / 3.6+-red.svg :target: https://www.python.org/downloads :alt: Python 2.7+/3.6+