Inspiration
The current pandemic has made situation worse for many. We surely miss going to theatres ,Malls,Restaurants,Wedding halls (even hackathons). Now many countries are following post covid protocols where limited number of people are only allowed to participate in weddings etc.So I decided to create a hack based on this which is a device that notifies the organizer when the maximum guests limit allowed by the government is reached.
What it does
Count My Space is an IoT device that can be used for getting the data about the number of people inside a room/hall.There are 2 IR sensors connected to an arduino which will monitor the entry and exit of persons into the hall.This data will be available on a webpage for the organizer to monitor.If the number of participants exceeds a set limit then a SMS notification is send to user indicating the same.
How I built it
Hardware:
- Arduino Uno
- IR sensors
- Raspberry Pi
- Jumper Wires
- Breadboard
I've also created a webpage which lists the number of participants inside the room.I've used thingspeak api for providing the sensor data to the cloud.
Challenges I ran into
I did'nt have a wifi module which I planned to use initially.Finally I decided to use a raspberry pi and use it to update the values on thingspeak.I did'nt know what thingspeak was until doing this hack.Initially I created a json api for providing the participant count to the webpage,which did'nt work as expected.So I had to go with thingspeak api and it worked.!
Accomplishments that I'm proud of
- I was able to achieve the functionality for my hack as planned
- Understood the serial communication of data between a pi and arduino
- Stumbled upon fetching data from the api, thanks to mentor support got fixed.!
- Understood the pins of an IR sensor and its purpose.
What I learned
This hack made me explore many areas.I didn't know that we can connect a pi and arduino and transfer data.Learned about using fetch() even though I had very little experience with javascript.
What's next for Count My Space
- Device a plan for detecting when many persons enter together
- May be use a wifi module and make the device more compact

Log in or sign up for Devpost to join the conversation.