Open kkoks opened 4 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?
I repaired my humidifier this way and made a video about it. Turn on subtitles for English. https://www.youtube.com/watch?v=JudoDFqBNoU
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
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 "("
^ 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 "("
^ c:\Users\rsenin\Documents\Arduino\libraries\EEPROM/EEPROM.h:152:52: error: missing binary operator before token "("
I can't find how to fix it. Help me please.
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.