Cov txheej txheem:

Khawm IoT Uas Tswj Koj Lub App: 6 Kauj Ruam
Khawm IoT Uas Tswj Koj Lub App: 6 Kauj Ruam

Video: Khawm IoT Uas Tswj Koj Lub App: 6 Kauj Ruam

Video: Khawm IoT Uas Tswj Koj Lub App: 6 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim
Image
Image
Npaj Koj Pawg Thawj Coj Npaj rau AppShed IoT
Npaj Koj Pawg Thawj Coj Npaj rau AppShed IoT

Los ntawm appshedAppShedFollow Ntau los ntawm tus sau:

Npaj Koj Pawg Thawj Coj Npaj rau AppShed IoT
Npaj Koj Pawg Thawj Coj Npaj rau AppShed IoT
JavaScript thiab App Builder: Zaj Lus Qhia 1
JavaScript thiab App Builder: Zaj Lus Qhia 1
JavaScript thiab App Builder: Zaj Lus Qhia 1
JavaScript thiab App Builder: Zaj Lus Qhia 1
Ua Mobile Game Tsis Coding
Ua Mobile Game Tsis Coding
Ua Mobile Game Tsis Coding
Ua Mobile Game Tsis Coding

Txog: Appshed yog lub hauv paus kev kawm uas cov tub ntxhais kawm thiab cov kws qhia ntawv tuaj yeem kawm App Building, Game Making thiab IoT/Robotics. Xav paub ntau ntxiv txog appshed »

Ib yam uas kuv nyiam tshaj plaws txog microcontrollers yog lub peev xwm siv lawv ua cov khoom siv, piv txwv li, Arduino Micro tuaj yeem siv ua HID (tib neeg lub cuab yeej sib cuam tshuam) uas txhais tau nrog qee qhov coding thiab paub li cas koj tuaj yeem ua koj tus kheej keyboard lossis nas los ntawm Arduino! Qhov ntawd tau txais kuv xav txog kev siv IoT lub cuab yeej los ua tswv yim los tswj hwm yam ntawm App. Yog li hauv txoj haujlwm no, peb tab tom saib yuav ua li cas thiaj tsim lub app txuas nrog khawm uas tuaj yeem tsim kho kom ua tau txhua yam hauv peb app.

Kauj Ruam 1: Txhim Kho Lub Tsev Qiv Ntawv

Txhawm rau upload peb cov cai peb yuav siv qhov nrov heev Arduino IDE uas tuaj yeem rub tawm ntawm no. Tam sim no vim tias peb tab tom yuav siv lub vev xaib AppShed los tswj thiab hloov kho txoj kev uas pawg thawj coj saib xyuas ua haujlwm peb tsis tas yuav tsom mus rau tus lej tseeb nkag mus rau hauv pawg thawj coj. Cov cai peb tab tom rub tawm yog AppShed tus thawj coj kos duab uas tso cai rau lub vev xaib los tswj hwm txhua tus pins ntawm lub rooj tsavxwm.

Tam sim no kom tuaj yeem xa cov cai rau peb pawg thawj coj los ntawm Arduino IDE peb yuav tsum teeb tsa nws lub tsev qiv ntawv uas tso cai rau IDE tham nrog peb pawg thawj coj tshwj xeeb. Qhov no yog ua raws li hauv qab no:

  • Tua tawm Arduino IDE
  • Nkag mus rau Cov Ntaub Ntawv thiab nyem Nyiam
  • Mus rau hauv qab, koj yuav tsum pom "tus thawj tswj hwm ntxiv URLs" ua raws los ntawm qhov chaw khoob
  • Luam thiab muab qhov no tso rau hauv qhov chaw seem

Tam sim no peb yuav tsum teeb tsa cov laug cam hauv qab tus thawj tswj hwm.

  • Nkag mus rau Cov Cuab Yeej, tom qab ntawd Pawg Thawj Coj thiab tom qab ntawd nyem rau ntawm Pawg Thawj Coj
  • Tam sim no hauv kab ntawv tshawb nrhiav ESP8266
  • Nyem rau thawj qhov kev xaiv thiab nyem Nruab

Tam sim no peb pawg thawj coj muaj peev xwm sib tham nrog Arduino IDE

Kauj ruam 2: Uploading Code

Xa cov Code
Xa cov Code

Yog li ntawm qhov no, peb tau rub cov tsev qiv ntawv uas xav tau los pab Arduino IDE sib tham nrog peb pawg IoT thiab peb tau rub tawm cov tsev qiv ntawv uas tso cai rau AppShed master sketch los ua haujlwm. Tam sim no, txhua yam peb yuav tsum tau ua yog hloov lub npe thiab tus password ntawm koj lub cuab yeej IoT hauv tus lej yog tias koj tsis ua qhov no koj li IoT li wifi npe yuav yog "Your_device_name_here".

Txhawm rau ua qhov no peb xav tau cov hauv qab no:

  • Txuas koj lub rooj tsav xwm IoT rau hauv koj lub computer
  • Rub tawm thiab qhib Appshed master sketch (uas tuaj yeem pom ntawm no)
  • Nkag mus rau cov cuab yeej thiab nyem rau ntawm lub nkoj
  • Scroll cia kom txog thaum koj pom koj lub rooj tsavxwm, tom qab ntawd nyem rau nws (Kuv siv NodeMCU yog li kuv yuav nyem rau ntawm NodeMCU)
  • Tam sim no rov qab mus rau cov cuab yeej thiab nyem rau ntawm qhov chaw nres nkoj, ntawm no koj yuav tsum pom koj lub rooj tsavxwm (yuav tsum zoo li qhov no "com 9" yog tias koj nyob ntawm windows thiab "/dev/cu.wchusbserial1410 'rau mac)
  • Nyem rau sab sab xub xub kom rub thiab tos thaum nws ua li ntawd.

Yog tias koj tau txais cov lus tom qab li 2 - 3 feeb hais tias ua tiav kev rub tawm ces txhua yam ua haujlwm tau zoo! Txhawm rau txheeb xyuas ob zaug tias peb pawg thawj coj ua haujlwm peb tseem tuaj yeem mus rau peb lub WiFi teeb tsa thiab nrhiav lub npe uas peb tau muab rau pawg thawj coj ua ntej yog tias nws nyob ntawd nws ua haujlwm.

Kauj ruam 3: Teeb App

Teem App
Teem App
Teem App
Teem App
Teem App
Teem App

Ua App uas tau txais cov ntaub ntawv los ntawm sab nrauv IoT board tuaj yeem zoo li txaus ntshai yog tias koj tsis yog tus kws tshaj lij App tsim tawm, txawm li cas los xij, qhov no tsis yog qhov teeb meem vim tias peb yuav siv AppSheds infostructure los ua peb app uas ua rau nws tiag tiag yooj yim

Peb yuav tsum tau pib los ntawm kev mus rau AppShed thiab ua ib tus account dawb lossis nkag mus rau ib qho uas twb muaj lawm. Los ntawm no koj yuav tsum pom ob qho kev xaiv IoT Builder lossis App Builder, peb yuav pib los ntawm txhaj rau IoT Builder raws li qhov no yuav cia peb teeb tsa tus pin uas peb xav ua raws li cov lus tso tawm lossis cov tswv yim. Thaum nplooj ntawv raug rub tawm nyem rau New IoT Project thiab lub npe lub rooj tsavxwm nkag thiab nyem tseg.

Tam sim no txij li peb xav teeb tsa ib tus pin raws li kev nkag mus pom thaum lub pob raug thawb peb yuav tsum tau pib los ntawm txhaj rau lub pob icon hauv qab Digital Inputs thiab tom qab ntawd nyem rau Pin 1 kom khi lawv ua ke tom qab ntawd muab nws lub npe zoo li " khawm "thiab nyem txuag.

Tam sim no peb tab tom yuav mus rau App Building sab ntawm yam.

Kauj ruam 4: Ua App

Ua App
Ua App
Ua App
Ua App

Tam sim no peb rov qab mus rau nplooj ntawv ntawd tom qab nkag mus thiab nyem rau ntawm App Builder lub sijhawm no. Koj yuav tsum tau nthuav tawm nrog lub xov tooj simulated, peb yuav tsum tau pib los ntawm txhaj rau lub pob ntxiv kom pib lub app tshiab. Thaum uas tau thauj khoom thawj yam peb yuav tsum tau ua yog txuas qhov IoT board peb tsuas yog ua rau peb app peb ua qhov no los ntawm txhaj rau ntawm lub rooj tsavxwm thiab tom qab ntawd nyem rau ntawm lub rooj tsavxwm peb tsuas yog ua uas yuav tsum muaj npe nkag mus. Tam sim no nrog lub rooj tsav xwm thauj khoom hauv, peb tuaj yeem pib ntxiv cov yam ntxwv rau hauv app.

Peb pib los ntawm kev nyem rau ntawm lub npov nkag hauv qab cov ntawv thiab npe nws khawm Lub Xeev. Tom qab ntawd peb yuav tsum tau sau nws lub pob, qhov no tseem ceeb vim tias peb lub npe pin ib lub pob ua ntej yog li npe nws khawm pab khi ob yam no ua ke. Tam sim no peb tsuas yog nyem tseg thiab lub app ua tiav!

Kauj Ruam 5: Tshaj Tawm thiab Xeem

Luam tawm thiab Xeem
Luam tawm thiab Xeem

Tam sim no qhov yooj yim super app tau tsim peb yuav tsum tshaj tawm nws thiab tau txais nws ntawm peb lub xov tooj. Peb ua qhov no los ntawm txhaj rau lub pob tshaj tawm, ib zaug ua tiav peb yuav tsum tau mus rau qhov sib koom tab thiab nyem rau ntawm QR code uas tom qab ntawd nthuav qhia koj nrog QR code uas koj tuaj yeem luam theej duab nrog koj lub xov tooj.

Thaum qhov web-app tau rub tawm peb xav tau txuas peb lub xov tooj rau peb IoT cov cuab yeej WiFi uas peb ua los ntawm nqe lus mus rau WiFi teeb tsa ntawm koj lub xov tooj thiab tom qab ntawd txuas rau lub npe ntaus ntawv peb tau muab nws ua ntej.

Tam sim no peb tuaj yeem rov qab mus rau lub app thiab thawb lub pob ntawm peb IoT cov cuab yeej, koj yuav tsum pom 1 thaum lub pob raug thawb thiab 0 thaum lub pob tsis raug thawb. Yog tias koj tsis pom tus nqi sim rov ua nplooj ntawv tshiab thiab koj yuav tsum pom tus nqi tshwm tuaj.

Kauj Ruam 6: Ua Nws Ntxiv

Coj Nws Ntxiv
Coj Nws Ntxiv

Tam sim no yog tsuas yog pom 1 lossis 0 yog qhov txaus siab me ntsis, txawm li cas los xij, lub ntsiab lus ntawm txoj haujlwm no tsuas yog qhia koj tias ua tau li cas, nws yog koj txoj haujlwm kom coj mus ntxiv thiab tsim qee yam zoo kawg nkaus. Ua piv txwv, koj tuaj yeem teeb tsa lub app kom ua suab lossis ua yeeb yaj kiab (ntawm no yog qhov piv txwv ntawm qhov no

Yog tias koj muaj lus nug thov tawm lus rau peb, ua tsaug rau kev nyeem!

Pom zoo: