This is a project created in the lecture “Internet of Things Ecosystem” at the University Esslingen - University of Applied Sciences in the Winter Semester 2020/2021.
The IdeaBecause of Covid-19 stores in the whole world have restrictions of how many people may enter the shop. The idea was to create a system for stores to easily and efficiently count their customers. For that problem we created a prototype that counts customers and pushes the information to the cloud.
The SolutionWe are using ultrasonic sensors because they are cheap and are functioning up to a distance of 4 meters. It is essential to use two sensors, so that you can differentiate between people who are entering and exiting.
We attached these two ultrasonic sensors to a Particle Photon. The Photon is a Wi-Fi IoT device for creating connected projects and products for the Internet of Things. It is easy to use because of the Web IDE and it is connected to the particle cloud.
Connection with LosantFor the connection to the internet we used the particle cloud and the dashboard function of Losant. To publish a variable to the particle cloud we used Particle.publish. The function pushes the value out of the device if the variable "counter" is updated.
Particle.publish("counter", (String)counter);
To connect Losant with the particle you need to add your particle device in Losant and create the following workflow:
For more information use these links:
https://www.kevinsidwar.com/iot/2017/7/26/using-a-particle-variable-in-losant
https://www.losant.com/blog/how-to-integrate-particle-with-losant
If have the connection to your device you can now create a dashboard for your use.
Demo Video
Comments
Please log in or sign up to comment.