![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 |
Components and supplies
About this project
Ever get into the situation when you are with a group of people and someone passes the gas so everyone is trying to find out who did it but suddenly everyone else starts to find (false) hints that it was you when it really wasn't but for some reason they collectively agree it was you?
This device can save you. "Human exhaust" has significant amounts of methane, so you can detect "human exhaust" my the MQ-4 (methane) sensor. The methane sensor is pretty easy to hook-up and code. There is a VCC pin, GND pin, and analog and digital output. For this you will have to use the analog output.
Displaying text on the OLED screen is not to difficult either. The circuit is simple. Same with the code. On the first row, it will say whether someone released or not. On the second row, it will say "Gas level:". On the last level it will say the level of methane.
I do not have a circuit diagram maker so here it is:
MQ-4Sensor:
VCC - 5 or 3.3 V
GND - GND
AO - A6
OLED:VCC - 5 or 3.3 V
GND - GND
SDA - SDA (on my board SDA is A4. Check the pinout for your board to see where SDA is)
SCL - SCL (on my board, it is A5, but this will for different boards)
NOTE:#define SCREEN_WIDTH
and #define SCREEN_HEIGHT
will differ based off what size your OLED is. For me, width is 128 pixels and height is 64 pixels.
Pass the device around. If it says "fart", they you found the culprit. If many people are getting that message, it is either that they all released or the methane is still in the air. If this is the case, find who has the highest methane signature.