<I recommend looking at v2 or v3 with remote access.>Introduction
This project is my interpretation on a solution to help small shops reopen with social distancing measures by limiting the number of people allowed in the shop at one time. I will start by displaying the end vision of this project, before explaining the result I achieved and what to do to bridge between this and the final desired result. Finally, I will conclude on some interesting adaptions which could be added to really push the potential of this project.Vision
Looking at the image above, the shop assistant sets the number of people that can enter using the buttons above. This is the number of spaces left in the shop so it will decrease when someone enters and increase on their departure. If there is allowable space, the amber sign will display, indicating the customer must scan to enter using an ultrasonic sensor. Once scanned, the green 'enter' LEDs will light indicating they may enter. If there is still space in the shop, the amber sign will light again. If the limit has been reached, the red 'Queue' LEDs will light and stay lit until a person scans their exit or the maximum number of people allowed in is increased by the shop assistant. The ultrasonic sensors are face up to reduce accidental scans and have a distance limiting plate.
Proof of Concept
Flow diagram of LED and sensor operation.
I title this section 'proof of concept' as I do not have the parts to make it anything above that, so please allow your imagination to be on my side and keep the visionary image in mind when watching the video!Potential Future Adaptions
Currently the shop owner uses the buttons to change the maximum number of people allowed in the shop. An IoT solution would allow remote changing of this value.
Two communicating controllers could be used for shops which use a different path for exiting or entering.Final Comments
It would have been nice to make a neater finish with a box and all, but you have to make do with the components in hand. This was my first hackster.io project so I hope to improve from here.