Fart Sensor From a Power Bank

by Laszlo_s Electronic Designs in Circuits > Gadgets

290 Views, 1 Favorites, 0 Comments

Fart Sensor From a Power Bank

Fart Sensor from a Power Bank

The idea of the fart detector came suddenly.

At work they asked me to design a gas detector range and after some tests I questioned myself "could I detect any gas? even fart?"

So I started investigate how to detect anus gas.

First I needed to know the composition of the "gas".

It turned out the anus gas is a mixture of several gases, but two gases are responsible for the odour, methane and hydrogen sulphide.

The methane sensing element is quite cheap but the hydrogen sulphide sensor is more expensive but the theory is the same, higher concentration is more smell.

There was nothing left but to put things together and create competition between the participants, so the "tool" is capable to save 4 scores and put them in descending order.

Supplies

20201220_095441.jpg

The main ingredients:

-PIC18F2620 microchip

-I2C OLED display

-Hydrogen Sulphide or Methane sensor

-18650 battery (to be mobile)

-Power bank shell

-Buzzer

-Buttons

fart sensor schematic.jpg
fart sensor PCB layout.jpg

I Designed the simplest schematic as possible.

The PCB layout was made by Easy-PC.

If you need the files, contact with me via my website and I'll send it to you.

I wrote the software for the microchip with MPLAB X in C language, and I choose the XC8 compiler.

Here is the code :