Human Presence Sensor Arduino
As it has four ir sensors it can be used to detect the motion of the ir object and the relative position where the ir object moves.
Human presence sensor arduino. Grove human presence sensor. Detect the presence of human. Uploading this code to our arduino and opening the serial monitor to a baud of. Download the grove human presence sensor library from github.
The sensor itself does not detect the presence of humans the sensor just detects the motion. Moreover it is composed of four quantum ir sensors and an integrated circuit ic for characteristic compensation so it can be used to detect the motion of the ir object and the relative position where the ir object moves. To get started go ahead and open up the example in file examples sparkfun ak9750 human presence sensor library example4 thresholdtests. Now you can find four demo in the arduino ide by click file examples grove human presence sensor library.
Refer to how to install library to install library for arduino. This library is compatible with all architectures so you should be able to use it on all. We use arduino or mcu to deduce the presence of humans basing on motion detection from the sensor according to the following rule. Library for the ak9753 pir human presence qwiic board an arduino library for the ak9753 4 channel pir sensor used for human movement and presence sensing author.
This library is compatible with all architectures so you should be able to use it on all the arduino boards. If motion is detected the humans are present. The grove human presence sensor can be used to detect the presence of the human body or any other infrared objects. Let s also connect the interrupt on our ak9753 to pin a3 on our arduino as this will read the status of the interrupt pin.
This example reads the raw uint16 t data of four ir sensors and print these raw data in the serial.