๐ AI Air Purifier Under โฌ25 ๐ค | No Cloud, No API, Learns Your Habits!
by TylerDDDD in Circuits > Arduino
144 Views, 0 Favorites, 0 Comments
๐ AI Air Purifier Under โฌ25 ๐ค | No Cloud, No API, Learns Your Habits!
๐จ A Smart Air Purifier That Thinks for You !
What if your air purifier could predict when you need clean airโฆ without sensors, without subscriptions, and without expensive hardware?
๐ Meet AirPurifierAI: A fully autonomous, AI-powered air purifier built on an ESP8266 that learns your daily habits.
๐ฅ Why You'll Love It
- ๐ค REAL Embedded AI (No API, No Internet)
- ๐ธ Ultra-budget: < โฌ25 total
- ๐ฟ Health-focused: cleaner air daily
- ๐ง Learns your routines automatically
- ๐ Fully automatic and autonomous system
- ๐ ๏ธ Easy DIY build
๐ก The Big Idea
Instead of:
- Timers โ
- Apps โ
- Cloud AI โ
You get:
โ A purifier that observes your behavior
โ Detects patterns (morning, winter, etc.)
โ Automatically turns ON at the right moment
๐ง How the AI Works (Simple + Powerful)
The system:
- Records when you press the button
- Stores time patterns
- Detects repetition
- Predicts future activation
๐ Example:
- You turn it on every day at 7:30
- โก๏ธ After a few days โ it starts automatically
๐ธ Cost Breakdown
Xiaomi filter: ~15โฌ
Electronics: ~10โฌ
TOTAL: < 25โฌ ๐คฏ
๐ Cheaper than ANY smart purifier on the market.
Supplies
Parts List. Youโll need:
- 3D printer.. or ask a friend or your school !!
- PLA filament. I like it black to look .. professional
- ESP WROOM Arduino board
- Push buttons. One only. I choosed yellow :)
- Relay module . At least 2 relays (on one card :) ) . Choose a 12V relay
- Power supply. This to bring power to the relay AND to the DC adaptor
- DC converter 12V to 5V. This to bring power to the Arduino
- Wires + breadboard or soldered PCB
- 12V Fan. With 2 pins. Simple fan
- Xiaomi air purifier filter
( Sponsored links :) )
โ๏ธ Wiring
๐ Pin Setup
D7 โ Button
D1 โ Eco
D2 โ Max
๐งฉ Connections
Button
D7 โ Signal
3.3V โ VCC
GND โ GND
Relays
Eco (D1)
IN1 โ D1
5V โ VCC
GND โ GND
Max (D2)
IN2 โ D2
5V โ VCC
GND โ GND
Fan
12V โ COM
NO โ Fan +
Eco โ Low
Max โ Full
Power
220V โ 12V
12V โ Fan
12V โ 5V โ ESP8266
โช Design rule
One relay at a time. Common ground everywhere.
๐ป Core Code Logic
Download the file AirPurifierAI.ino from GitHub : LINK
Important :
- Enter your WIFI identifier
- Enter your WIFI password
Install Arduino IDE on your laptop. Compile the ino file and upload it to your Arduino.
Main blocks:
- Button detection (D7)
- Relay control (D1 / D2)
- Mode switching
- Time tracking
- Pattern learning
๐ The AI part stores usage timestamps and detects repetition patterns.
Code below.
๐จ๏ธ 3D Case
๐ฅFollow the steps below.
- Download the file AirPurifier_Bottom.stl from GitHub and save it on your computer. LINK
- Install Ultimaker Cura from the official website.
- Open Cura and set up your 3D printer if itโs your first time.
- Import the STL file into Cura (drag and drop or โOpen Fileโ).
- Check the model orientation and scale on the build plate.
- Adjust print settings (e.g., 0.2 mm layer height, 15โ20% infill, PLA material).
- Enable supports or adhesion if needed.
- Click โSliceโ to generate the G-code file.
- Save the G-code to an SD card or send it directly to your printer.
- Start the print and monitor the first layers for proper adhesion.
๐ Final Result
The 3D print has one hole for the button and another for the ESP8266 display.
Assemble the components onto the 3D print, then place it on the filter and seal it. Thatโs it :)
โ๏ธ Features Overview
๐ Eco Mode
- Low power consumption
- Quiet operation
- Perfect for night use
๐จ Max Mode
- Full fan speed
- Rapid air cleaning
๐ค AI Mode (Game Changer)
- Learns your habits
- Predicts usage
- Fully autonomous
๐ฅ You built:
โ A smart air purifier
โ With embedded AI
โ Fully offline
โ Ultra low cost
๐ฅ Why This Project Is Different
Most devices:
- Require apps
- Send data to cloud
- Cost hundreds
๐ This one:
- Respects privacy
- Works alone
- Costs nothing
๐ฎ Next Upgrades
๐ Future improvements
- Add PM2.5 sensor
- Improve AI prediction
- Add local web dashboard
- Add silent night curve
Keywords
Air purifier, AI, Health, Arduino