Cov txheej txheem:
- Khoom siv
- Kauj ruam 1: Kho vajtse
- Kauj Ruam 2: Kev Sib Tham rau Lub Tshuab Kas Fes Tswj Lub Rooj Tswjhwm Saib
- Kauj Ruam 3: Schematic ntawm ESP8266 Module
- Kauj ruam 4: Firmware/Configuration
Video: Ntse Tshuab Kas Fes - Ib feem ntawm SmartHome Ecosystem: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Hacked Coffee Machine, ua nws ib feem ntawm SmartHome EcosystemI muaj lub qub Delonghi Coffee Machine (DCM) (tsis yog kev txhawb nqa thiab xav kom nws "ntse". Tasmota firmware. DCM yog ua raws PIC microcontroller (uC); yog li, txhawm rau ua kom nws khiav los ntawm ESP8266 nrog Tasmota onboard Kuv tau tsim ib qho interface rau PIC uC hauv txoj hauv kev uas tsis cuam tshuam nws cov haujlwm ib txwm muaj. Qhov yooj yim tshaj yog ua raws cov nyees khawm. Kuv siv opto-couplers kom ntseeg tau tias ESP module tsis cuam tshuam DCM cov khoom siv hluav taws xob thiab kev ua haujlwm uC.
Khoom siv
ESP8266 Qauv
Kauj ruam 1: Kho vajtse
Soldered ib tug "ntse" module raws li ESP-12F ESP8266 module (saib duab). Koj kuj tseem tuaj yeem siv tus qauv sonoff tus qauv nyiag nws raws li kuv cov phiaj xwm. Kuv siv GPIO16, 14, thiab 12; lawv feem ntau tsis muaj dab tsi nyob rau hauv sonoff modules thiab koj yuav xav tau tsuas yog cov xov hlau txuas kom sib haum ESP8266 pins. Txawm li cas los xij, kuv lub hom phiaj yog kom tsis txhob siv kev xa rov qab. Yog li, kuv xa mus rau optocoupler-based interface.
Kauj Ruam 2: Kev Sib Tham rau Lub Tshuab Kas Fes Tswj Lub Rooj Tswjhwm Saib
Txhawm rau tswj DCM, ESP module cuam tshuam rau ob lub ntsiab lus tseem ceeb: "Fais Fab On/Off" thiab "Make a Cup of Coffee". Kuv tau muab cov xov hlau txuas rau txhua tus khawm 'hu rau ntawm lub rooj tswj hwm (saib cov duab, 2xGray xaim rau txhua lub pob). Lub Rooj Tswjhwm Saib tau npog los ntawm cov kua nplaum kub los tiv thaiv nws los ntawm ya raws, yog li kuv yaj nws los ntawm cov hlau txuas ntawm qhov kub ntawm ~ 120*C, tom qab ntawd txuas cov xov hlau thiab txuas cov neeg sib txuas thiab cov xov tooj rov qab. ntawm cov duab), mus rau ib qho ntawm ntau daim duab loj ntawm pawg tswj hwm. Pom/txheeb xyuas nws los ntawm ntau lub ntsuas.
Kauj Ruam 3: Schematic ntawm ESP8266 Module
Opto-khub niam txiv (saib schematic) txuas nrog ua ke rau cov nyees khawm nrog 1k tam sim no txwv kev tiv thaiv. Ib lub pob feem ntau rub mus rau lub npav zoo los ntawm rub tawm tus neeg tawm tsam. Txhawm rau txuas opto-coupler hauv txoj kev raug, koj yuav tsum pom "qhov kawg zoo" ntawm lub pob; uas tuaj yeem ua tiav los ntawm ntau lub ntsuas los ntsuas qhov ntsuas hluav taws xob ntawm txhua lub xaim thiab GND. Ib tus neeg sau ntawm opto-khub kom txuas nrog cov hlau zoo los ntawm 1k resistor. Emitter - mus rau xaim thib ob (uas feem ntau txuas nrog GND).
Cov hlau liab ntawm cov duab txuas nrog +5V lub npav (rau lwm lub hom phiaj, tsis siv rau ESP module, tsis hais txog ntawm kab ntawv no).
Txhawm rau lub zog ESP8266 Kuv siv lub siab 5V 1A lub zog xa khoom. Ib qho DCM fais fab mov uas twb muaj lawm yuav tsis txaus los khiav ESP tus qauv uas tuaj yeem haus tau txog li 800mA hauv cov duab. Yog li, nws zoo dua/ruaj khov/nyab xeeb dua los teeb tsa 5V cov khoom siv tshwj xeeb. Koj tuaj yeem siv lub xov tooj qub 1A them nyiaj, txuas nrog cov xov hlau tseem ceeb sab hauv DCM.
EasyEDA txuas rau schematic:
Kauj ruam 4: Firmware/Configuration
Tasmota nrog cov teeb tsa hauv qab no:
1. Teeb tsa ob qho "kev xa tawm", cov lus qhia rau DCM "Npaj-rau-brew-kas fes" teeb liab thiab teeb tsa ESP8266 tsim-hauv LED raws li hauv qab no:
- GPIO2 LED1i
- GPIO16 Relay 1 - kom ua raws li lub zog "ON/Off" khawm
- GPIO14 Relay 2 - ua raws li "Ua khob khob kas fes" khawm
-
GPIO13 Hloov 3 - cov tswv yim rau lub khob muaj lub teeb liab los ntawm lub khob infrared muaj lub teeb
- GPIO12 Hloov 4 - Npaj teeb liab los ntawm DCM (tseem tsis tau siv los ntawm Tasmota)
2. Ua raws li kev nias luv ntawm lub pob Kuv siv BLINK cov yam ntxwv ntawm Tasmota; teeb tsa Blink los ntawm cov lus txib hauv qab no hauv Tasmota Console:
- Lub sijhawm ntsais muag 3 - txhais tau tias lub sijhawm ntsais ntawm 0.3 sec - kom ua raws lub laub luv ntawm lub pob
- Blinkcount 1 - tsuas yog nias ib zaug ntawm lub pob xwb
- Pw tsaug zog 250 - kom txuag hluav taws xob
3. Txhawm rau "nias" cov nyees khawm kuv siv cov lus txib hauv qab no (raws li luv hauv kuv lub xov tooj ntse):
- https:// cm? cmnd = Power1%20blink // rau "Hwj chim ON/Off" khawm
- 192.168.1.120/cm?cmnd=Event%20Brew // txheeb xyuas yog tias khob nws nyob hauv qhov chaw thiab ua "Power2 Blink"
4. Ntxiv rau Cup Presence module (khaws "daim ntawv muaj" qauv los ntawm lub tshuab luam ntawv qub). Yog li, kas fes yuav tsis brewed yog tias lub khob tsis nyob hauv qhov chaw:
Muab tus nqi VAR1 xws li 1 lossis 0, nyob ntawm lub khob muaj:
Rule3 ON Switch3#state = 1 DO VAR1 1 ENDON ON Switch3#state = 0 DO VAR1 0 ENDON // teeb tsa VAR1 tus nqi // ua tiav cov lus hais brew, nyob ntawm VAR1 tus nqi:
Rule2 ON Event#brew DO IF (VAR1 == 1) Power2 Blink ENDIF ENDON // yog CUP nyob hauv qhov chaw -> Brew kas fes
Ua haujlwm zoo li ntxim nyiam!
Txoj kev kuv tau ua nws tuaj yeem siv nrog lwm lub qub tab sis tseem ntseeg tau cov tshuab thiab cov cuab yeej, txwv los ntawm koj lub tswv yim nkaus xwb!
EasyEDA txuas rau schematic:
Pom zoo:
Kas Fes Tshuab Tracker Nrog Raspberry Pi thiab Google Ntawv: 5 Kauj Ruam
Coffee Machine Tracker Nrog Raspberry Pi thiab Google Sheets: Cov lus qhia no yuav qhia koj yuav ua li cas tsim Raspberry Pi-based tracker rau kev sib koom ua ke tshuab kas fes hauv koj qhov chaw ua haujlwm. Siv lub tracker OLED zaub thiab cov khoom siv hloov pauv, cov neeg siv tuaj yeem nkag mus rau lawv cov kas fes noj, pom lawv qhov sib npaug thiab
Ntse Kas Fes Tshuab Twj Tswj los ntawm Raspberry Pi & HC-SR04 Ultrasonic Sensor thiab Cloud4RPi: 6 Cov Kauj Ruam
Ntse Lub Tshuab Kas Fes Twj Tswj los ntawm Raspberry Pi & HC-SR04 Ultrasonic Sensor thiab Cloud4RPi: Hauv txoj kev xav, txhua lub sijhawm koj mus rau lub tshuab kas fes rau koj lub khob thaum sawv ntxov, tsuas muaj sijhawm ib-hauv-nees nkaum koj yuav tau ntim cov dej. tank. Hauv kev xyaum, txawm li cas los xij, nws zoo li lub tshuab pom qee txoj hauv kev ib txwm ua txoj haujlwm no rau koj. Qhov
IoT Enabled Kas Fes Tshuab: 9 Kauj Ruam (nrog Duab)
IoT Enabled Coffee Machine: Cov lus qhia no tau nkag mus rau hauv IoT kev sib tw - Yog tias koj nyiam nws, thov pov npav rau nws! kom siv nws li cas.Kuv tau
Kawm Qib Kuaj Cov Duab Ntsuas Hluav Taws Xob rau Kas Fes Roasters: 13 Cov Kauj Ruam (nrog Duab)
Kev Kawm Qib Khov Infrared Analyzer rau Kas Fes Roasters: Taw QhiaCoffee yog cov dej haus haus thoob ntiaj teb rau nws qhov kev nkag siab thiab ua haujlwm tau zoo. Kas fes saj, tsw qab, caffeine thiab cov ntsiab lus tiv thaiv kab mob tsuas yog qee qhov zoo uas ua rau kev lag luam kas fes muaj kev vam meej. Thaum lub g
Kas Fes Ua Kom sov los ntawm Cov Hluav Taws Xob: 15 Kauj Ruam
Kas Fes Ua Kom sov los ntawm Cov Hluav Taws Xob: Ua tiav " Sov " Tsis txhob koj ntxub nws thaum koj kas fes txias? Tsis yog koj xav tau yooj yim, pheej yig " Ua Koj Tus Kheej " txoj hauv kev los tawm tsam qhov txias? Hnub no, kuv muab koj txoj kev cawm seej: "Kub" Phaj. Qhov "Sov" Phaj tuaj yeem