← All projects

Embedded · IoT

Lüxiu Qiankun

A five-sensor gas detection system that samples like a sentinel

STM32Sensor fusionLow powerEmbedded C
Role
Embedded software & mobile app
Timeline
2025 —
Place
Dalian, China
Outcome
2026 Innovation Competition University Silver; Dengpan Cup college 3rd Prize

A gas alarm that cries wolf is worse than no alarm at all.

Context

Low-cost gas detectors usually rely on a single metal-oxide sensor. They are affordable, but they drift with temperature and humidity, respond to many gases at once, and produce false alarms in kitchens, farms, and workshops. Professional multi-gas instruments solve some of this, but they are expensive and rarely networked.

Our project asked a narrower question: can a low-cost node stay awake long enough to catch an event, stay quiet enough to be trusted, and stay connected enough to be useful?

My role

I was responsible for the embedded C firmware and the mobile app / mini-program, and I handled a large part of component sourcing, assembly, and integration. The team was led by Deng Yongxin, with Xiong Zixuan and Tang Shuo; our advisor was Assoc. Prof. Wang Nan.

How it works

A sentinel–confirm sampling strategy

MQ135 runs as a low-cost sentinel at a fixed, low duty cycle. SGP30 and SHT35 sample slowly in the background to track eCO2, TVOC, temperature, and humidity. When MQ135 crosses a threshold, the node raises the sampling rate of the other sensors and brings in MQ136 (sulfur compounds) and MQ137 (ammonia) for confirmation. A fusion rule then decides whether the event is real, which gas family it resembles, and how urgent it is.

Low power as a first-class constraint

The firmware is built around a state machine — sleep, sense, confirm, alarm, report — with per-rail power switching and a conservative radio duty cycle. The design target was continuous monitoring on a battery, not a bench demo that needs a USB cable.

A complete node, not a breadboard

The hardware includes signal conditioning for the analog MQ sensors, a 5V/3.3V power architecture with PTC and TVS protection, an OLED display, a buzzer and RGB LED, an HC-08 Bluetooth module, and an ESP8266 Wi-Fi module. The phone app and mini-program show live values, history, and alarm state; the cloud path supports remote monitoring.

Outcomes

  • 2026 China International College Students' Innovation Competition — University Silver Award.
  • 22nd Dengpan Cup Innovation and Entrepreneurship Competition — School of Integrated Circuits 3rd Prize.
  • A working multi-sensor prototype with local display, sound/light alarm, Bluetooth, Wi-Fi, and a phone client.

What I learned

Embedded work is mostly interfaces. The sensor datasheet, the ADC reference, the power rail, the BLE stack, and the app's state model all have to agree, and the failure usually shows up somewhere else. I also learned to design the power budget before the enclosure, not after.

Credits

Team: Deng Yongxin (lead), Xiong Zixuan, Tang Shuo, Zhang Guangxuan; advisor: Assoc. Prof. Wang Nan, School of Integrated Circuits. The system design was collective; I owned the firmware, the phone client, and a large part of sourcing and integration.

5gas and environment sensors
2wireless modes
1low-power state machine
2competition awards