top of page

ASS GAS Sensor

supported by patrons:

So this is a bit of a weird one, I'm lactose intolerant. but during Christmas I always end up cheating a little, so I thought there must be some kind of air freshener that only goes off when the air quality goes down. and sadly there wasn't an all-in-one solution, so I had to make it myself.

I started off by researching what kind of gases are produced in the body,

hydrogen, carbon dioxide, methane, hydrogen sulphide, ammonia.

some of these are easily detectable with very cheap sensors like this

MQ2 Gas/Smoke Sensor

I grab the couple of other components,

D1 Mini microcontroller, a battery management system with a lithium cell battery, and a little off switch, and combined it all in a 3D printed casing.

And if all you need is a tracker for your flatulence, you can hook this up to home assistant with esphome and have a nice little graph on your dashboard. but the battery will only last a couple of hours.

But I wanted to mask the smell, so I picked up 2 air fresheners one for safety.

and proceeded to tear one of them to bits, leaving only the cartridge squeezing mechanism.

After which I added a motor driver a battery and a battery charger, with a wire coming off the motorway driver to the microcontroller. and by adding a couple of belt loops the whole thing was wearable.

Sadly it wasn't very practical sitting and laying down were uncomfortable, the sensor box itself was quite flat and not very noticeable the problem was with the freshness dispenser.

so with the second air freshener I took a bit of a different approach instead of ripping it apart,

I simply disabled the motion sensor with some Blu-Tack. and wired up a D1 mini to act as a button, as an added bonus the whole thing could be powered either by AA batteries or USB power supply but not at the same time. The whole thing tucked away very neatly at the back.

communication between the two was handled by home assistant, and a small automation in node red.

the code for this project is available on my github, consider checking out the YouTube video for this project till next time.

3 views0 comments

Recent Posts

See All
bottom of page