fakcior / xiaomi-humidifier-water-sensor

Xiaomi SmartMi Evaporative Humidifier water level sensor
32 stars 10 forks source link

Help me please. #1

Open kkoks opened 4 years ago

kkoks commented 4 years ago

Hi. I need help. I read the article, but I do not understand where to solder the sensor on the attiny85 Board. You can describe the connection diagram in more detail. I want to restore the water level sensor.

dlizak commented 3 years ago

@fakcior could you tell how exactly connect the Attiny85 to PCB? 5V and GND is obvious but where to solder TXD, TP and GND1?

PXL_20201222_052347485~2

yhunter-ru commented 3 years ago

I repaired my humidifier this way and made a video about it. Turn on subtitles for English. https://www.youtube.com/watch?v=JudoDFqBNoU

prj commented 2 years ago

For ATTiny85 you need a different project also. This one will not work. ATTiny85 (usually digispark is meant), has a lot of things connected to all of it's pins. It also does not have hardware serial comms.

Basically the only two pins that are completely free of any influence and can be used for the capacitive sensor are P0 and P2. P1 has a LED on it. But it can be used for software serial TXD (as a bonus you can see when communication starts happening).

P3 has a 1k5R pullup, a 3.6V zener and a 68R inline. P4 also has a 3.6V zener and a 68R inline. And P5 is connected to reset, so you can't use that at all.

I made a fork with modified code and instructions here: https://github.com/prj/xiaomi-humidifier-water-sensor-digispark

newhatka76 commented 1 year ago

For ATTiny85 you need a different project also. This one will not work. ATTiny85 (usually digispark is meant), has a lot of things connected to all of it's pins. It also does not have hardware serial comms.

Basically the only two pins that are completely free of any influence and can be used for the capacitive sensor are P0 and P2. P1 has a LED on it. But it can be used for software serial TXD (as a bonus you can see when communication starts happening).

P3 has a 1k5R pullup, a 3.6V zener and a 68R inline. P4 also has a 3.6V zener and a 68R inline. And P5 is connected to reset, so you can't use that at all.

I made a fork with modified code and instructions here: https://github.com/prj/xiaomi-humidifier-water-sensor-digispark

Hello! Issues are disabled in your project. Еhat's why i'm asking here. I have this error:

In file included from C:\Users\rsenin\Documents\Arduino\HumidifierSensor\HumidifierSensor.ino:3:0: c:\Users\rsenin\Documents\Arduino\libraries\EEPROM/EEPROM.h:29:44: error: missing binary operator before token "("

if defined(__has_include) && __has_include()

^ In file included from C:\Users\rsenin\Documents\Arduino\HumidifierSensor\HumidifierSensor.ino:3:0: c:\Users\rsenin\Documents\Arduino\libraries\EEPROM/EEPROM.h:142:52: error: missing binary operator before token "("

if defined(__has_include) && __has_include()

^ c:\Users\rsenin\Documents\Arduino\libraries\EEPROM/EEPROM.h:152:52: error: missing binary operator before token "("

if defined(__has_include) && __has_include()

I can't find how to fix it. Help me please.