Cov txheej txheem:

UCL - IIoT - Sab hauv -huab cua 4.0: 8 Cov Kauj Ruam
UCL - IIoT - Sab hauv -huab cua 4.0: 8 Cov Kauj Ruam

Video: UCL - IIoT - Sab hauv -huab cua 4.0: 8 Cov Kauj Ruam

Video: UCL - IIoT - Sab hauv -huab cua 4.0: 8 Cov Kauj Ruam
Video: 馃弳UCL GROUP STAGE HIGHLIGHTS馃弳 2016/2017 UEFA Champions League Best Games and Top Goals 2024, Kaum ib hlis
Anonim
UCL - IIoT - Sab hauv huab cua 4.0
UCL - IIoT - Sab hauv huab cua 4.0

Tom qab nyeem ntawv thiab ua haujlwm nrog cov lus qhia no, koj yuav muaj koj tus kheej tsis siv neeg sab hauv-huab cua, uas koj tuaj yeem soj ntsuam online nrog kev pab ntawm Node-red. Hauv peb qhov xwm txheej peb tsim lub tswv yim no thiab nthuav tawm nws hauv tsev 3D-luam ntawv.

Kauj Ruam 1: IO-daim ntawv teev Cov Khoom Xav Tau rau Txoj Haujlwm

IO-daim ntawv xav tau cov ntaub ntawv rau Txoj Haujlwm
IO-daim ntawv xav tau cov ntaub ntawv rau Txoj Haujlwm
IO-daim ntawv xav tau cov ntaub ntawv rau Txoj Haujlwm
IO-daim ntawv xav tau cov ntaub ntawv rau Txoj Haujlwm
IO-daim ntawv xav tau cov ntaub ntawv rau Txoj Haujlwm
IO-daim ntawv xav tau cov ntaub ntawv rau Txoj Haujlwm

Arduino MEGA 2560

RAYSTAR OPTRONICS RC1602A-FHW-ESXDHT-sensor

BD243C Transistor

Y. S. TECH FD244010HB 4010 40mm x10mm Ntxuam 24V 0.07A 2Pin 446

Kauj ruam 2: Flowchart

Daim phiaj
Daim phiaj

Nov yog daim duab qhia kom pom qhov nyuaj ntawm txoj haujlwm. Raws li koj tuaj yeem pom cov ntaub ntawv pib los ntawm sab saum toj ntawm daim phiaj thiab xaus rau hauv Arduino ib qib zuj zus. Daim phiaj xwm txheej tau tsim los muab cov kev paub yooj yim ntawm txoj haujlwm kom txhua tus tuaj yeem nkag siab tias peb tau teeb tsa li cas. Cov ntaub ntawv ntau ntxiv txog yuav ua li cas node-red thiab wampserver ua haujlwm yuav nyob hauv cov theem tom ntej.

Kauj Ruam 3: 3D Luam Ntawv Lub Tsev

3D Luam Ntawv Lub Tsev
3D Luam Ntawv Lub Tsev

Peb siv qhov loj 18x16, thiab yuav tsis ua rau nws me dua vim qhov tseeb tias cov cuab yeej yuav tsum haum rau sab hauv. Rau 3D luam ntawv tsuas yog siv txhua yam koj tau ntsib nrog, lossis siv Fusion360 lossis SketchUp. Yog tias koj xav siv ntau yam khoom lossis khoom siv rau txoj haujlwm, koj yuav xav tau lub tsev loj dua los ua haujlwm nrog, yam tsawg kawg yog tias koj xav tau cov cuab yeej sab hauv.

Lub tsev peb ua yog tsuas yog ua haujlwm yooj yim thiab yooj yim. Koj tuaj yeem pom tseeb ua kom nws muag heev thiab saib zoo dua yog tias koj txaus siab rau qhov ntawd. Tab sis peb nyiam ua raws txoj cai KISS, Khaws Nws Yooj Yim Yooj Yim.

Kauj ruam 4: Fritzing

Fritzing
Fritzing

Yog tias koj xav fritz nws txoj hauv kev, koj xav tau cov ntaub ntawv zoo ib yam kom ntseeg tau tias txoj haujlwm yuav ua haujlwm raws li tau npaj tseg. Txoj hauj lwm ntawm cov khoom tsuas yog ua kom yooj yim pom tias lawv tau xaim li cas. Lub vijtsam LCD mus rau lub ru tsev, qhov uas peb txiav lub qhov rau nws thiab kaw nws, cov khoom seem yog sab hauv tsev.

Kauj ruam 5: Coding

Kev Coding
Kev Coding
Kev Coding
Kev Coding
Kev Coding
Kev Coding

Cov cai tau sau hauv Arduino uas yog ua ke ntawm C thiab C ++ cov lus programming. Nco ntsoov tias tib lub tsev qiv ntawv suav nrog yog tias daim ntawv tau sim.

Kauj Ruam 6: Node-red

Node-liab
Node-liab
Node-liab
Node-liab

Node-red yog software koj rub tawm ntawm koj lub PC los ntawm CMD. nws yog cov cuab yeej txhim kho ntws raws siv rau kev pom lub ntsej muag, uas muab qhov browser-based flow editor.

Nws ua lub luag haujlwm tseem ceeb hauv kev tuav cov txiaj ntsig peb tau txais los ntawm DHT-sensor thiab tom qab ntawd tso saib lawv raws li ntsuas ntawm lub dashboard. Qhov no yog rau cov neeg siv ntawm txoj haujlwm kom yooj yim paub tias lub kaw lus ua haujlwm li cas tam sim no. Los ntawm kev saib cov ntsuas ntsuas tus neeg siv yuav paub txog sab hauv tsev-thiab sab nraum zoov-qhov kub thiab txias, sab hauv tsev, qhov nrawm ntawm tus kiv cua thiab cov lus ceeb toom huab cua ib yam. Sib nrug los ntawm saib nws digitally, nws tseem tuaj yeem pom ntawm lub ru tsev ntawm lub tsev ntawm LCD-screen.

Peb tau tshaj tawm cov cai los ntawm peb lub node-liab dhau ntawm cov ntawv teev cia kom txhua tus tuaj yeem siv nws. Dab tsi koj yuav tsum tau ua yog rub tawm liab ntawm koj lub cuab yeej thiab ntshuam nws hauv ib lub tab ntawm lub dashboard. Thaum ua tiav ua kom ntseeg tau tias koj muaj koj li Arduino teeb tsa rau COM3 thiab muaj tib qho SQL database hauv Wampserver teeb tsa. Peb kuj tau txiav txim siab ntshuam cov ntaub ntawv los ntawm Weather.com, los muab kev pom ntawm qhov kub thiab txias sab nraum zoov hauv nroog xaiv. Peb hloov pauv qhov debhenheit mus rau celcius kom cov lej nyeem tau zoo rau peb. Ntawm no peb txiav txim siab qhov kub thiab txias nyob nruab nrab ntawm -100 thiab 100 degrees sinse uas yog qhov muaj txiaj ntsig zoo heev uas yuav tsis raug hla dhau.

Lub hauv paus tseem ceeb heev yog tias koj kuj yuav tsum muaj tib lub tsev qiv ntawv teeb tsa hauv node-liab txhawm rau kom muaj haujlwm zoo ib yam. Hauv kev tswj pallet koj tuaj yeem nqa cov tsev qiv ntawv, thiab yam koj xav tau kom zoo ib yam li peb yog:

node-liab

node-red-contrib-string

ntawm-liab-contrib-unit-converter

ntawm-liab-dashboard

ntawm-liab-node-arduino

ntawm-liab-node-feedparser

node-liab-node-mysql

Nws yog rub tawm dawb thiab yog qhov tseem ceeb rau qhov txiaj ntsig ntawm lub hauv paus. Node-pas yuav tsis ua haujlwm tsis muaj cov tsev qiv ntawv no thiab yuav tsuas yog ua rau koj yuam kev yog tias koj sim yam tsis muaj lawv.

Kauj ruam 7: Wampserver MySQL

Wampserver MySQL
Wampserver MySQL

Wampserver: MySQL-database tau siv los khaws cov ntaub ntawv los ntawm Arduino. Hauv qhov no nws nws qhov kub thiab txias nyob sab hauv tsev, kiv cua-nrawm thiab av noo. Txhua yam ntawm hom ntaub ntawv teev npe no ua haujlwm sab hauv ntawm lub khoos phis tawj. Txhawm rau nkag mus koj yuav tsum siv tus lej ID "hauv paus" thiab thaj chaw chaws yuav tsum tsis muaj dab tsi. Los ntawm node-liab nws yog qhov tseem ceeb uas cov ntaub ntawv koj xa yog muab cov npe zoo ib yam li MySQL, lwm cov ntaub ntawv yuav tsis ncav cuag tus neeg rau zaub mov thiab yuav muaj qhov yuam kev hauv node-liab.

Hauv MySQL koj yuav tsum tsim cov ntaub ntawv thiab hauv peb qhov xwm txheej peb lub npe nws 'nodered'. Hauv cov ntaub ntawv no koj tsim lub rooj uas peb sib cuag nrog projekt, hauv cov lus no koj yuav tsum tsim kab nrog cov npe rau cov ntaub ntawv koj xav khaws hauv lawv. Peb muaj kiv cua-nrawm, huab cua nyob sab hauv tsev, nyob sab nraum zoov, kub thiab sijhawm. Lub sijhawm tau muab los ntawm qhov liab thiab lwm qhov yog cov ntaub ntawv los ntawm Arduino.

Kauj Ruam 8: Piv txwv ntawm Txoj Haujlwm

Kev ua qauv qhia ntawm txoj haujlwm ua haujlwm raws li nws yuav tsum tau ua.

Pom zoo: