SmartHumanDetection is a Software, which detects if a human or a pet is in the Room.
This software is based on RIOT operating system (https://www.riot-os.org/),the main goal of the project is to control the functions of the house by using a microconrollers and sensors.
In order to achieve this we need to work by the IoT network, where the electronics devices (Arduino, Raspberry pi ) are goinig to be connected by wires and communicate by MQTT protocol.
Two main sensors are going to be needed to establish this:
Photodiode-Laser sensor: The principle is to detect any object enters the room, however to distinguish the humans from the pets, a specific hight must be chosen. Infrared sensor: This sensor is responsible for detecting the presence of the human, to decide which room to turn the light on (For example).
Hardware Components:
SAM R21 Xplained Pro Evaluation Kit
PIR Passive-infrared-sensor-motion-sensor
Software setup:
Workflow of the Human Detection System
How to setup up the Raspberry-Pi:
- You need to install the Lowpan interface and set it up. https://github.com/RIOT-Makers/wpan-raspbian/wiki/Create-a-generic-Raspbian-image-with-6LoWPAN-support
- You need to Install the usefull tools and packeges and configure Systemd lowan https://github.com/RIOT-Makers/wpan-raspbian/wiki/Spice-up-Raspbian-for-the-IoT
- You need set up your Raspberry-Pi as router https://github.com/RIOT-Makers/wpan-raspbian/wiki/Setup-native-6LoWPAN-router-using-Raspbian-and-RADVD
- Setup the mqtt-broker: https://github.com/RIOT-OS/RIOT/tree/master/examples/emcute_mqttsn
- You can now download the parser and unzip it. After you downloaded the parser you should edit the mqttsn.csv, config.csv and cayenne.csv. The Mqttsn.csv contains the internal Topic of your System and the channel of the cayenne-cloud. The Cayenne.csv contains the channel of the cayenne-cloud and the internal topic. The config.csv contains the account-date for the Cayenne cloud and the information of the broker.
- Now you can start the parser with parser Cayenne-Cloud-Password Broker-IP