Code Monkey home page Code Monkey logo

foernuftig's Introduction

   


Foernuftig

Let's make the Ikea Foernuftig air filter a little smarter. Here is the matching completely over-engineered firmware.

prerequisite

ESP32 - Mini D1
StepDown +5V converter
Ikea Foernuftig
and a few wires

screenshot

Install

first step: program the esp32

Clone this repository and open it with platformIO. Remember, the SPIFF must also be flashed. On a terminal in vscode you can do it with

pio run -t uploadfs
pio run -t upload

After that, take a look at your monitorport ...

[I][wificlient.cpp:91] wificlient_Task(): Start Wifi-Client on Core: 1
[I][wificlient.cpp:108] wificlient_Task(): WiFi connection lost, restart ... 
[I][wificlient.cpp:398] wificlient_start_softAP(): starting Wifi-AP with SSID "foernuftig_d1fd28" / "foernuftig"
[I][wificlient.cpp:399] wificlient_start_softAP(): AP IP address: 192.168.4.1
[I][ntp.cpp:65] ntp_Task(): Start NTP Task on Core: 1
[I][mqttclient.cpp:267] mqtt_client_Task(): Start MQTT-Client on Core: 1
[I][webserver.cpp:56] asyncwebserver_Task(): Start Webserver on Core: 1
[I][callback.cpp:31] callback_print():  |
[I][callback.cpp:32] callback_print():  +--'mqtt client' ( 0x3ffb961c / 1 )
[I][callback.cpp:34] callback_print():  |  +--id:'foernuftig', event mask:0003, prio: 2, active: true
[I][callback.cpp:31] callback_print():  |
[I][callback.cpp:32] callback_print():  +--'webserver' ( 0x3ffb9670 / 8 )
[I][callback.cpp:34] callback_print():  |  +--id:'/foernuftig.htm', event mask:001f, prio: 2, active: true
[I][callback.cpp:34] callback_print():  |  +--id:'/button.htm', event mask:001f, prio: 2, active: true
[I][callback.cpp:34] callback_print():  |  +--id:'/index.htm', event mask:0007, prio: 1, active: true
[I][callback.cpp:34] callback_print():  |  +--id:'/wlan.htm', event mask:001f, prio: 3, active: true
[I][callback.cpp:34] callback_print():  |  +--id:'/update.htm', event mask:0007, prio: 3, active: true
[I][callback.cpp:34] callback_print():  |  +--id:'/info.htm', event mask:0007, prio: 3, active: true
[I][callback.cpp:34] callback_print():  |  +--id:'/ntp.htm', event mask:001f, prio: 2, active: true
[I][callback.cpp:34] callback_print():  |  +--id:'/mqttclient.htm', event mask:001f, prio: 2, active: true

When the output look like this, congratulation!

After the first start an access point will be opened with an unique name like

foernuftig_XXXXX

and an not so unique password

foernuftig

After that you can configure the foernuftig under the following IP-address with your favorite webbrowser

http://192.168.4.1

second step: pickup the pcb and wire up the StepDown converter and adjust them to +5V

step 1:remove the two cover screws
step 1:remove the two cover screws step 2:remove the cover plate
step 2:remove the cover plate step 3:remove the nut
step 3:remove the nut step 4:remove the two pcb screws
step 4:remove the two pcb screws step 5:remove the two connectirs
step 5:remove the two connectirs step 6:remove the controller IC
step 6:remove the controller IC
step 7:screenshot

step 8: connect the StepDown +5V converter to 24V and GND and adjust them to +5V

third step: wire up all the rest

signal description

  • supply: +24V power supply control for the fan. high mean on and low means off
  • CLK: fan control signal, PWM with 50/50 duty cycle, 100Hz means 100rpm
  • FG: fan feedback signal: PWM with 50/50 duty cycle, 100Hz means 100rpm
  • LED: status LED, currently not working. need resistor change
  • switch pin 0..3: switch pin, cycles from 0001 to 1000. 4 stages

+24V to +5V power supply

+24V ( PCB ) -> IN+ ( StepDown converter )
GND ( PCB ) -> IN- ( StepDown converter )

and

OUT+ ( StepDown converter ) -> VCC ( ESP32 )
OUT- ( StepDown converter ) -> GND ( ESP32 )

fan control

GPIO19 ( ESP32 ) -> supply ( IC U1 )
GPIO18 ( ESP32 ) -> CLK ( IC U1 )
GPIO33 ( ESP32 ) -> FG ( IC U1 )
GPIO35 ( ESP32 ) -> LED ( IC U1 )

4 stage switch

GPIO21 ( ESP32 ) -> switch pin 0 ( PCB )
GPIO22 ( ESP32 ) -> switch pin 1 ( PCB )
GPIO32 ( ESP32 ) -> switch pin 2 ( PCB )
GPIO25 ( ESP32 ) -> switch pin 3 ( PCB )

Reminder: All pins can also be changed later via web interface.

the result:

step 1

and build in

step 1

Contributors

Every Contribution to this repository is highly welcome! Don't fear to create pull requests which enhance or fix the project, you are going to help everybody.

If you want to donate to the author then you can buy me a coffee.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.