Cov txheej txheem:

Mozilla IoT Gateway Nrog ESP8266 thiab Z-Wave: 7 Kauj Ruam
Mozilla IoT Gateway Nrog ESP8266 thiab Z-Wave: 7 Kauj Ruam

Video: Mozilla IoT Gateway Nrog ESP8266 thiab Z-Wave: 7 Kauj Ruam

Video: Mozilla IoT Gateway Nrog ESP8266 thiab Z-Wave: 7 Kauj Ruam
Video: mozilla-iot-gateway-sensors-20180406rzr 2024, Kaum ib hlis
Anonim
Mozilla IoT Gateway Nrog ESP8266 thiab Z-Wave
Mozilla IoT Gateway Nrog ESP8266 thiab Z-Wave

Lub zog rau Cov Neeg! Mozilla xav ua dawb IoT raws tu qauv Lub hauv paus ntawm txoj haujlwm no yog "kom ntseeg tau tias Internet yog lub ntiaj teb cov peev txheej pej xeem, qhib thiab nkag tau rau txhua tus." Internet ntawm Yam (IoT) yog lub sijhawm tshiab ntawm Internet. Thiab zoo li Internet, Mozilla xav txog kev pub dawb rau txhua tus. Hla-platform, hla teb chaws, hla hom.

Kho vajtse

Rau qhov haujlwm no koj yuav tsum muaj:

1 X Raspberry Pi 3 (https://amzn.to/2DmQ8eB)

2 X ESP8266 (https://amzn.to/2AUvC3c)

Yeem yeem

1 X Z-Wave dongle adapter (https://amzn.to/2HxZokm)

ESP8266-01 Relay board (https://amzn.to/2Ufx7Ao)

Yeem rau teeb tsa Raspberry Pi

Nas

Keyboard

HDMI Saib

Lub Software

Rau qhov haujlwm no koj yuav tsum muaj:

Arduino IDE lossis Arduino Tsim (https://create.arduino.cc)

Mozilla Gateway rau Raspberry 3

Txhua lub tsev qiv ntawv Mozilla Gateway

Kauj Ruam 1: Yuav Ua Li Cas IoT Ua Haujlwm Hnub no

Yuav ua li cas IoT Ua Haujlwm Hnub no
Yuav ua li cas IoT Ua Haujlwm Hnub no

Niaj hnub no peb muaj ntau yam khoom siv sab hauv IOT kev sib txuas lus. Koj yuav tsum muaj, piv txwv li, Amazon Alexa lub rooj vag thiab ntau yam khoom siv txuas nrog ntawd. Tab sis nrog Mozilla Gateway koj tuaj yeem siv tib lub qhov rooj los siv Alexa, Google cov khoom siv hauv tsev, yooj yim ESP8266 lossis txhua yam khoom siv uas koj xav kom "ntse dua" koj lub tsev.

Kauj Ruam 2: Yuav Ua Li Cas Mozilla Xav Txog Yav Tom Ntej

Yuav ua li cas Mozilla xav txog yav tom ntej
Yuav ua li cas Mozilla xav txog yav tom ntej

Mozilla Project yog lub hauv paus kev sim nrog 3 ntu:

Yam Rooj vag: Kev siv ntawm Lub Vev Xaib ntawm Yam Rooj Vag.

Yam Huab: Sau los ntawm IoT huab kev pabcuam.

Cov Qauv Txheej Txheem: Sau cov khoom siv rov ua haujlwm tau zoo rau tsim Web Yam.

Raspberry Pi Rooj vag

Lub hauv paus ntawm txhua txoj haujlwm yog Raspberry Pi 3 Gateway los ntawm Mozilla. Nws yog ib kauj ruam yooj yim tiag tiag. Mozilla tau npaj Linux distro uas teeb tsa lub system ntawm Raspberry Pi. Koj tuaj yeem teeb tsa lub rooj vag los ntawm kev siv koj lub smartphone.

Kauj Ruam 3: Pib Ua Koj Tus Kheej Mozilla IOT Free Gateway

Pib Ua Koj Tus Kheej Mozilla IOT Free Gateway
Pib Ua Koj Tus Kheej Mozilla IOT Free Gateway
Pib Ua Koj Tus Kheej Mozilla IOT Free Gateway
Pib Ua Koj Tus Kheej Mozilla IOT Free Gateway
Pib Ua Koj Tus Kheej Mozilla IOT Free Gateway
Pib Ua Koj Tus Kheej Mozilla IOT Free Gateway
Pib Ua Koj Tus Kheej Mozilla IOT Free Gateway
Pib Ua Koj Tus Kheej Mozilla IOT Free Gateway

1. Flash SD Card

Rub tawm ua ntej Raspberry Pi OS duab los ntawm Mozilla thiab nyem nws mus rau SD daim npav. Rub tawm los ntawm qhov txuas no Mozilla Gateway distro. Koj tuaj yeem siv Raspberry Pi cov ntawv qhia ua haujlwm txhawm rau nruab Mozilla Gateway ntawm SD. Lwm qhov muaj peev xwm yog Balena Etcher (https://www.balena.io/etcher/).

Balena Ethcer yog ib txoj haujlwm rau Windows Mac thiab Linux uas theej cov duab ISO ntawm SD.

2. Pib koj Gateway

Tam sim no koj tuaj yeem pib koj li Mozilla Gateway. Tom qab ntawd, koj tuaj yeem txuas koj lub xov tooj nrog lub qhov rooj los ntawm kev siv Wifi los ntawm Raspberry Pi. Txuas koj lub rooj vag mus rau koj lub network wifi

Tom qab ntawd, koj yuav tsum tsim lub qhov nkag mus rau Mozilla huab system. Tom qab ntawd, koj tuaj yeem pom koj lub qhov rooj txawm tias tawm ntawm Koj Lub Zos Network Hauv Zos.

Tom qab cov kauj ruam no, koj tau txais email nrog koj li Mozilla daim ntawv pov thawj. Koj yuav tsum suav cov qauv thiab … qhov ntawd yog nws!

Kauj ruam 4: Ntxiv Devices

Ntxiv Devices
Ntxiv Devices

Tam sim no koj tuaj yeem ntxiv qee yam khoom siv. Koj tuaj yeem siv Zigbee dongle txuas Zigbee cov cuab yeej lossis Z-Wave dongle rau Z-Wave cov khoom siv.

Kauj Ruam 5: Arduino Devices

Arduino Devices
Arduino Devices

Kuv qhov kev daws teeb meem tuaj yeem siv Arduino cov khoom siv sib xws. Kuv siv 2 NODE ESP8266. Ib qho uas tau siv los ua tus txais. Koj tuaj yeem txuas lub rooj tsavxwm mus rau qhov txuas thiab hais kom ua piv txwv. Lwm qhov yog ESP8266 uas sau cov ntaub ntawv los ntawm lub ntsuas cua thiab xa tus nqi mus rau Lub Rooj vag. Hauv qhov no, tus lej (https://github.com/masteruan/webthing-arduino/tree/master/examples/sensorNodeMCU) Kuv tau tsim qhov kev ntsuas debug. ESP8266 xa tus lej tsis raug txhua txhua 3 vib nas this mus rau ntawm Gateway dashboard.

Node ESP8266 coj yog qhov txuas ntawm Github code (https://github.com/masteruan/webthing-arduino/tree/master/examples/LED).

Rub tawm cov cai thiab muab tso rau ntawm Node ESP8266 pawg thawj coj.

Kauj Ruam 6: ESP8266 + Shield Shield

ESP8266 + Cov Shield Shield
ESP8266 + Cov Shield Shield

Kuv twb tau siv cov board zoo li no. Siv xov tooj txuas ntxiv, sau ntawm ESP8266 Koj tuaj yeem pom kuv tus lej ntawm Github. Koj yuav tsum tsuas yog them lub khoos phis tawj ntawm ESP8266 lub rooj tsavxwm thiab koj tseem tuaj yeem hais kom xa tawm uas ua haujlwm tau meej nrog Mozilla WoT Gateway.

Thaum koj ntxiv cov cuab yeej koj tuaj yeem siv tau zoo li cov cuab yeej coj. Yog tias koj xa los ntawm Mozilla Gateway "ntawm" hais kom ESP xa los ntawm qhov chaw nres nkoj txuas lus txib mus rau daim ntawv xa tawm daim ntawv xaj kom hloov mus rau ntawm kev xa tawm, txwv tsis pub ESP8266 xa mus rau pawg thawj coj ntawm qhov hloov pauv hais kom ua rau kev xa tawm.

Nov yog qhov txuas ntawm Github code (https://github.com/masteruan/webthing-arduino/tree/master/examples/relayEsp8266)

Kauj Ruam 7: Node ESP8266 Sensor

Node ESP8266 Sensor
Node ESP8266 Sensor

Koj tuaj yeem pom cov cai rau Node ESP8266 sensor. Nov yog qhov txuas ntawm Github code (https://github.com/masteruan/webthing-arduino/tree/master/examples/sensorNodeMCU)

Koj yuav tsum suav nrog qee lub tsev qiv ntawv rau ESP LED thiab ESP sensor.

"Dab tsi.h"

"WebThingAdapter.h"

"stdio.h"

"Arduino.h"

Kuj rau ESP8266-01 Kev Tshaj Tawm, koj yuav tsum suav nrog

"SoftwareSerial.h"

Nrog tus lej no koj teeb tsa koj lub network SSID thiab tus password. Tom qab koj tsim qhov tshiab ThigDevice piv txwv.

Pom zoo: