Team 8 Alternative Choices November 26 th , 2012
description
Transcript of Team 8 Alternative Choices November 26 th , 2012
Advisor: Prof. GongDepartment of Electrical and Computer Engineering
Team 8Alternative Choices
November 26th, 2012
Mid-course Design Review
Advisor: Prof. GongDepartment of Electrical and Computer Engineering
Vangjush DedoEE
Salvador RiveraEE
Lusheng TangEE
Stenli DukaCSE
Team Alternative Choices
Professor GongAdvisor
Advisor: Prof. GongDepartment of Electrical and Computer Engineering
Current Food Service• Slow and overcrowded
during peak hours• Safety hazard inside
facilities
Students have no way of knowing if a place is crowded or not
Inefficient use of school resources
Inefficient Food Service in US Campuses
Advisor: Prof. GongDepartment of Electrical and Computer Engineering
Requirements Analysis: Specifications
Real-Time measurement of number of people Facility specific information
Multiple entrances Compact design Information accessible online Updates every thirty seconds Detect multiple people leaving/entering
Advisor: Prof. GongDepartment of Electrical and Computer Engineering
Requirements Analysis: Inputs and Outputs
Input• Sensor data
Output• Current people count in a food facility• History of people count in a food facility• Expected amount of people in future• Offer nearby alternate locations with less people
Advisor: Prof. GongDepartment of Electrical and Computer Engineering
Our Solution: Block Diagram
Power Supply
Processing
Sensors
Database Modification
DB Connection
Data Collection
Data Storage
Real-Time Data
Future Prediction
Database Processing
History
User Interface
Wireless Transmission
Alternatives
Database
Advisor: Prof. GongDepartment of Electrical and Computer Engineering
Sensors
Requirement• Two sensors to proper count up/down• Availability: 200 ms• Continuous detection
Demonstrated• Sensors detect movement for count• Slow response in between detections
Advisor: Prof. GongDepartment of Electrical and Computer Engineering
Sensors Challenge
Primary requirement• Availability: 200 ms• In-lab value: 1 second• Not fast enough for our purpose
PIR Implementation• Unstable readings• Need 5V supply which Arduino
can’t output
Advisor: Prof. GongDepartment of Electrical and Computer Engineering
Power Constraints
Operating voltages• Arduino: 5V• Sensors: 5V-12V
Power supply • USB power from computer• Arduino outputs 5V
• Actual output: 4.3V• Not enough for sensors
• Additional 5V DC source needed
Advisor: Prof. GongDepartment of Electrical and Computer Engineering
Arduino Yun
Data• Counting based on direction/detection of sensor• Reset state if person turns back after first sensor• State machine determines action from sensor triggers
• Count up/down
Implementation• Arduino Yun
Advisor: Prof. GongDepartment of Electrical and Computer Engineering
Requirements• Occurs every 30 seconds• Connect to school Wi-Fi
Progress• Successful connection to WPA-PSK protected AP• Correct transmission to database every count change• Unable to use school Wi-Fi
• WPA2 Enterprise needed
Wireless Transmission
Advisor: Prof. GongDepartment of Electrical and Computer Engineering
Database
Requirements• Store people count every 30 seconds• Timestamp for each people count• Location for each people count
Progress• MongoDB database set up on
MongoHQ• Access using MongoHQ REST API• Successfully updated using Linux OS
(Linino) on Arduino Yun
Advisor: Prof. GongDepartment of Electrical and Computer Engineering
User Interface
Requirements• Easy to use• Deliver results
Real-Time Data- Alternative Choices- History
Progress• Website built
• Current count display• History count display
• Python using Flask framework• Currently hosted locally
Advisor: Prof. GongDepartment of Electrical and Computer Engineering
Demonstration of People Counting• PIR sensor data processed on Arduino Yun• Data wireless transmitted to database
Demonstration of User Interface• Interpret database
- Display real-time people count- Display history
Proposed MDR Deliverables
Advisor: Prof. GongDepartment of Electrical and Computer Engineering
Demo
Advisor: Prof. GongDepartment of Electrical and Computer Engineering
Upgrade to better sensors (Salvador)• Active sensing• Improved sensor availability: At least ½ second• Power supply
Wireless communication (Lusheng)• Connect to school Wi-Fi
Upgrade Arduino Yun processor (Vangjush)• Multiple sets (2) of sensor data handling• Multiple door monitoring
User Interface (Stenli)• Interpret data from multiple entrances of a building• Display of people count in multiple buildings
Looking Ahead: CDR
Advisor: Prof. GongDepartment of Electrical and Computer Engineering
Thank You