MQ gas sensors, honestly lesson plan
Heaters, Rs/R0, calibration, cross sensitivity and alarms on the cheap MQ sensors, and why a hobby build never replaces a listed detector.
Objectives and materials
By the end, students can
- A heated tin dioxide film, its warm-up, and the ratio its chart is drawn in.
- Measure R0, and learn which gas a reading can and cannot name.
- Hysteresis, exposure over time, test buttons and faults, and what a listing means.
- A garage fume alarm that knows what it is not.
Materials for the whole unit
- Air quality sensor, MQ-135
- Arduino Uno R3
- Buzzer
- Carbon monoxide sensor, MQ-7
- Gas sensor, MQ-2
- LED
- Pushbutton
- Resistor
Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.
How the sensor works
A heated tin dioxide film, its warm-up, and the ratio its chart is drawn in.
| Lesson | Time | What students do |
|---|---|---|
| The heater and burn-inInside an MQ sensor is a heater and a film of tin dioxide. Watch a cold one read as gas, then settle, and learn why every gas sketch waits. | 45 min |
|
| Rs/R0 ratiosTurn AO into the element's resistance, then into the ratio the datasheet's chart is drawn in, then into parts per million. | 45 min |
|
Materials
- Arduino Uno R3
- Gas sensor, MQ-2
Check for understanding
Each student finishes "Rs/R0 ratios" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Use this sensor's R0".
Readings that mean something
Measure R0, and learn which gas a reading can and cannot name.
| Lesson | Time | What students do |
|---|---|---|
| Calibration in clean airR0 varies by a factor of two or more between sensors. Measure it in clean air, and see what trusting the datasheet's typical value costs. | 45 min |
|
| Cross sensitivityEvery MQ sensor answers to many gases and cannot say which one it smells. Fool all three sensors on the bench. | 45 min |
|
Materials
- Air quality sensor, MQ-135
- Arduino Uno R3
- Carbon monoxide sensor, MQ-7
- Gas sensor, MQ-2
Check for understanding
Each student finishes "Cross sensitivity" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "What a reading means".
Alarms, honestly
Hysteresis, exposure over time, test buttons and faults, and what a listing means.
| Lesson | Time | What students do |
|---|---|---|
| Alarms with hysteresisA reading that hovers near a threshold turns a simple alarm on and off all day. Two thresholds fix it. | 55 min |
|
| What a listed detector doesA CO alarm listed to UL 2034 decides by exposure over time, sounds a set pattern, tests itself and reports faults. Sketch the ideas, and learn why a sketch is never the alarm. | 55 min |
|
Materials
- Arduino Uno R3
- Buzzer
- Carbon monoxide sensor, MQ-7
- Pushbutton
Check for understanding
Each student finishes "What a listed detector does" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "A fault is not silence".
Boss
A garage fume alarm that knows what it is not.
| Lesson | Time | What students do |
|---|---|---|
| Boss: a garage fume alarmPut it together: warm-up lockout, calibration at boot, a fan on CO, a dose alarm, a fuel vapor alarm and a test button. A project that sits beside listed alarms, never in their place. | 65 min |
|
Materials
- Arduino Uno R3
- Buzzer
- Carbon monoxide sensor, MQ-7
- Gas sensor, MQ-2
- LED
- Pushbutton
- Resistor
Check for understanding
Each student finishes "Boss: a garage fume alarm" on their own, without opening the hints. The simulator checks 8 of its 8 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Where it sits".
Teach this unit as a class
Start a class from this course and its 7 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.
The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.