Cov txheej txheem:

Kev Lag Luam 4.0: Arduino IoT: 4 Cov Kauj Ruam
Kev Lag Luam 4.0: Arduino IoT: 4 Cov Kauj Ruam

Video: Kev Lag Luam 4.0: Arduino IoT: 4 Cov Kauj Ruam

Video: Kev Lag Luam 4.0: Arduino IoT: 4 Cov Kauj Ruam
Video: Elon musk fires people like a boss😎 Credit: @geomfilms 2024, Kaum ib hlis
Anonim
Kev Lag Luam 4.0: Arduino IoT
Kev Lag Luam 4.0: Arduino IoT

Cov ntsiab lus thiab khoom siv

  • Arduino UNO R3
  • ElectroPeak ESP8266-12N WiFi Module

APPS THIAB ONLINE SERVICES

Arduino IDE Cov

HAIS TIAS YUAV UA LI CAS

Txheej txheem cej luam

Hauv qhov kev qhia no, koj yuav kawm paub yuav rub tawm thiab rub tawm cov ntaub ntawv mus rau/los ntawm Firebase database nrog Arduino UNO thiab ESP8266 module. Khaws cov ntaub ntawv (zoo li cov ntaub ntawv ntsuas) mus rau lub hauv paus uas tuaj yeem nkag tau los ntawm txhua qhov chaw hauv internet yuav muaj txiaj ntsig zoo. Firebase ua rau khaws cia thiab khaws cov ntaub ntawv yooj yim.

Yam Koj Yuav Kawm

  • Yuav ua li cas thiaj ua cov ntaub ntawv hauv Firebase
  • Yuav ua li cas rub tawm (rub tawm) cov ntaub ntawv mus rau (los ntawm) Firebase
  • Yuav siv ESP8266 li kev sib txuas ntawm Arduino thiab Firebase li cas

Firebase yog dab tsi?

Firebase yog lub xov tooj ntawm tes thiab web daim ntawv thov txhim kho platform tsim los ntawm Firebase, Inc. xyoo 2011, tom qab ntawd tau los ntawm Google xyoo 2014. Raws li lub Kaum Hlis 2018, Firebase platform muaj 18 cov khoom lag luam uas tau siv los ntawm 1.5 lab apps. Firebase muab ntau yam kev pabcuam raws li hauv qab no:

  • Firebase Analytics uas yog daim ntawv thov ntsuas kev daws teeb meem muab kev nkag siab txog kev siv app thiab cov neeg siv koom nrog.
  • Firebase Cloud Messaging (FCM) uas yog qhov kev daws teeb meem hla rau cov lus thiab ceeb toom rau Android, iOS, thiab web applications, uas tsis raug nqi raws li xyoo 2016.
  • Firebase Auth uas yog qhov kev pabcuam uas tuaj yeem txheeb xyuas cov neeg siv siv tsuas yog tus lej siv-sab. Nws txhawb nqa cov neeg muab kev sib tham hauv Facebook, GitHub, Twitter thiab Google (thiab Google Ua Si Ua Si). Ntxiv mus, nws suav nrog kev tswj hwm cov neeg siv uas cov tsim tawm tuaj yeem tso cai rau tus neeg siv lees paub nrog email thiab tus lej nkag mus nkag nrog Firebase.

Kauj Ruam 1: Teeb Arduino IDE

Teeb tsa Arduino IDE
Teeb tsa Arduino IDE

Yog tias nws yog thawj zaug uas koj siv Arduino board, tsuas yog ua raws cov kauj ruam no txwv tsis pub koj tuaj yeem dhia mus rau theem tom ntej:

  • Mus rau www.arduino.cc/en/Main/Software thiab rub tawm Arduino software sib xws nrog koj OS. Nruab IDE software raws li qhia.
  • Khiav Arduino IDE thiab tshem cov ntawv sau thiab luam cov cai hauv qab no hauv kab ntawv sau.
  • Xaiv lub rooj tsavxwm hauv: cov cuab yeej> cov laug cam, thiab xaiv koj li Arduino Board.
  • Txuas Arduino rau koj lub PC thiab teeb COM chaw nres nkoj hauv cov cuab yeej> chaw nres nkoj.
  • Nias lub Upload (Xub kos npe) khawm.
  • Koj nyob nraum tag nrho!

Pom zoo: