Cov txheej txheem:
- Khoom siv
- Kauj ruam 1: Disassembly
- Kauj Ruam 2: Kev Cai PCB
- Kauj ruam 3: Teeb Software
- Kauj Ruam 4: Kev Sib Txuas PCB
- Kauj Ruam 5: Muab Nws Ua Ke
- Kauj Ruam 6: Cov Lus Cim Pab Tau?
Video: Apple HomeKit Wi-Fi Dehumidifier Raws li ESP8266?: 6 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Hmoov tsis zoo tsuas muaj ib lossis ob DeHumidifiers tawm muaj uas txhawb Apple HomeKit, tab sis cov no muaj tus nqi siab heev (300 $+). Yog li kuv tau txiav txim siab los ua kuv tus kheej Wi-nkaus muaj peev xwm Apple HomeKit Dehumidifier raws li tus nqi pheej yig uas kuv twb muaj lawm?
Nws tuaj yeem ua haujlwm ib txwm nrog HomeKit siv ESP8266 yog li tsis muaj homebridge, HAP-NodeJS xav tau! ?
Txij li cov cai yog qhov nyuaj heev thiab kuv tau siv ntau lub tsev qiv ntawv kev cai Kuv tau ua cov ntaub ntawv firmware ua ntej. Rau cov uas txaus siab ua cov phiaj xwm HomeKit ib txwm muaj, qhov chaws rau esp-homekit muaj nyob ntawm no. Yog tias koj tsis xav siv kuv lub khoos phis tawj, GPIO pinout muaj nyob hauv qab no los ua koj tus kheej?
Yog xav paub ntxiv mus ntsib nplooj ntawv GitHub ntsig txog! ?
Nta:
- Ntsuas Kev Ntsuas Siv SHT3x sensor
- Teeb Hom Phiaj
- Tswj cov kiv cua ceev
- Qib Dej (ntawm LEDs thiab pib lub zog tawm thaum Tank puv)
- Hwj chim/Pib dua Khawm
Qhov PCB:
- ESP12F/E/S.
- XROW600B Dehumidifier
- SHT3x Temepreature/Vaum sensor
- SMD 0805 resistors
- SMD 0805 capacitors
- AMS1117-3.3
- Tactile Khawm
- 1x4P 2.54mm header (yeem)
- IRF540 NWS
- SMD 10x10.5 50V 100uF Capacitor
- SMD 6x7 6, 3V 330uF Capacitor
- LM2575S-5.0
- 330uH CRDH74 tus inductor
- 1 N4007 diode
- 2N3904
- VH3.96-2P
- XH2.54 2P, 4P, 5P
- 3MM Liab/Ntsuab LED
- 3mm (qhov siab) LED nylon spacer
- 4P Txiv neej XH2.54 nrog cable (rau cov av noo sensor)
Khoom siv
- Soldering IronORSoldering StationOR Hot Air Soldering Gun
- Rau kev xa cov cai koj yuav tsum tau yuav USB TTL adapter ib yam nkaus.
- Txhawm rau tshem tawm lub Dehumidifier koj yuav xav tau qee cov ntsia hlau.
- Kev cai PCB
- XROW600B dehumidifier
Kauj ruam 1: Disassembly
Txhawm rau tshem lub Dehumidifier qhov tsuas yog qhov koj yuav xav tau yog tus ntsia hlau uas tuaj yeem haum rau hauv lub qhov tom qab ntawm lub cuab yeej! ?
- Ntsia tus ntsia hlau 2 hauv qab ntawm lub cuab yeej
- Tshem tawm 4 tus ntsia hlau nyob tom qab ntawm lub cuab yeej
- Tam sim no koj tuaj yeem sib cais lub tsev yas
- Tshem tawm txhua qhov txuas ntawm PCB
- Tshem tawm 2 lub hau ntswj uas tuav lub PCB
Kauj Ruam 2: Kev Cai PCB
Kuv tau tsim cov kev cai PCB uas tuaj yeem hloov qhov qub, yooj yim heev. Nws qhov tseem ceeb tsuas yog lub zog hloov pauv / nqis qis los ntawm 12V mus rau 3.3V, ob lub MOSFETs rau tsav lub kiv cua thiab lub peltier, ESP8266 nws tus kheej, ob lub LEDs thiab lub pob nyem zoo li ntawm qhov qub.
Kuv kuj tau ntxiv tib cov txuas rau PCB tshiab raws li ntawm ib qho qub thiab ntxiv 4 tus pin txuas rau SHT3x Cov av noo sensor. Lub hwj chim 9V uas los nrog Dehumidifier kuj tseem tuaj yeem siv tau! Txhua yam yog ntsaws 'n' ua si?
Koj tuaj yeem nrhiav cov ntaub ntawv ntau ntxiv txog PCBs ntawm no
Cov ntaub ntawv PCB tuaj yeem pom ntawm PCBWay
SHT3x Vaum Sensor
Koj yuav tsum xaim lub SHT3x sensor siv tus txiv neej XH2.54-4P txuas nrog cov xov hlau (txuas ntawm cov npe ib feem) yooj yim txuas txhua yam raws li nws yuav tsum yog: VCC rau VCC, GND rau GND, SDA rau SDA thiab SCL rau SCL ?
Tam sim no hauv kuv teeb tsa lub ntsuas cua tsuas yog dai sab nraum lub dehumidifier cov ntaub ntawv, nws nyob ntawm koj qhov twg/koj tso lub sensor li cas tab sis sab hauv lub dehumidifier cov ntaub ntawv ntes cov av noo/dej tuaj yeem cuam tshuam rau kev nyeem ntawv! ?
GPIO Pinout Cov
Yog tias koj xav siv koj tus kheej firmware ntawm no yog pinout:
- Khawm - GPIO0 (D3 ntawm wemos D1 mini)
- SHT3x SDA - GPIO4 (D2 ntawm wemos D1 mini)
- SHT3x SCL - GPIO5 (D1 ntawm wemos D1 mini)
- Built-in LED GPIO2 (D4 ntawm wemos D1 mini)
- Hwj chim LED - GPIO14 (D5 ntawm wemos D1 mini)
- Ntxuam - GPIO15 (D8 ntawm wemos D1 mini)
- Peltier - GPIO12 (D6 ntawm wemos D1 mini)
- Tank sensor - GPIO13 (D7 ntawm wemos D1 mini)
Kauj ruam 3: Teeb Software
Koj tuaj yeem rub tawm cov firmware los ntawm kuv nplooj GitHub
Qhov rai
Rau Windows koj tuaj yeem siv lub official Firmware Download Tool los ntawm Espressif!
Teeb tsa qhov chaw nyob flash (0x2000), flash loj (4MB/32mbit) thiab hom nyem (DIO/QIO) yog kauj ruam tseem ceeb heev, tab sis cov teeb tsa no yuav hloov pauv raws tus qauv uas koj siv! Tsis tas li kuv tau hais kom lwv lub flash thaum koj thawj zaug teeb tsa lub firmware ua ntej rub tawm cov ntaub ntawv.bin!
Chaw:
- Baud tus nqi 115200
- Flash loj 4MB lossis 32mbit (nyob ntawm koj tus qauv)
- Flash hom QIO (lossis DIO, nyob ntawm koj tus qauv)
- 0x0000 rboot.bin ua
- 0x1000 blank_config.bin
- 0x2000 qhov tseem ceeb.bin
- 40 MHz
Mac OS
Rau MacOS koj tuaj yeem siv cov cuab yeej flasher no!
- Chaw: Lwv flash - yog (tsuas yog thawj zaug teeb tsa)
- Baud tus nqi 115200
- Flash loj 4MB lossis 32mbit (nyob ntawm koj tus qauv)
- Flash hom QIO (lossis DIO, nyob ntawm koj tus qauv)
- Cov ntaub ntawv: main.bin
- 40 MHz
Manually nyem
Peb yuav tsum teeb tsa esptool.py ntawm peb Mac txhawm rau txhawm rau tuaj yeem nyem peb lub ESP module. Txhawm rau ua haujlwm nrog esptool.py, koj yuav xav tau Python 2.7, Python 3.4 lossis txhim kho Python tshiab ntawm koj lub system. Peb pom zoo kom siv Python version tshiab, yog li mus rau Python lub vev xaib thiab teeb tsa nws hauv koj lub computer. Nrog Python teeb tsa, qhib Terminal qhov rai thiab teeb tsa qhov tseeb ruaj khov esptool.py tso nrog pip:
pip nruab esptool
Nco tseg: nrog qee qhov Python kev teeb tsa uas hais kom ua yuav tsis ua haujlwm thiab koj yuav tau txais qhov yuam kev. Yog tias qhov xwm txheej no, sim nruab esptool.py nrog:
pip3 nruab esptool sej -m pip nruab esptool pip2 nruab esptool
Tom qab teeb tsa, koj yuav muaj esptool.py teeb tsa rau hauv lub hauv paus Python executables directory thiab koj yuav tsum muaj peev xwm khiav nws nrog cov lus txib esptool.py. Hauv koj lub qhov rais Terminal, khiav cov lus txib hauv qab no:
esptool.py
Nrog esptool.py teeb tsa hauv koj lub khoos phis tawj, koj tuaj yeem yooj yim nyem koj li ESP8266 lub rooj tsavxwm nrog lub khoos phis tawj. Thaum xub thawj koj yuav tsum rub peb daim ntawv rau hauv: rboot.bin thiab blank_config.bin thiab tso tawm zaum kawg. Lub rboot.bin muaj lub bootloader rau ESP8266 thiab blank_config.bin tsuas yog cov ntaub ntawv teeb tsa dawb thiab ledstrip.bin muaj cov firmware. Tam sim no txuas koj lub cuab yeej rau koj li FTDI adapter hauv hom nyem.
Kom pab tau ESP8266 firmware flashing GPIO0 tus pin yuav tsum rub qis thaum lub zog ntaus ntawv. Nrog kuv cov kev cai PCB muaj lub pob, uas koj yuav tsum tau nias thiab tuav thaum txuas FTDI adapter rau koj lub PC. Hloov pauv, rau lub khau raj ib txwm, GPIO0 yuav tsum rub siab lossis ntab. Pib hauv FLASH MODE Mus rau hauv phau ntawv teev npe uas koj tau ua uas koj tso rau yav tas los rub tawm rboot.bin blank_config.bin cov ntaub ntawv (piv txwv li rub tawm) Qhib Terminal app. Nyem rau Finder icon hauv koj cov khoom. Nyem mus. Nyem Utilities. Ob-nias Terminal.
Hloov mus rau phau ntawv teev npe rub tawm.
Nco tseg: Yog tias koj siv lwm lub tsev qiv ntawv khaws cia peb lub.bin cov ntaub ntawv, nkag mus rau hauv lub tsev qiv ntawv ntawd siv 'cd` hais kom ua: Siv esptool.py los nyem koj lub cuab yeej.
cd cov downloads
Koj yuav xav tau USB TTL adapter txuas rau ESP8266. Yog tias koj siv Wemos D1 Mini tsuas yog xav tau yog microUSB cable, Wemos muaj TTL adapter ua-hauv.
Thaum thawj zaug txhim kho lub firmware peb yuav tsum lwv lub flash:
esptool.py -p / dev / erase_flash
Feem ntau, koj li ESPPort yuav yog ib yam zoo li /dev /cu.usbserial-`xxxxxx`. Tom qab ntawd, teeb tsa koj lub cuab yeej hauv hom nyem dua, thiab nyem qhov firmware tshiab:
esptool.py -p /dev/cu.wchusbserial1420 --baud 115200 write_flash -fs 32m -fm dio -ff 40m 0x0 rboot.bin 0x1000 blank_config.bin 0x2000 main.bin
Wi-nkaus thiab HomeKit teeb tsa
Teeb Wi-nkaus
Koj yuav tsum teeb tsa wifi network ua ntej ntxiv cov khoom siv rau HomeKit. Txhawm rau teeb tsa Wi-Fi chaw, lub cuab yeej tsim nws tus kheej Wi-nkaus hauv AP hom. Koj yuav tsum txuas rau nws txhawm rau teeb tsa koj li Wi-nkaus network. Cias coj koj lub cuab yeej iOS, mus rau Chaw-> Wi-nkaus, thiab tshawb rau SSID hu ua HomeKid-ua raws los ntawm tus qauv MAC chaw nyob thiab txuas rau nws. Vim muaj kev ruaj ntseg AP tau tiv thaiv tus password!
Default AP lo lus zais: 12345678
Tos ob peb feeb kom txog thaum lub vev xaib tshwm los qhia koj txhua Wi-nkaus tes hauj lwm uas lub cuab yeej tau pom. Xaiv koj li, thiab sau tus password! Tom qab ntawv nyem khawm Koom! Tus qauv yuav sim txuas lub Wi-nkaus network uas tau xaiv, qhov no yuav siv ob peb feeb.
Nco tseg: Yog tias lo lus zais muab tsis raug, koj tuaj yeem rov pib teeb tsa Wi-nkaus los ntawm kev tuav lub pob rau 10sec
Kev teeb tsa HomeKit
Hauv koj lub cuab yeej iOS, qhib Lub Tsev App thiab ua raws cov kauj ruam ib txwm ntxiv cov khoom siv tshiab. Kev teeb tsa ua khub yuav siv sijhawm li 30 feeb.
HomeKit code yog 586-84-417
Koj tseem tuaj yeem luam theej duab HomeKit QR code no.
Nco tseg: Yog tias kev sib koom ua tsis tiav, koj tuaj yeem siv lub zog ntawm koj lub cuab yeej, rov ua dua, thiab pib teeb tsa HomeKit dua (Wifi teeb tsa tau teeb tsa). Tom qab ua tiav kev sib koom ua ke Lub Hwjchim LED yuav ci dawb 3 zaug!
Kauj Ruam 4: Kev Sib Txuas PCB
Rau PCB tsim kuv tau xaiv cov txuas sib xws ib yam ntawm cov thawj PCB! ?
Yog li cov kauj ruam no yuav tsum ncaj:
- Txuas tus kiv cua mus rau tus kiv cua txuas
- Txuas TEC (peltier module) mus rau qhov sib txuas sib xws
- Txuas lub 5 tus pin Fais fab txuas rau tus sib txuas sib xws
- Txuas SHT3x tus qauv rau nws tus kheej txuas
Kauj Ruam 5: Muab Nws Ua Ke
Muab cov cuab yeej ua ke yog cov txheej txheem ib yam li kev sib dhos tsuas yog nyob rau hauv kev thim rov qab?
Kauj Ruam 6: Cov Lus Cim Pab Tau?
Lub Dehumidifier muaj qee qhov kev nyab xeeb thaum lub Tank puv thiab cov cuab yeej ua haujlwm:
- Yuav kaw lub Ntxuam/Peltier kom txog thaum lub tank tsis muaj dab tsi
- Tam sim ntawd tig rau ntawm LED liab
- Teeb lub zog LED 3 zaug txhua 30 vib nas this
Kuj tseem muaj kev nyab xeeb tshwj xeeb yog tias SHT3x sensor ua haujlwm tsis raug:
- Yuav kaw lub Ntxuam/Peltier kom txog thaum lub tank tsis muaj dab tsi
- Teem cov av noo tam sim no rau 0%
- Teeb lub zog LED 2 zaug txhua 30 vib nas this
Thaum ob qho tib si SHT3x muaj qhov ua yuam kev thiab lub tank puv lub zog LED yuav nyem 6 zaug txhua 30 feeb.
Hauv ESP8266 muaj qee qhov yuam kev koj tsis tas yuav tshem lub cuab yeej los ntawm lub zog, peb zaug nias lub pob yuav rov pib dua ESP8266!
Thaum Dehumidifier tau qhib thiab cov av noo tam sim no sib npaug thiab/lossis tsawg dua tom qab lub hom phiaj cov av noo, lub cuab yeej yuav nkag mus rau hom tsis ua haujlwm. Hauv Tsev app nws yuav qhia "Teeb rau …" thaum lub cuab yeej tsis ua haujlwm thiab qhia "Txo rau …" thaum nws ua haujlwm!
Hloov kho lub firmware
Kuv tau npaj los siv Over-The-Air (OTA) hloov kho lub khoos phis tawj tab sis nws tsis yog qhov ntseeg tau yog li kev hloov kho yuav tsum tau ua tiav zoo li thaum xub thawj teeb tsa! Qhov sib txawv tsuas yog koj tsis tas yuav tshem tawm lub nyem, los ntawm kev ua kom pom qhov tshiab ntawm lub khoos phis tawj tshiab yam tsis muaj lwv nws yuav khaws koj li Wi-nkaus / HomeKit teeb tsa! ?
Pom zoo:
Huab Cua Raws Li Lub Tshuab Hluav Taws Xob (ESP8266 Raws Li Midi Generator): 4 Cov Kauj Ruam (nrog Duab)
Huab Cua Raws Li Lub Tshuab Hluav Taws Xob (ESP8266 Raws Li Midi Generator): Nyob zoo, hnub no kuv yuav piav qhia yuav ua li cas thiaj ua rau koj tus kheej me ntsis Huab cua raws li lub tshuab hluav taws xob. thiab lub teeb pom kev zoo.Tsis txhob cia siab tias nws yuav ua txhua zaj nkauj lossis chord progr
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Yuav Ua Li Cas Tswj ESP8266 Raws Li Sonoff Basic Hloov Hloov Nrog Lub Xov Tooj: 4 Cov Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Tswj ESP8266 Raws Li Sonoff Basic Smart Switch Nrog Lub Xov Tooj: Sonoff yog kab kab rau Smart Home tsim los ntawm ITEAD. Ib qho ntawm cov khoom siv hloov pauv tau thiab pheej yig tshaj plaws los ntawm kab ntawd yog Sonoff Basic. Nws yog Wi-nkaus qhib kev hloov pauv raws li lub nti zoo, ESP8266. Kab lus no piav qhia yuav teeb tsa Cl
DIY Ntse Ua Raws Kuv Drone Nrog Lub Koob Yees Duab (Arduino Raws): 22 Cov Kauj Ruam (nrog Duab)
DIY Ntse Ua Raws Kuv Drone Nrog Lub Koob Yees Duab (Arduino Raws): Drones yog cov khoom ua si nrov heev thiab cov cuab yeej niaj hnub no. Koj tuaj yeem pom cov kws tshaj lij thiab txawm tias pib ua haujlwm drones thiab cov khoom siv ya hauv khw. Kuv muaj plaub lub drones (quadcopters thiab hexcopters), vim tias kuv nyiam txhua yam uas ya, tab sis lub davhlau 200th tsis yog