Cov txheej txheem:
- Kauj Ruam 1: Txhim Kho Arduino IDE Software
- Kauj Ruam 2: Qhib Arduino IDE
- Kauj Ruam 3: Qhib Tus Thawj Saib Xyuas Haujlwm
- Kauj Ruam 4: Xaiv ESP 8266 Board Library
- Kauj Ruam 5: Xaiv Pawg Thawj Coj
- Kauj ruam 6: Txuas rau PC
- Kauj Ruam 7: Kuv Thawj Txoj Haujlwm
- Kauj Ruam 8: Tshaj Tawm Koj Thawj Txoj Haujlwm
- Kauj Ruam 9: Ntxiv Tsev Qiv Ntawv
- Kauj ruam 10: Tau txais Blynk Daim Ntawv Thov ntawm Koj Lub Xov Tooj
- Kauj Ruam 11: Tsim Koj Thawj Blynk App
- Kauj ruam 12: Khiav qhov program
- Kauj Ruam 13: Txoj Cai Ua Haujlwm Li Cas…
- Kauj Ruam 14: Blynk Tab
Video: Kuv Thawj IoT Device: 14 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hauv Cov Lus Qhia no peb yuav kawm paub yuav teeb tsa Arduino IDE rau My First IoT Device li cas thaum kawg peb tuaj yeem siv cov lej arduino ntawm nws thiab tswj nws los ntawm koj lub xov tooj ntawm tes.
Kauj Ruam 1: Txhim Kho Arduino IDE Software
Nruab Arduino IDE software los ntawm qhov txuas no
Tom qab teeb tsa Arduino IDE lub cim tau tsim ntawm lub Desktop.
Kauj Ruam 2: Qhib Arduino IDE
Qhib Arduino IDE los ntawm koj lub desktop.
Nias Ctrl+comma kom qhib lub vaj huam sib luag nyiam.
Hauv Tus Thawj Saib Xyuas Boards Ntxiv nkag mus rau URL uas qhia hauv qab no thiab nias OK.
arduino.esp8266.com/stable/package_esp8266com_index.json
Kauj Ruam 3: Qhib Tus Thawj Saib Xyuas Haujlwm
Qhib Tus Thawj Saib Xyuas Haujlwm.
Kauj Ruam 4: Xaiv ESP 8266 Board Library
Lub Rooj Tswjhwm Saib lub qhov rais qhib, scroll lub qhov rai nplooj rau hauv qab kom txog thaum koj pom tus qauv nrog lub npe ESP8266. Thaum koj tau pom nws, xaiv qhov module, xaiv version thiab nyem rau ntawm lub pob Install. Thaum nws tau teeb tsa kaw lub qhov rais.
Kauj Ruam 5: Xaiv Pawg Thawj Coj
Txhawm rau khiav Kuv Thawj IoT nrog Arduino peb yuav tsum xaiv Board NodeMCU 1.0 (ESP-12E Module).
Qhov no tuaj yeem ua tiav los ntawm kev nqes mus, raws li qhia hauv daim duab saum toj no. Nias rov qab
Kauj ruam 6: Txuas rau PC
Txuas MyFirst IoT maub los rau koj lub computer siv USB cable. Thaum nws txuas qhov chaw nres nkoj COM yuav raug kuaj thiab koj yuav tsum pom koj lub PC thauj khoom cov tsav tsheb tsim nyog. Thaum qhov ntawd ua tiav mus rau tus thawj tswj hwm lub cuab yeej thiab nco ntsoov Com Port siv (qhia hauv daim duab saum toj no)
Kauj Ruam 7: Kuv Thawj Txoj Haujlwm
Tam sim no qhib Cov Ntaub Ntawv tab thiab mus rau Piv Txwv hauv qhov nkag mus rau hauv Piv txwv li, mus rau 01. Basics thiab nyem rau Blink qhib lub qhov rai.
Tam sim no nyem rau ntawm cov cuab yeej los xaiv qhov chaw nres nkoj: "COM" raws qhov twg COM chaw nres nkoj ntawm lub khoos phis tawj tus tswj hwm txuas nrog. Txhawm rau txheeb xyuas qhov chaw nres nkoj COM xa mus rau cov kauj ruam dhau los.
Kauj Ruam 8: Tshaj Tawm Koj Thawj Txoj Haujlwm
Nyem rau ntawm xub xub pom hauv daim duab txhawm rau rub qhov program mus rau qhov qauv. Thaum qhov program tau tshaj tawm LED ntawm tus tswj yuav ntsais muag thiab tawm ntawm ib pliag thib ob.
Nrog koj zoo siab - koj nyuam qhuav ua tiav koj thawj IoT ntaus ntawv. Tam sim no cia txav mus rau qee yam me ntsis ntxim nyiam thiab hloov LED qhib thiab tawm ntawm koj lub xov tooj ntawm tes.
Kauj Ruam 9: Ntxiv Tsev Qiv Ntawv
Arduino compiler ua rau siv ntau lub tsev qiv ntawv. Cov no yog cov ntawv tsis sib xws og cov lej uas pab lub cuab yeej ua tiav ntau txoj haujlwm.
Cia peb ua qhov no ib zaug.
Rub tawm Blynk zip cov ntaub ntawv qhia hauv qab no. Nco ntsoov qhov twg koj tau khaws nws.
Qhib lub Sketch tab, coj mus rau 'suav nrog Lub Tsev Qiv Ntawv' xaiv thiab tom qab ntawd 'Ntxiv.zip lub tsev qiv ntawv'. Taw tes rau lub vijtsam xaiv ntawm qhov chaw ntawm cov ntaub ntawv zip koj rub tawm thiab lees paub.
Tom qab ob peb feeb lub tsev qiv ntawv yuav raug ntxiv rau koj Arduino IDE.
Rov ua dua rau cov tsev qiv ntawv seem
Kauj ruam 10: Tau txais Blynk Daim Ntawv Thov ntawm Koj Lub Xov Tooj
Mus rau koj lub xov tooj app khw thiab tshawb rau Blynk. Nruab Blynk daim ntawv thov thiab khiav nws.
Koj yuav tsum tau muab email chaw nyob thiab tus password. Nco ntsoov tias nws yog email chaw nyob siv tau vim tias yog qhov twg cov ntawv pov thawj tseeb yuav tau xa.
Cov neeg siab zoo ntawm Blynk muab rau koj 2000 lub zog 'chav nyob kom koj pib. Raws li koj tsim ntau txoj haujlwm nyuaj koj yuav xav tau ntau dua 'Lub zog' uas koj tuaj yeem yuav hauv daim ntawv thov.
Txog tam sim no peb yuav tshem tawm cov phiaj xwm thaum peb txav los ntawm ib qho piv txwv mus rau lwm qhov thiab ua kom zoo dua qhov ua tau zoo tiag tiag ntawm Blynk txoj haujlwm QR code. Peb yuav mus txog qhov ntawd hauv cov kauj ruam tom ntej.
Kauj Ruam 11: Tsim Koj Thawj Blynk App
Nias lub cim QR nyob rau sab saum toj ntawm lub vijtsam thiab koj lub koob yees duab yuav qhib.
Aim koj lub koob yees duab ntawm QR code saum toj no thiab Blynk yuav tsim txoj haujlwm rau koj. Thaum txoj haujlwm tau tsim tawm nias lub cim txiv ntseej nyob rau sab saum toj ntawm lub vijtsam, nqes mus thiab xaiv 'email tag nrho'
Tsis pub dhau ob peb feeb koj yuav tau txais tus lej lees paub xa mus rau koj ntawm email.
Hauv Arduino IDE xaiv Cov Ntaub Ntawv/Piv Txwv/My_IOT_Device/Blynk_LED.
Cov ntaub ntawv program yuav qhib.
Luam thiab muab cov cim cim pov thawj uas koj tau txais los ntawm Blynk thiab nkag koj tus lej SSID thiab Password rau hauv lub vijtsam.
Nias lub pob nyem upload kom xa qhov program mus rau tus tswj.
Kauj ruam 12: Khiav qhov program
Ntawm Blynk app nias lub pob ua si nyob rau sab xis saum toj ntawm lub vijtsam.
Koj yuav pom lub khawm LED thiab cov xwm txheej teb. Nias lub pob yuav tig LED ntawm koj lub maub los qhib thiab tawm thiab hloov kho qhov xwm txheej raws li.
Nrog koj zoo siab - tam sim no koj tuaj yeem tswj hwm koj txoj haujlwm los ntawm txhua qhov chaw hauv Ntiaj Teb uas koj muaj internet siv!
Kauj Ruam 13: Txoj Cai Ua Haujlwm Li Cas…
Qhov no tsis yog kev qhia ua haujlwm - tab sis ntawm no yog kev nkag siab rau hauv txoj cai thiab nws ua haujlwm li cas nrog Blynk.
Kuv tau muab lub hom phiaj tso cai rau hauv cais tabs ntawm Arduino IDE kom koj tuaj yeem pom cov khoom loj. Tsis tas yuav tsum ua qhov ntawd thaum koj pib ua haujlwm.
Cia saib ntawm Blynk_LED tab ua ntej. Lwm yam tshaj li cov cai tso cai ua haujlwm, SSID thiab tus password koj yuav tsis xav hloov qhov no rau ib qho piv txwv ntawm qhov haujlwm.
Qhov no muaj cov ntaub ntawv tseem ceeb txog kev siv lub tsev qiv ntawv (#suav nrog).
Kev teeb tsa tab tsuas yog qhov ntawd - nws ua haujlwm ib zaug raws li tus tswj hwm khau raj thiab teeb tsa cov lus qhia rau teeb tsa. Hauv qhov no peb tab tom teeb tsa lub ntsuas saib kom khiav ntawm 115200 baud thiab teeb tsa Blynk thiab wifi.
Lub voj tab tsuas yog qhov ntawd - nws loops puag ncig thiab rov ua dua qhov ua tiav cov cai nyob hauv nws. Hauv qhov no nws ua kom ntseeg tau tias blynk thiab lub sijhawm ua haujlwm (uas peb yuav teeb tsa hauv kev qhia sib txawv nrog rau txoj haujlwm, timers thiab cov khoom siv tabs).
Kauj Ruam 14: Blynk Tab
Ua ntej peb saib cov cai peb tsuas yog saib ob lub 'widgets' ntawm Blynk screen.
'Khawm' tau xaiv los ua tus pin 'virtual' thiab peb tau xaiv qhov 0 rau nws (V0). Nws yog cov khoom siv uas tsim cov zis uas tau xa mus rau tus tswj. Nco ntsoov tias peb tau teeb tsa nws li On/Off hloov dua li Push (ib ntus) hloov.
Qhov ntsuas qhov xwm txheej yog 'tus nqi tso saib' widget thiab nws tau txais cov ntaub ntawv xa mus rau nws los ntawm tus tswj. Nws tau teeb tsa ua tus pin tiag thiab peb tau xaiv qhov 1 rau nws.
Tam sim no cia saib cov cai.
Thawj nqe lus - BLYNK_WRITE (V0) - tab tom qhia cov cai kom mloog rau kev qhia los ntawm Blynk los ntawm tus lej virtual 0. Txhua lub sijhawm uas khawm hloov Blynk yuav xa 0 lossis 1 rau tus tswj - muaj nyob hauv param.asInt ().
Yog tias 0 raug xa mus, tus tswj hwm:
- Teeb meem cov lus txib morse.on (); (siv lub tsev qiv ntawv muaj nyob hauv cov ntawv suav nrog peb tau pib thaum pib) uas hloov LED rau.
- Luam tawm "LED On" mus rau ntu txuas (lub davhlau ya nyob twg pc)
- Xa "LED On" mus rau Blynk 'tus nqi tso saib' widget uas peb tau xaiv ntawm qhov chaw 1. Nws siv Blynk.virtualWrite (V1, "LED Off"); qhia kom ua li no.
- Yog tias 1 tau xa mus rau tus tswj hwm nws ua qhov tsis sib xws ntawm txhua qhov no.
Yooj yim zoo nkauj eh?
Pom zoo:
Kuv Thawj Synth: 29 Kauj Ruam (nrog Duab)
Kuv Thawj Synth: Tus menyuam synth tuaj txog thaum kuv zaum hunched hla qhov tangled mess ntawm synthesizer xov hlau. Kuv tus phooj ywg Oliver tuaj txog, txheeb xyuas qhov xwm txheej, thiab hais tias, "Koj paub tias koj tau ua tiav hauv kev tsim cov khoom ua si nyuaj tshaj plaws hauv ntiaj teb." Thaum kuv thawj zaug r
Kuv IoT Device - Thawj Relay: 5 Kauj Ruam
Kuv Cov IoT Device - Thawj Relay: Hauv cov lus qhia no peb yuav tswj hwm kev xa tawm los ntawm Blynk. Qhib nws thiab tawm ntawm daim ntawv thov.Ua tsaug !!!! Thov nco ntsoov tias koj paub tias koj tab tom ua dab tsi yog tias koj npaj siab yuav txuas koj lub xov tooj mus rau hluav taws xob !!! NYEEM
Kuv Thawj Java Daim Ntawv Thov: 6 Kauj Ruam
Kuv Thawj Java Daim Ntawv Thov: Koj puas tseem xav tsim koj tus kheej daim ntawv thov java tab sis tseem ncua nws rau qee qhov laj thawj? Koj puas hnov koj tus kheej hais tias "Tag kis thaum kawg kuv yuav ua nws"? Tab sis qhov tag kis yeej tsis los. Yog li, koj yuav tsum tau pib tam sim no. Tam sim no yog lub sijhawm kom tau txais koj li
Kuv Thawj Tsov Tus Tsov Tsov: Analog-rau-Digital Converter: 5 Kauj Ruam
Kuv Thawj Tsiaj Tis Tsiaj: Analog-rau-Digital Converter: Nyob zoo, kuv cov phooj ywg ua! Hnub no cov lus qhia yog hais txog qee yam tshwj xeeb. Cov cuab yeej no yog KUV FEATHERWING - ua raws Adafruit daim ntawv foos. Nws tseem yog kuv qhov chaw SAWV DAWS MOUNTED PCB! Kuv qhov tseem ceeb tshaj plaws ntawm kev siv daim ntaub thaiv no yog hauv lub cuab yeej kuv npau taws
Tsim Kuv Tus Kheej rau Kuv Cov Ntaub Ntawv IOT ntawm Raspberry PI: 3 Cov Kauj Ruam
Tsim Kuv Tus Kheej rau Kuv Cov Ntaub Ntawv IOT ntawm Raspberry PI: Thov nyeem ntawm yog tias koj xav kom tuaj yeem tsim koj tus kheej daim duab IOT siv 7 kab ntawm kab ntawv. Kuv xav tsim cov kab kos los tso saib cov ntaub ntawv hauv cov duab teeb tsa los ntawm kuv IOT sensors ntawm nplooj ntawv web. Yav dhau los, rau qhov no, Kuv tau siv cov kev pabcuam thib peb (qee qhov