Created by Yugo Iwamoto, Sachin Bajpai, Sneha Shahane, and Nikita Umredkar
Due to rapid urbanization and population growth, there is a need for crowd management. Our prototype is a Crowd Detection System that uses multiple input sensors and gives an approximation of the crowd present in a given room. It uses a combination of inputs from an Ultrasonic, Motion, Temperature-Humidity, and Sound sensor. The process of measuring the crowd level and navigation is on an LCD screen on the WiO terminal. The output is provided on a circular LED. Depending on the values from the sensors, the level is determined, and it is scaled to light up the LEDs. Firstly, output the sound values, and then temp & hum values.
The system starts detecting motion and distance using the Motion and Ultrasonic sensors respectively. When motion is detected or the distance range changes, it initializes the Temperature-Humidity and Sound Sensors. The values from both sensors provide an approximation of the crowd present in a room by lighting up the corresponding number of LEDs. If the temperature-humidity and sound value are low, it indicates that there are few people present in the room; hence, less number of LEDs light up. As the crowd increases, there is a change in the temperature and humidity in the long term, and the sound level changes immediately. As those values increase, the number of LEDs that light up also increases.
List of Sensors
How To Build
Steps
Connect the Wio Terminal to the Battery.
Connect Circular LED to at the Wire_SCL.
Connect Ultrasonic Sensor at pin D4.
Connect Motion Sensor at pin D2.
Connect Temperature-Humidity Sensor at pin D0.
Connect Sound Sensor at pin A6.
Connect the entire set up to a power source.
Place the entire device in the 3D printed case and mount it on the wall.
How This Works
Once the connections are made, upload the code to the Wio Terminal.
Once code is uploaded it will wait for the Ultrasonic and Motion Sensors to detect and provide values.
While waiting for a reading from the Ultrasonic and Motion Sensor, the LCD screen of the Wio Terminal provides feedback.
The Temperature-Humidity and Sound Sensors get activated.
When a reading is received from the Temperature-Humidity and Sound Sensors the map function, maps the values.
Based on the mapped value the corresponding number of LEDs light up.
Higher the temperature, humidity and sound, more the number of LEDs that are lit up.
Annotated Code
Reading values from Ultrasonic and Motion Sensor
If Motion or Range is detected, it reads values from Sound and Temperature-Humidity Sensor
Map function to light LEDs