In this video you'll see how to build a simple gas detector using
an ESP8266 micro-controller and an MQ-2 flammable gas sensor.
This first circuit is layed out on a breadboard but a future video will
feature a more stable setup.
The software is written as an Arduino sketch. Several alarm threshold are coded
in based on different conditions.
As an extra there's also a DHT11 temperature and humidity sensor.
Part 2: • ESP8266 flammable gas alarm - part 2
Links
datasheet: https://datasheet.octopart.com/27930-...
get the PPM value: https://www.onetransistor.eu/2022/12/...
PPM value compensation: https://www.onetransistor.eu/2023/01/...
another way to get the PPM value: https://ai.thestempedia.com/docs/eviv...
KiCAD schematics: https://blog.franco.net.eu.org/post/e...
sketch (source code): https://blog.franco.net.eu.org/post/e...
CHAPTERS
0:00 Intro
0:13 Warmup phase
0:34 Sampling phase
0:57 Starting of the explanation of the display readings
2:03 MQ-2 sensor datasheet: brief explanation of the resistence and PPM values in the graph.
3:24 Gas tendency and other readings
4:09 Setting the potentiometer on the MQ-2 sensor to see the alarm in action
4:37 OLED display burn-in mitigations
4:57 Schematics
5:06 Outro
#circuit #breadboard #arduino #gasdetector #gasalarm #esp8266 #mq2 #dht11