Cov txheej txheem:

Arduino thiab Apple HomeKit Kev Sib Koom - Tswj Koj Lub Tsev Los ntawm Siri! IoT Nyob Ntawm No: 6 Kauj Ruam
Arduino thiab Apple HomeKit Kev Sib Koom - Tswj Koj Lub Tsev Los ntawm Siri! IoT Nyob Ntawm No: 6 Kauj Ruam

Video: Arduino thiab Apple HomeKit Kev Sib Koom - Tswj Koj Lub Tsev Los ntawm Siri! IoT Nyob Ntawm No: 6 Kauj Ruam

Video: Arduino thiab Apple HomeKit Kev Sib Koom - Tswj Koj Lub Tsev Los ntawm Siri! IoT Nyob Ntawm No: 6 Kauj Ruam
Video: Tik Tok || Tseem Nco Koj Thiab Kuv P15 2024, Kaum ib hlis
Anonim
Arduino thiab Apple HomeKit Kev Sib Koom - Tswj Koj Lub Tsev Los ntawm Siri! IoT Nyob Ntawm No
Arduino thiab Apple HomeKit Kev Sib Koom - Tswj Koj Lub Tsev Los ntawm Siri! IoT Nyob Ntawm No

Cov lus qhia no yuav muab rau koj txoj hauv kev yooj yim thiab yooj yim ntxiv rau board arduino rau Apple's HomeKit ntawm lub cuab yeej iOS. Nws qhib txhua yam kev muaj peev xwm suav nrog Cov Ntawv sau ntawm tus neeg rau zaub mov, suav nrog Apples HomeKit "Scenes", nws ua rau muaj kev sib zog ua ke!

Qhov no tsis yog txhais tau tias ua tiav lossis npaj tau rau kev siv mus sij hawm ntev tab sis nws qhia tau tias yog dab tsi ua tau nrog kev ua haujlwm me ntsis:) Txheeb xyuas kuv li blog rau cov phiaj xwm yav tom ntej www.arduinoblogger.co.uk

Dab tsi xav tau:

  • Arduino nrog Ethernet Shield lossis WiFi
  • Raspberry Pi lossis qee qhov server
  • Solid State Relay lossis Relay Ib txwm nrog tswj Circuit
  • Pawg mov ci - xaiv tau
  • Lub thawv Project
  • Qee Lub Sijhawm
  • iOS no ntaus ntawv
  • Extension Lead los txiav tawm

Kauj ruam 1: Teeb Server

Teeb Server
Teeb Server

Txoj haujlwm no xav kom siv lub server kom khiav HomeBridge software. Kuv siv Raspberry Pi raws li kuv muaj nws npaj tau tab sis hauv kev xav txhua yam uas tuaj yeem ua haujlwm Node. Js yuav tsum ua haujlwm!

Koj tuaj yeem ua raws phau ntawv qhia no kom tau txais qhov no thiab ua haujlwm ntawm Raspberry Pi. Lwm cov lus qhia nyob ib puag ncig los tsim Raspberry Pi yog tias koj xav tau cov ntawd!

github.com/nfarina/homebridge/wiki/Running…

Thaum tau teeb tsa koj xav tau teeb tsa lub plugin thiab hloov kho cov ntaub ntawv config.json

Kauj ruam 2: Kho thiab Plugins

Qhib koj cov ntaub ntawv config.json uas yuav tsum nyob hauv ~/.homebridge/config.json siv koj cov ntawv nyeem uas koj nyiam thiab ntxiv cov hauv qab no

"lub npe": "Homebridge", "username": "CC: 22: 3D: E3: CE: 30", "chaw nres nkoj": 51826, "tus pin": "031-45-154"

}, "platforms": [Cov.], "accessories": [Cov.

{

"accessory": "Http", "lub npe": "Chav Nyob Teeb", "on_url": "https://192.168.1.201:80/?on", "off_url": "https://192.168.1.201:80/?off", "http_method": "Tau"

}]

}

Koj tseem yuav xav tau teeb tsa homebride-http plugin. HomeBridge software yuav ua HTTP GET thov mus rau Arduino uas tom qab ntawd yuav qhib lossis kaw Lub Xeev Solid State Relay. Hu zoo li no:

192.168.1. X: 80/? on

192.168.1. X: 80/? tawm

Txhawm rau nruab hom plugin:

npm nruab homebridge-http

Kauj Ruam 3: Teeb Lub Xeev Soliday Relay

Teeb lub Xeev Lub Xeev Relay
Teeb lub Xeev Lub Xeev Relay

Kuv tau siv lub luag haujlwm hnyav heev Solid State Relay. Qhov no tuaj yeem yog (thiab yuav yog yav tom ntej ntawm qhov no) hloov pauv rau qee yam me me. Pom tseeb tus nqi no rau lub nra uas koj npaj siab yuav khiav tawm ntawm nws.

Qhov no tau ua tiav 'Smart' txuas ntxiv ua tam sim no.

Qhov zoo ntawm Kev Ncaj Ncees ntawm Lub Xeev Sib Txuas yuav txuas rau tus pin 5 ntawm arduino.

Qhov tsis zoo yuav txuas rau GND tus pin.

Txhua qhov kev ceeb toom ib txwm siv thaum cuam tshuam nrog 120/220 vdc - TSEEM CEEB.

Kauj Ruam 4: Txuas Cov Khoom Sate Relay thiab Tshaj Tawm Arduino Code

Txuas Cov Khoom Sate Relay thiab Tshaj Tawm Arduino Code
Txuas Cov Khoom Sate Relay thiab Tshaj Tawm Arduino Code

Qhib koj ib puag ncig arduino thiab xa daim duab no.

Kho koj tus IP chaw raws li xav tau.

Tam sim no qhov no yuav tsum tau npaj rau kev sim.

Tua tawm homebridge ntawm tus neeg rau zaub mov!

Kauj ruam 5: Xeem

Kuaj!
Kuaj!
Kuaj!
Kuaj!

Tam sim no txhua yam yog nyob rau hauv qhov chaw nws lub sijhawm los sim!

Rub tawm Elgatu Eve los ntawm App Store ntawm koj lub cuab yeej iOS.

Koj yuav tsum pom Homebridge yog cov khoom siv muaj los txuas nrog. Siv tus lej tus lej 031-45-154, qhov no tuaj yeem hloov kho hauv cov ntawv config.json.

Thaum txuas nrog koj tuaj yeem txav qhov no ib puag ncig hauv App mus rau chav xav tau thiab lwm yam Muab Siri sim! Nws yuav tsum muaj peev xwm tswj hwm kev siv lub suab!

Kauj Ruam 6: Cov Kauj Ruam Tom ntej

Lub phiaj xwm yog kom txo qis qhov no thiab siv qee yam zoo li Nano thiab teeb tsa qhov no hauv Lightswitches / phab ntsa nyob nrog ntau dua Kev Tshaj Tawm thiab siv WiFi kom ua tiav Lub Tsev Automation.

Vam tias ib tus neeg tau txais qee qhov siv los ntawm qhov no! Ua tsaug ntau rau Nick Farina rau nws ua haujlwm ntawm Homebridge Software!

Ib daim vis dis aus yuav los sai sai no.

Pom zoo: