Phase 1 – AntiSmokeX (prototype using Python and Arduino Uno R3)
AntiSmokeX is the first version of the project designed to detect cigarette and vape smoke in schools. The system combines Arduino Uno R3, MQ-2 smoke sensor, and Python programming, using the Firmata protocol to enable communication between the computer and the Arduino board.
- Main functions:
- Detect cigarette smoke and vape aerosol in indoor school environments
- Activate sound and light alarms when smoke is detected
- Display smoke level and detection time on a Python GUI (Tkinter)
- Send data to teacher’s email address
- Operation: Arduino sends analog data to Python via Firmata. When the smoke value exceeds the smoke_threshold_for_alarm, the red LED lights up and the buzzer beeps
- Testing results: The system successfully detected cigarette and vape smoke within 2-3 seconds at about 20 cm distance, with high accuracy and sensitivity
Phase 2 – ZeroSmokeX (upgraded with C++, Arduino Uno R4 WiFi, and web app)
ZeroSmokeX is a fully upgraded version written in C++ with HTML/CSS, running independently on the Arduino Uno R4 WiFi without needing a computer.
- Key Improvements:
- Replace MQ-2 with MQ-135 for better sensitivity and precision
- Integrate WiFi to allow standalone operation
- Add a real-time monitoring web interface accessible via PC or mobile
- Implement log storage (6 most recent alerts) with time stamps
- Impact: Assists teachers and administrators in monitoring student behavior, contributing to a smoke-free and healthier school environment
- Comparison with commercial products: Costs 50% less than other commercial devices in the market, while offering remote data logging and monitoring features they lack
Le Tuan Kiet
Rohan Barnwal
Alistair MacDonald