Cov txheej txheem:

Tswj koj lub qhov cub nrog HomeKit thiab Alexa: 7 Kauj Ruam
Tswj koj lub qhov cub nrog HomeKit thiab Alexa: 7 Kauj Ruam

Video: Tswj koj lub qhov cub nrog HomeKit thiab Alexa: 7 Kauj Ruam

Video: Tswj koj lub qhov cub nrog HomeKit thiab Alexa: 7 Kauj Ruam
Video: Lub Zog Nruab Nrog (Hmong Dubbed) 2024, Hlis ntuj nqeg
Anonim
Image
Image
Yuav Tsum Tau Ua Ntej
Yuav Tsum Tau Ua Ntej

Tsis ntev los no kuv tau teeb lub qhov cub roj, uas suav nrog kev tswj chaw taws teeb. Thiab tom qab pom ob peb tus piv txwv ntawm tib neeg sib txuas lawv lub qhov cub rau hauv lawv lub tsev tswj teeb tsa kuv pib nrhiav tib yam. Kuv lub qhov cub muaj lub chaw taws teeb tswj no

Kauj ruam 1: Pre-Requisites

Raws li qhov yuav tsum tau ua ua ntej rau cov lus qhia no, Kuv muaj lub qhov cub roj nrog lub chaw taws teeb tswj no. Yog tias koj saib sab nraum qab ntawm koj cov chaw taws teeb, nws yuav tsum muaj FCC ID RTD-G6RH thiab zaus ntawm 315 Mhz. Yog tias koj tsis muaj lub chaw deb no, cov lus qhia no tsis yog rau koj.

Kuv tseem muaj HomeBridge teeb tsa thiab ua haujlwm, thiab nws tau koom ua ke nrog kuv Alexa.

Kauj Ruam 2: Nqi Khoom

Nqi Khoom
Nqi Khoom
Nqi Khoom
Nqi Khoom

Txog qhov kev qhia no, Kuv tau siv kuv li HomeBridge thiab Alexa siv tam sim no. Kuv tau muaj Homebridge khiav tau ob peb xyoos, thiab tseem tau muab nws tso rau kuv Alexa. HomeBridge rau Alexa kev koom ua ke siv qhov no https://www.npmjs.com/package/homebridge-alexa. Cov no yog qhov tsim nyog thiab kuv yuav tsis piav qhia lawv cov teeb tsa.

Txhawm rau txuas kuv lub qhov cub rau qhov no, Kuv xav tau ntxiv qhov no rau hauv kab ke

Nodemcu ESP8266-https://www.aliexpress.com/item/10pcs-lot-NodeMcu…

315 Mhz Transmitter-https://www.creatroninc.com/product/315mhz-rf-lin…

Cov qhob cij

Txhawm rau nrhiav cov lej rau lub xov tooj cua nyob deb, kuv tau siv NooElec NESDR Mini 2+ 0.5PPM TCXO RTL-SDR & ADS-B USB Txais Txais Teeb w/ Antenna, Suction Mount, Poj niam SMA Adapter & Chaw Taws Teeb, RTL2832U & R820T2 Tuner. Tus Nqi Tus Nqi Uas Tau Txiaj Ntsig Txhais Xov Tooj Cua -

Kauj Ruam 3: Nrhiav Xov Tooj Cua rau Cov Chaw Taws Teeb

Nrhiav Xov tooj cua Codes rau Chaw Taws Teeb
Nrhiav Xov tooj cua Codes rau Chaw Taws Teeb
Nrhiav Xov tooj cua Codes rau Chaw Taws Teeb
Nrhiav Xov tooj cua Codes rau Chaw Taws Teeb
Nrhiav Xov tooj cua Codes rau Chaw Taws Teeb
Nrhiav Xov tooj cua Codes rau Chaw Taws Teeb

Txhawm rau nrhiav lub xov tooj cua nyob deb cov lej rau lub qhov cub, Kuv ua raws cov theem mus txog #7 hauv cov lus qhia no. Thiab siv IR Blaster code ntau dua li lawv cov cai.

Rau lub qhov cub taws nyob deb kuv pom tias lub teeb liab yog 23 ntsis ntev, thiab nws tau rov ua dua 10 zaug ntawm ib lub pob nyem. Tom qab txheeb xyuas cov ntaub ntawv hauv Audacity Kuv tau los nrog cov qauv me ntsis rau txhua lub khawm nyob deb:

Yog - 01110100010111000110011

Tawm - 01110100010111000110111

Up - 01110100010111000111011

Tus lej - 01110100010111000000000

Nrog Zero yog 200 ms ntawm lub teeb liab thiab 700 ms tsis muaj teeb liab, thiab Ib qho yog 700 ms ntawm lub teeb liab thiab 200 ms tsis muaj teeb liab. Kuv xav tias thawj feem ntawm cov ntaub ntawv yog cov ntaub ntawv tshwj xeeb uas txheeb xyuas kuv lub qhov cub, thiab qhov kawg ntawm qhov kawg yog qhov tshwj xeeb hais kom ua.

Kuv txoj haujlwm rau kev txiav txim siab cov cai tswj chaw taws teeb yog:

1) ntes lub pob nyem hauv QGRX

2) Qhib cov ntawv wav uas tau tsim hauv qib 1, thiab nthuav mus rau ntu uas cuam tshuam txog thaum nws yuav luag tag nrho cov vijtsam dav.

3) Puas tau ntes lub vijtsam ntawm tus neeg khawm khawm, thiab khaws cov ntaub ntawv.

4) Qhib lub vijtsam rub hauv daim ntawv nthuav tawm, thiab hloov kho kab kom dav kom ib kem sib npaug rau qhov dav me ntsis.

5) Sau tseg tias qhov me ntsis yog xoom lossis ib qho hauv kab hauv qab no.

7) Tsim kev tsim nyog hauv kab hauv qab no, = yog (D19 = 0, "200, 700,", "700, 200,"), thiab theej qhov no hla txhua kab ntawv. Qhov twg D19 yog kab lus saum toj no.

8) Kuv mam li theej cov ntawv uas tau tsim los ntawm cov lus hais rau kuv tus kws sau ntawv

Yog tias koj hloov pauv On code nws yuav yog

200, 700, 700, 200, 700, 200, 700, 200, 200, 700, 700, 200, 200, 700, 200, 700, 200, 700, 700, 200, 200, 700, 700, 200, 700, 200, 700, 200, 200, 700, 200, 700, 200, 700, 700, 200, 700, 200, 200, 700, 200, 700, 700, 200, 700, 200

Ua qhov no rau txhua lub pob. Qhov tshwm sim yuav tsum yog 46 tus lej rau txhua lub pob.

Kauj Ruam 4: Teeb Nodemcu Raws Li Xov Tooj Cua Xov Tooj Cua

Teeb Nodemcu Raws Li Xov Tooj Cua Xov Tooj Cua
Teeb Nodemcu Raws Li Xov Tooj Cua Xov Tooj Cua

Rau NodeMCU, Kuv siv Michael Higgins IR Blaster code los tswj lub tshuab xa xov. Cov ntsiab lus ntawm kev teeb tsa yog ntawm no:

github.com/mdhiggins/ESP8266-HTTP-IR-Blast…

Txhawm rau txuas xov tooj cua Transmitter, Kuv tsuas yog txuas nws zoo li nws yog LED, tab sis tsis tau siv ib qho ntawm cov tiv thaiv lossis transistor raws li tus xa tawm tsis xav tau lawv.

Transmitter Pins rau NodmePins

1 - Hauv av - Hauv av ntawm nodeMCU

2 - Cov ntaub ntawv hauv - Txuas ncaj qha rau D2

3 - Vcc - Txuas ncaj qha rau Vin (5 volts)

4 - Kav hlau txais xov - Txuas 23 cm ntev ntawm cov xaim

Kauj Ruam 5: Teeb Homebridge Nrog Homebridge-HTTP-IRBlaster Plugin

Txhawm rau teeb tsa lub plugin hauv HomeBridge Kuv ua raws cov lus qhia ntawm no

github.com/NorthernMan54/homebridge-HTTP-I…

Thiab txhawm rau teeb tsa lub plugin Kuv tsim cov hauv qab no config.json nkag

Cov ntawv no yuav tsis ua haujlwm rau koj lub cuab yeej vim tias tus lej cim thiab URL ntawm koj lub cuab yeej yuav txawv.

Qhov URL yuav yog qhov chaw nyob ntawm koj lub cuab yeej ntawm koj lub network, thiab koj yuav tsum tsuas yog hloov chaw nyob. xws li 192.168.1.175 rau qhov muaj txiaj ntsig los ntawm koj teeb tsa.

Rau off_data, on_data, up_data, thiab down_data hloov kab "cov ntaub ntawv" los ua tus nqi uas koj tau txiav txim siab ua ntej hauv qhov no.

Kauj Ruam 6: Sim Nws

Sim Nws Tawm
Sim Nws Tawm
Sim Nws Tawm
Sim Nws Tawm

Pib dua HomeBridge, thiab tam sim no koj yuav tsum pom cov khoom siv tshiab hu ua Fireplace, uas siv lub cim FAN. Koj yuav tsum tau qhib, tua thiab tswj qhov siab nplaim taws nrog Tsev app. Thov nco ntsoov tias thaum lub qhov cub tsis khoom tig los lossis tua, cov lus txib ntxiv yuav raug tsis quav ntsej thiab Lub Tsev app yuav qhia qhov ua yuam kev.

Kauj Ruam 7: Khab nias

Txog qhov teeb tsa tshwj xeeb no, Kuv yuav tsum ua tsaug ntau tus neeg rau lawv kev siv zog raws li kuv daim ntawv ntawm qhov no yog qhov yooj yim ua tsaug rau lawv sib qhia lawv kev siv zog rau zej zog

  • Michael Higgins thiab nws txoj haujlwm ESP8266-HTTP-IR-Blaster. Qhov no yog qhov kev tshoov siab tshaj plaws
  • veggiebenz thiab nws Cov Lus Qhia

www.instructables.com/id/Reverse-Engineer-…

  • Mark Szabo thiab nws lub tsev qiv ntawv IRremoteESP8266
  • Homebridge thiab HAPNodeJS zej zog rau Apple HomeKit Kev Sib Koom.

Pom zoo: