Cov txheej txheem:

SMART IRRIGATION SYSTEM Siv IoT # 'Ua rau ntawm BOLT': 6 Cov Kauj Ruam (nrog Duab)
SMART IRRIGATION SYSTEM Siv IoT # 'Ua rau ntawm BOLT': 6 Cov Kauj Ruam (nrog Duab)

Video: SMART IRRIGATION SYSTEM Siv IoT # 'Ua rau ntawm BOLT': 6 Cov Kauj Ruam (nrog Duab)

Video: SMART IRRIGATION SYSTEM Siv IoT # 'Ua rau ntawm BOLT': 6 Cov Kauj Ruam (nrog Duab)
Video: Chav Kawm Rau California Cannabis Cultivation Outreach Online Workshop 7 Hli tim 22, 2020 2024, Hlis ntuj nqeg
Anonim
SMART IRRIGATION SYSTEM Siv IoT # 'Ua rau ntawm BOLT'
SMART IRRIGATION SYSTEM Siv IoT # 'Ua rau ntawm BOLT'

Ntse Dej Irrigation System yog IoT raws cov cuab yeej uas muaj peev xwm siv lub tshuab ua dej los ntawm kev txheeb xyuas cov dej noo ntawm cov av thiab huab cua (zoo li los nag). Txhua cov ntaub ntawv ntawm cov ntsuas yuav nthuav tawm hauv daim duab ntawm BOLT nplooj huab. Yog xav paub ntau ntxiv txog txoj haujlwm nyem rau ntawm Daim Ntawv Tshawb Fawb txuas hauv qab no-

Hauv txoj haujlwm no, peb yuav hais kom lub arduino/328p microcontroller hla lub vev xaib los tswj lub cav (piv txwv li, kom pib thiab nres lub cav) thiab tag nrho cov txheej txheem dej yuav raug tswj los ntawm arduino nws tus kheej.

Tus neeg siv tsuas yog ua yog - Pib lub cav lossis yog tias nws xav tau nws tuaj yeem hloov lub tshuab los ntawm kev nias nkaus xwb.

Thaum Lub Tshuab Tsav Tsheb tau pib- tom qab siv lub tshuab ua haujlwm yuav ua haujlwm

1. Tus neeg siv tuaj yeem hloov OFF lub tshuab yog tias nws xav tau los ntawm nyem rau ntawm nplooj ntawv web.

2. Lub twj tso kua mis lub cev yuav tau hloov pauv ib zaug thaum cov av noo noo tau mus txog qhov xav tau tus nqi pib.

3. Yog tias huab cua zoo li nws tau pib los nag, tom qab ntawd lub tshuab tswj lub tshuab kaw yuav kaw lub twj tso kua mis kom txog thaum los nag. Thiab tom qab ntawd nws tshuaj xyuas seb cov av noo sensor tau mus txog tus nqi pib lossis tsis. Yog tias nws hla tus nqi pib ces lub twj tso kua mis lub cav yuav raug kaw tsis li nws yuav rov pib dua. Qhov no pab txuag dej thiab hluav taws xob.

4. Txhua qhov xwm txheej, thaum lub hwj chim tau txiav tawm thiab lub cav tau hloov. Nws yuav rov pib dua ib zaug thaum yuav muaj cov khoom siv fais fab, cov neeg siv yuav tsis muaj kev txhawj xeeb txog kev rov pib dua lub tshuab twj tso kua mis manually.

5. Kuj tseem muaj cov ntaub ntawv ntawm ntau yam xws li- lub ntsuas dej noo, ntsuas kub, ntsuas huab cua yuav tshwm rau ntawm BOLT huab hauv daim duab tab sis vim yog txwv ntawm BOLT kuv tau tsuas yog tso tawm ib qho ntsuas cov ntaub ntawv (cov ntaub ntawv ntsuas qhov ntsuas).

Kauj Ruam 1: Thaiv Daim Duab ntawm Txoj Haujlwm

Image
Image
Thaiv Daim duab ntawm Txoj Haujlwm
Thaiv Daim duab ntawm Txoj Haujlwm

Ua qhov kev sib txuas ntawm cov ntsuas, BOLT thiab txuas ntxiv raws li muab hauv daim duab. Kuv tau siv 328p microcontroller uas tau siv hauv ARDUINO. Yog li koj tuaj yeem siv Arduino hloov chaw ntawm 328P microcontroller.

Kauj Ruam 2: Arduino Code rau Project

Hardserial.ino yog tus lej arduino uas suav nrog kev cuam tshuam ntawm cov ntsuas sib txawv nrog arduino thiab cuam tshuam ntawm Arduino nrog BOLT kom xa cov ntaub ntawv ntawm lub sensor ntawm BOLT nplooj huab.

Kauj Ruam 3: Coding ntawm HTML Page

Coding ntawm HTML Page
Coding ntawm HTML Page

Hauv cov kauj ruam no, peb yuav sau cov nplooj ntawv HTML los ntawm qhov uas peb xa cov lus txib rau Arduino rau kev tswj hwm lub cev muaj zog (piv txwv li, mus pib thiab STOP lub cev muaj zog).

Kauj Ruam 4: Tshaj Tawm JavaScript ntawm BOLT Cloud

Uploading JavaScript ntawm BOLT Cloud
Uploading JavaScript ntawm BOLT Cloud

Sau cov JS code hauv qab no notepad ++

setChartType ('lineGraph'); plotChart ('time_stamp', 'temp');

thiab tom qab ntawd txuag nws siv.js cov ntaub ntawv txuas ntxiv. Qhov no yog qhov tseem ceeb heev Qhov no yuav siv tus nqi ntawm cov ntsuas thiab xa nws mus rau hauv daim duab ntawm BOLT huab.

Kauj Ruam 5: Kev teeb tsa ntawm BOLT Cloud Page

Kev teeb tsa ntawm BOLT Cloud Page
Kev teeb tsa ntawm BOLT Cloud Page
Kev teeb tsa ntawm BOLT Cloud Page
Kev teeb tsa ntawm BOLT Cloud Page

Yog tias koj twb tau yuav ib lub cuab yeej BOLT thiab sau npe nws

1- qhib nplooj ntawv huab huab - nyem rau qhov txuas

thiab tom qab ntawd nkag mus rau qhov ntawd.

2- tom qab ntawd nyem rau ntawm DEVELOPER CONSOLE -> Nyem rau "+" khawm los tsim cov khoom lag luam tshiab hauv ntu khoom.

3- Hauv CREAT TSHUAJ TSHWJ XEEB cov khoom lag luam -

i- sau ib lub npe rau cov khoom tshiab

ii- xaiv ib lub cim

iii- Xaiv UI li default.html

4- nyem rau CREATE PRODUCT

5- Tom qab ntawd nyem rau "YOG" rau tsim HARDWARE CONFIGURATION

6- Tom qab ntawd xaiv GPIO thiab tus lej tus lej li 1

7- Xaiv tus pin ua "AO" [peb tau txuas nrog lub ntsuas dej noo ntawm A0 tus pin]

8- thiab VARIABLE NAME ua "temp" [vim peb tau sau temp li sib txawv hauv js code {STEP-4}]

9- Thaum kawg rub tawm JS cov ntaub ntawv hauv UPLOAD FILES ntu thiab hloov qhov ua tsis raug, html cov ntaub ntawv los ntawm cov ntaub ntawv js.

Kauj Ruam 6: Siv Kev Kho thiab Kev Pom Cov Ntaub Ntawv

Deploy Configuration thiab Data Visulisation
Deploy Configuration thiab Data Visulisation

1- Nyem rau ntawm DEVICES Tab. Tam sim no, Hauv qab cov khoom tab, Xaiv lub npe ntawm koj cov khoom "Bolt IoT Product". Piv txwv li - temp. Tam sim no, Nyem rau ntawm Deploy Configuration khawm.

2- Mus rau qhov home page thiab nyem rau ntawm BOLT unit. Nws yuav xa rov tuaj rau koj ntawm nplooj ntawv tshiab uas koj tuaj yeem pom daim duab rau dej noo nrog kev hwm rau Lub Sijhawm.

Pom zoo: