Cov txheej txheem:

ESP8266 - HomeKit Hloov: 4 Cov Kauj Ruam
ESP8266 - HomeKit Hloov: 4 Cov Kauj Ruam

Video: ESP8266 - HomeKit Hloov: 4 Cov Kauj Ruam

Video: ESP8266 - HomeKit Hloov: 4 Cov Kauj Ruam
Video: NodeMCU With Apple HomeKit - ESP8266 4 Relay Home Automation | IOT 2024, Kaum ib hlis
Anonim
ESP8266 - HomeKit Hloov
ESP8266 - HomeKit Hloov

Los ntawm Achim Pietershttps://www.studiopieters.nl

ESP32 - Lub Koob Yees Duab Hauv Tsev
ESP32 - Lub Koob Yees Duab Hauv Tsev
ESP32 - Lub Koob Yees Duab Hauv Tsev
ESP32 - Lub Koob Yees Duab Hauv Tsev
ESP8266 - HomeKit NeoPixel Teeb Sawb
ESP8266 - HomeKit NeoPixel Teeb Sawb
ESP8266 - HomeKit NeoPixel Teeb Sawb
ESP8266 - HomeKit NeoPixel Teeb Sawb

Hauv kuv qhov blog dhau los ntawm no kuv tau sim ESP HomeKit Software Development Kit. Kuv zoo siab heev txog Cov Khoom Siv Txhim Kho Software no, uas kuv yuav sau ob peb blog txog qhov software ntse no. Hauv txhua qhov Blog Kuv yuav hais qhia lwm yam khoom siv ntxiv uas koj tuaj yeem ntxiv rau koj HomeKit yam tsis xav tau tus choj. Tom qab ua HomeKit Khawm nws yog lub sijhawm rau HomeKit Hloov. HomeKit Hloov Txawm hais tias lub tsev ntse tseem nyob hauv nws thaum tseem me, muaj ntau hom sib txawv ntawm HomeKit cov khoom siv hauv khw. Lub HomeKit Hloov pab tswj hwm lwm yam khoom siv HomeKit zoo li teeb lossis kiv cua. Qhov HomeKit Hloov no yuav tsim kev tswj hwm lub tsev yooj yim rau tag nrho tsev neeg: txhua tus neeg hauv tsev tuaj yeem tswj tau ntau lub cuab yeej ntse hauv tsev wirelessly nrog nias lub pob tsis txhob siv lub xov tooj smartphone app.

Customize txhua Hloov nrog cov lus txib sib txawv. Yooj yim ua rau cov cuab yeej ntse hauv tsev los ntawm toggling khawm. Koj tuaj yeem tswj Apple HomeKit cov cuab yeej siv tau: siv ua ntxiv rau Siri lossis app app hauv tsev kom yooj yim thiab nyab xeeb tswj cov khoom siv hauv tsev thiab pab pawg (xwm txheej). Yog li cia peb pib tsim!

Kauj Ruam 1: Kev Npaj Software

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

lpython -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 ESP32 lossis ESP8266 cov laug cam nrog lub khoos phis tawj.

Kauj Ruam 2: Kev Npaj Kho Vajtse

Kev Npaj Kho Vajtse
Kev Npaj Kho Vajtse

Txhawm rau Txhim kho peb lub khoos phis tawj rau peb esp peb ua peb qhov "txheej txheem" teeb tsa.

Kauj Ruam 3: Kev Npaj ESP OS

"chaw thau khoom =" tub nkeeg"

Kev Txhim Kho Software
Kev Txhim Kho Software

Tam sim no, koj yuav tsum teeb tsa OTA chaw cia ib yam. Nws yog ib qho tseem ceeb heev uas koj teeb tsa nws kom raug, vim tias koj tsis tuaj yeem hloov nws yav tom ntej (Yog tias koj ua yuam kev, koj yuav tsum lwv tawm thiab teeb nyem ntaus ntawv dua).

OTA chaw cia khoom:

AchimPieters/ESP8266-HomeKit-hloov

OTA binary ntawv:

main.bin

Txhawm rau ua tiav kev teeb tsa pib, nyem koom khawm thiab tos txog 7 feeb kom txog thaum txheej txheem tiav (Thaum lub teeb tsa ua haujlwm, lub cuab yeej tsis qhia dab tsi, thiab cov nyees khawm tsis ua haujlwm). Tom qab ntawd, LED tig rau ob peb feeb thiab koj yuav tuaj yeem ntxiv koj cov khoom siv ntxiv rau koj HomeKit ecosystem siv Home App. LCM yuav teeb tsa koj lub cuab yeej HomeKit ntawm koj li ESP.

Tam sim no koj tuaj yeem ntxiv koj HomeKit Hloov los ntawm kev tshuaj xyuas QR code hauv qab no. Txhawm rau kev sib txuas ntawm koj li ESP thiab HomeKit yuav siv ob peb feeb.

Thaum koj tau ntxiv qhov hloov pauv koj tuaj yeem muab Hloov, Hloov Hloov, lossis Ntxuam Hloov chaw. Thaum koj txuas koj cov cuab yeej tsim tawm tsis ntev los no rau HomeKit nws yuav nruab nws tus qauv raws li kev hloov pauv. Hauv qhov txuas ntxiv mus rau Blogs Kuv yuav qhia koj yuav hloov lawv li cas mus rau lub teeb hloov lossis kiv cua hloov.

Xav paub ntau ntxiv mus saib

Nco tseg: Txhawm rau tsim thiab muag HomeKit cov khoom siv sib xws, koj lub tuam txhab yuav tsum tau ntawv pov thawj rau qhov ntawd (https://developer.apple.com/homekit/, Yog tias koj xav tsim lossis tsim khoom siv HomeKit uas yuav muab faib lossis muag., koj lub tuam txhab yuav tsum tso npe rau hauv MFi Txoj Haujlwm.) Espressif muaj lawv kev ua haujlwm ntawm HomeKit lub moj khaum, tab sis nws yuav muab rau koj tsuas yog koj muaj daim ntawv pov thawj MFi (ceeb toom cov ntawv no hauv qab ntawm nplooj ntawv koj hais: Thov nco ntsoov tias Espressif HomeKit SDK) muaj rau MFi cov ntawv tso cai nkaus xwb, thiab koj yuav tsum muab Tus lej Tus lej rau kev txheeb xyuas lub hom phiaj thaum thov SDK.). XOV XWM Maxim Kulkin, esp-wifi-teeb tsa (2019), Lub tsev qiv ntawv rau bootstrap WiFi-qhib cov khoom siv WiFi teeb tsa, https://github.com/maximkulkin/esp-wifi-config Paul Sokolovsky, esp-open-sdk (2019), Pub dawb thiab qhib (ntau li ntau tau) ua ke SDK rau ESP8266/ESP8285 chips, https://github.com/pfalcon/esp-open-sdk Espressif Systems, esptool (2019), ESP8266 thiab ESP32 serial bootloader utility, https:/ /github.com/espressif/esptool HomeACcessoryKid, lub neej-voj voog-tus thawj coj (2019), Kev teeb tsa thawj zaug, teeb tsa WiFi thiab dhau ntawm huab cua hloov kho tshiab rau ib qho esp-open-rtos repository ntawm GitHub, https://github.com/HomeACcessoryKid /lub neej-voj voog-tus thawj coj

Pom zoo: