projects:lepi-lodowka
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
projects:lepi-lodowka [2019/05/28 01:28] – lepi | projects:lepi-lodowka [2019/07/01 18:31] – finish first draft lepi | ||
---|---|---|---|
Line 3: | Line 3: | ||
Project: Refrigerator esp8266 Repair | Project: Refrigerator esp8266 Repair | ||
- | The Story: I have a 10yr.old fridge at home which after removing it from the kitchen furniture slot for mould cleaning went berserk and started freezing everything - not only in the freezer part but also in the fridge part which resulted in tomatoes that you could drive a nail with. Though that's pretty cool, they' | + | The Story: I have a 10 yr.old fridge at home which after removing it from the kitchen furniture slot for mould cleaning went berserk and started freezing everything - not only in the freezer part but also in the fridge part which resulted in tomatoes that you could drive a nail with. Though that's pretty cool, they' |
- | So I localized the thermostat, it is an analogue unit with a 1,20m long capillary tube which is led from the thermostat compartment by some kind of a plastic/ | + | So I localized the thermostat |
- | To my surprise I had a new set of tomato hammers soon only it took longer than the previous time. After some thought, reading, inspecting and calling | + | To my surprise I had a new set of tomato hammers soon only it took longer than the previous time. After some thought, reading, inspecting and calling |
- | I decided that I am not gonna buy a new fridge no matter what I want to fix this one. So my friend at HS suggested to make my own thermostat with an MCU. I also decided, that I don't want to lead any extra cables across the seals, nor drill in the fridge (as it would result in leaks) or, Gods of Thunder and lambdas forbid, disassemble the fridge as for one it would take ages and secondly there would be little chance to reasemle | + | I decided that I am not gonna buy a new fridge no matter what - I want to fix this one. So my friend at HS suggested to make my own thermostat with an MCU. I also decided, that I don't want to lead any extra cables across the seals, nor drill in the fridge (as it would result in leaks) or, Gods of Thunder and lambdas forbid, disassemble the fridge as for one it would take ages and secondly there would be little chance to reasemble |
- | tbc… | + | The fridge has a compartment that has mains supply and a return cable for the compressor, two unshielded cables going into the fridge (originally for the light bulb) and a push-button that is triggered by closing the door. |
+ | |||
+ | So the way I devised is to have two MCU' | ||
+ | |||
+ | MCU called the " | ||
+ | |||
+ | MCU called the " | ||
+ | |||
+ | I also decided that I need OTA (Over The Air) firmware update to be able to better and develop this project without disconnecting everything every time I make a code change. | ||
+ | |||
+ | |||
+ | All of these conditions together with my HS friend' | ||
+ | |||
+ | Turned out doing REST wasn't as obvious as with Platformio framework, so I decided to do it with plain sockets. | ||
+ | |||
+ | Right now I'm at a phase, where everything works except for comunication between the two MCU's xD | ||
+ | |||
+ | As I used blocking sockets I think it strongly interferes with MicroPython' | ||
+ | |||
+ | ToDo: | ||
+ | |||
+ | 1) Change blocking sockets to non-blocking | ||
+ | 1.1) Possibly using Peter Hinch' | ||
+ | |||
+ | 2) Look for real OTA as webREPL is unfortunately not reliable without having access to the reset button and serial port (re-check after 1.1) as the problems might be generated by my blocking sockets |
projects/lepi-lodowka.txt · Last modified: 2019/07/01 19:44 by lepi