A Smarter DIY Air Filter

A vaguely perforated metal cylinder sits on a wooden box with a grey cylinder and LCD display atop it. There are holes in the top of the grey cylinder for air to flow through.

As predominantly indoor creatures, it’s important to maintain a healthy habitat for the hacker. [Kishan Pratap Singh] designed a clever solution in AirSense, an ESP32-powered air filter.

If you’re thinking of cleaning the air in your environment, you might also want to know some properties about the air coming out of the filter. AirSense measures PM2.5 dust concentration, Air Quality Index (AQI), temperature, humidity, and atmospheric pressure. The various sensors are mounted along the exhaust path of the filter, which lets your know what kind of air it’s pumping out.

The system drives a 150 mm exhaust fan mounted in a 3D printed cap that pulls air through a cylindrical Xiaomi HEPA filter inside a perforated metal trash can enclosure. The ESP32 and an LCD readout of the environmental data also live in the cap, giving the device a sleek look. While [Singh] chose to run the filter continuously, we wonder if it might be interesting to set it up to only filter the air if air quality drops below a certain level to conserve power, especially if you’re on a time-of-use power plan. That would require redesigning the sensor assembly (or running the unit in reverse), so maybe it’s over-complicating things?

We’ve seen the Xiaomi Air purifier filter mentioned before, but under the auspices of hacking it’s filter DRM, an open source air filter designed by [Naomi Wu], and even an ESP32 pressed into service to plug an air purifier into Home Assistant.

25 thoughts on “A Smarter DIY Air Filter

  1. Happy with my “intelligent” AliExpress filter, it also has a pm2.5 sensor, it connects to my home assistant sonic can monitor and control it from a distance and the whole device was cheaper than just a few parts of this DIY project

    1. Its also probally beaming a live feed direct from your house into a chineese AI bot while also scraping every account and password info that it happens to see on the network

      1. Even if that were true (which it sometimes is), it’s often cheaper to buy it for parts and rebuild it to fit your needs than it is to acquire the parts. Economies of scale can also be leveraged for individual use…

  2. Nice… One thing i would do is add a fine mesh screen inside the tube, then in the gap from that to your HEPA… Place in granules of activated charcoal to that gap…. I buy the granules in a container from the tropical fish man, The added charcoal cleans the air, like a NIOSH gas filter cartridge does on a face mask.

    The charcoal will work for ~3 months, 90 days… if you add it it will actually POLISH the air and get out even more contaminants. If you program the ESP32 to keep track of the days passage, you can even setup a monitor to track when you need to replace the granules….I do my HEPA annually, and i do the granules every 3 months like clockwork. I am sick and have to polish the nasty out of the air to stay healthy, this is how i do it…. A single container will do you for ~ 3 years of charcoal if you get the large 2 L container.

    If you get large granules that will not come out the holes you can skip the mesh part.

    This is the best way to remove chemicals from the air…. My fan has been running for over 9 years now and it is still a trooper. Nice look.

    1. The fan is rated for 300 cubic meter per hour. In reality, it’s probably half of that because of the filter’s dampening, but 150 cubic meter per hour is a large processed volume. If you live in a 100 sq m condo, with 2.5m ceiling height, this system is processing the whole volume in 1h40. This leads to another “issue” in the design, there’s no way the HEPA filter will keep filtering such a volume for long. It’ll saturate with dust in few hours (maybe days) and then be useless. It needs to be protected from the particules that could cover its hole size first, with a standard filter that will have to be washed often to work. So this gizmo isn’t actually doing what you’d expect it to do, there’s a reason air filters are made with multiple filtering layers.

        1. yeah if we’re going to be collecting data about this unit, the data i want is how much air actually moves through the filter. i have been under the impression that this sort of fan isn’t good at back pressure at all, but i’m not an expert. i would personally be drawn to a bathroom fart fan if i was designing something like this, which is a tiny squirrel cage fan in a cheap standardized size

      1. Yeah, but it’s going to do that no matter what… the telemetry is redundant. If anything you would want to know what the overall air quality is, not just what’s coming out of the filter. That tells you nothing about what you are actually breathing.

        1. Agreed that monitoring the air coming out of the filter is pointless. Unless you maybe suspect you were sold a fake HEPA filter, you should be able to assume the air coming out of the filter is clean. The real, more interesting question is: How dirty was the air before going thru the filter?

  3. Fan is not good for static pressure against HEPA.

    On amazon they sell water based filter, push the air over water and it captures particles.
    But needs frequent change.

  4. My choice of blower came from a Mazda rear air conditioner… If you run it on 5v it is barely audible and can move tons of air…

    Doing this project requires a squirrel cage fan for the best results…

    Blowers from cars are perfect for this application.

    1. For the price of the air filter used in this project you can buy a used Xiaomi Air Purifier 2 or 3 device, full and working, with ESP32. It makes zero sense to build your own.

      1. It makes zero sense to build your own.

        That applies to a lot of things that show up on Hackaday. There’s almost always a commercial offering that does the same thing, maybe even better.

        This is, however, HACKaday. Not BUYaday.

        It’s about folks making things , not folks ordering things from Amazon.

  5. we wonder if it might be interesting to set it up to only filter the air if air quality drops below a certain level
    Yes, but the sensor would need to be on the intake not the exhaust
    to conserve power
    No, a reasonable computer fan consumes very little power, and anyway your smart electronics may consume more than just running the fan on low.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.