DJ-Dingo / pibooth-pir-sensor

PIR sensor for Pibooth. It plays a random sound & turn on an light when there are motion after a user-time without motion has expired.
1 stars 0 forks source link

.. role:: raw-html(raw) :format: html

pibooth-pir-sensor

|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::

Requirements

Hardware ^^^^^^^^

Install

:: This is not a plugin yet, run it in the background.

:: How to Setup comming soon

Configuration

.. 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".

  1. Take an old ball pen and use the plastic or rubber part by putting it over the PIR sensor, to make the PIR work more direct.
  2. Or fill the Fresnel Lens "white plastic cover" with some paper towel or tin foil, except for a small hole. :raw-html:<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

States description

.. image:: https://github.com/DJ-Dingo/pibooth-pir-sensor/blob/master/templates/state-sequence-pir-sensor.png :align: center :alt: State sequence

Circuit diagram

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

Wiring

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+