Cov txheej txheem:

IOT Base Computing Siv Nodemcu thiab Micropython: 11 Kauj Ruam
IOT Base Computing Siv Nodemcu thiab Micropython: 11 Kauj Ruam

Video: IOT Base Computing Siv Nodemcu thiab Micropython: 11 Kauj Ruam

Video: IOT Base Computing Siv Nodemcu thiab Micropython: 11 Kauj Ruam
Video: Расшифровка пультов дистанционного управления гаражными воротами 2024, Kaum ib hlis
Anonim
IOT Base Computing Siv Nodemcu thiab Micropython
IOT Base Computing Siv Nodemcu thiab Micropython

Hauv qhov kev qhia no kuv yuav siv NodeMcu, micropython thiab Mqtt txuas los txuas rau server.

Cov ntawv qhia no yog siv https raws mqtt txuas txuas los ntawm Nodemcu rau Adafruit.io Server.

Hauv txoj haujlwm no kuv tab tom siv micropython programming lus uas yuav luag zoo ib yam li nab nab.

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

Cov Cheeb Tsam hauv qab no yuav tsum ua kom tiav txoj haujlwm no.

Cov Cheeb Tsam Yuav Tsum Tau:

  • Nodemcu
  • IR sensor
  • LED
  • USB Cable
  • Kev Sib Txuas Internet

Kauj ruam 2: Pib Pib

Pib Pib
Pib Pib
Pib Pib
Pib Pib

Txheej txheem:

  • Rub tawm thiab nruab espcut software rau debugging.
  • Rub tawm cov ntawv los ntawm qhov txuas no. uas yog khaws ua github repository. Txhua qhov program muaj nyob hauv qhov chaw cia khoom no..
  • Rub tawm thiab teeb tsa micropython firmware los ntawm qhov txuas no mus rau NODEMCU
  • Txuas IR sensor rau GPIO12 thiab LED rau GPIO 2 ntawm Nodemcu.
  • rub tawm lub webrepl software no

Kauj Ruam 3: Adafruit IO

Adafruit IO
Adafruit IO

mus ntsib io.adafruit.com thiab nkag mus nkag rau koj lub dashboard

Kauj ruam 4: Tsim Dashboard

Tsim Dashboard
Tsim Dashboard

Nyem rau ntawm qhov ua thiab tsim tshiab dashboard

Kauj Ruam 5: Tsim Thaiv

Tsim Thaiv
Tsim Thaiv
Tsim Thaiv
Tsim Thaiv
Tsim Thaiv
Tsim Thaiv
  1. Nyem rau ntawm Dashboard lub npe.
  2. dua nyem rau +(ntxiv) khawm los tsim block
  3. Tam sim no Nyem rau Toggle thiab muab nws lub npe.
  4. Tam sim no nyem rau ntawm tsim khawm
  5. Tom ntej xaiv koj qhov thaiv thiab nyem rau ntawm kauj ruam tom ntej
  6. Muab lub npe rau qhov thaiv no thiab teeb cov npe ntawm ON xeev thiab OFF xeev.
  7. Tom qab ntawd nyem rau ntawm tsim block.

Rov ua cov txheej txheem los ntawm qib 2 xaiv cov ntawv thiab tsim ib qho thaiv ntxiv raws li qhia hauv daim duab

Kauj Ruam 6: Dashboard Kawg

Qhov kawg Dashboard
Qhov kawg Dashboard

Koj Qhov Dashboard Kawg yuav zoo li qhov no.

Kauj Ruam 7: Tau Txais Lub Npe thiab Tus Kheej

Tau tus username thiab qhov tseem ceeb
Tau tus username thiab qhov tseem ceeb

Nyem rau ntawm lub cim tseem ceeb ntawm sab laug ntawm lub vijtsam thiab Luam lub npe siv thiab tus yuam sij nquag

Kauj ruam 8: Pab kom WEBREPL

Pab kom WEBREPL
Pab kom WEBREPL
  • Qhib lub espcut software
  • xa cov lus txib no "ntshuam webrepl_setup"
  • nyeem cov ntawv ntawm console thiab teeb tsa lub webrepl.

Kauj Ruam 9: Txuas rau Webrepl

Txuas rau Webrepl
Txuas rau Webrepl
Txuas rau Webrepl
Txuas rau Webrepl
  • Nrhiav lub wifi network uas ssid pib los ntawm micropython
  • txuas mus rau ssid nrog tus password "micropythoN"
  • koj yuav tau txais qhov screen raws li qhia hauv daim duab saum toj no.

Kauj ruam 10: Ntxiv Code

Ntxiv Txoj Cai
Ntxiv Txoj Cai
  • extract webrepl software, qhib webrepl.html thiab nyem rau txuas
  • nws yuav nug koj kom muab tus password
  • hauv kuv rooj plaub lo lus zais yog "1234567"
  • wow koj txuas.
  • upload cov ntaub ntawv uas tau rub tawm los ntawm github repository.
  • upload main.py, mqtt.py, boot.py thiab data.txt siv webrepl.
  • tam sim no nias pib dua ntawm khawm ntawm koj lub nodemcu. thiab tshawb xyuas cov zis ntawm io.adafruit.com
  • yog tias koj xav txheeb xyuas qhov ua tiav ces rov qab koj yuav tsum txuas rau micropython wifi thiab nkag mus.

Kauj Ruam 11: Ua Haujlwm Yees Duab

Cov vis dis aus ua haujlwm ntawm qhov kev qhia no muaj nyob ntawm no.

Pom zoo: