The People Counter was designed with safety and practicality in mind. This product is designed for situations such as indoor events, classes, sheer curiosity, or to comply with Covid-19 safety regulations. It has the ability to count the number of people entering a room using a motion sensor, IR sensor, and a button. The expectation is that a person entering the desired room will be detected by the motion sensor which will tell the Particle Argon to prepare for counting. Next, the person will proceed to push the button at the entrance thus adding a plus one to the people counter. If the person does not press the button, they will still trigger an IR tripwire which will continue counting the person anyway. If both the button and IR sensor are tripped within a short time span the Particle Argon will recognize this and still only count one person.
VideoAboutThe device with the button and the motion sensor, which will be referred to as Device 1, keeps track of the number of button presses and the total number of people counted. The device with the IR sensor will be referred to as Device 2, and it keeps track of the total number of IR triggers.
When the motion sensor on Device 1 is triggered, it publishes an event with the state of the motion sensor to Device 2. This particular motion sensor can be configured to stay activated for anywhere from 5 seconds to 5 minutes before turning off. While the motion sensor is on, if the button on Device 1 is pressed, it counts a person, and if the IR sensor is triggered on Device 2, it publishes an event so Device 1 knows to count another person. Whenever a person is counted on either device, an LED light turns on as a physical indicator that the program is working properly.
ThingspeakIntegration
The number of people counted, button presses, and IR sensor triggers are tracked since the program started and is published to Thingspeak every minute.
The channel is publicly available at the link HERE.
Examples of the data graphing are shown below.
The Thingspeak is triggered by one event, "Count, " with three different fields in order to send the data to the three different graphs. The device with the IR sensor tracks the total number of IR triggers and publishes it every minute, The device with the button tracks the total number of button presses and people counted and sends it every minute, offset by 30 seconds from the other device. This timing is due to Thingspeak only receiving data every 15 seconds.
The Thingspeak webhook integration settings and the Thingspeak settings are displayed below.
Comments
Please log in or sign up to comment.