Cov txheej txheem:

UCL-IIoT Xim Sorter: 7 Kauj Ruam
UCL-IIoT Xim Sorter: 7 Kauj Ruam

Video: UCL-IIoT Xim Sorter: 7 Kauj Ruam

Video: UCL-IIoT Xim Sorter: 7 Kauj Ruam
Video: Traffair - UCL IoT Project 2024, Kaum ib hlis
Anonim
UCL-IIoT Xim Sorter
UCL-IIoT Xim Sorter

Taw qhia

Hauv cov lus qhia no peb yuav sim piav qhia, yuav ua li cas peb yuav mus rau lub cajmeem, thiab yuav ua li cas peb khaws lub tshuab xim cais. Nws yuav raug teeb tsa hauv Arduino Uno, los ntawm Arduino Software.

Txoj haujlwm no yog qhov kev xaiv ntawm peb txoj kev kawm. Lub ntsiab lus nrog nws, yog kawm txog kev lag luam 4.0.

Cov kev xav tom qab txoj haujlwm no feem ntau yog ib qho los ntawm peb pab pawg Casper xav, tias nws xav tau lub tshuab uas tuaj yeem txheeb tawm cov xim los ntawm piv txwv li M & Ms hnab. Peb tau ua lub tshuab no uas los ntawm kev pab los ntawm peb lub sensor yuav txheeb cov xim rau qee lub tais sib txawv.

Hauv qab no muaj cov npe ntawm cov khoom peb yuav pom hla lub sijhawm qhia no.

KAUJ RUAM 1: Cov npe khoom

KAUJ RUAM 2: Kev ua haujlwm

KAUJ RUAM 3: Kos duab

KAUJ RUAM 4: Daim Phiaj Xwm

KAUJ RUAM 5: Tsim peb lub tshuab

Kauj ruam 6: Database

Kauj Ruam 7: Node Liab

KAUJ RUAM 8: Yees duab

Kauj Ruam 1: KAUJ RUAM 1: Cov Khoom Siv

Cov npe khoom

Arduino Nano Cov

Arduino pawg thawj coj saib

1 x USB cable

3D tshuab luam ntawv

laser txiav

Servomotor

Noob Liab

Ntau cov xov hlau

Xim sensor

9v zog

Breadboard Power Supply Module

Kauj Ruam 2: KAUJ RUAM 2: Khoos phis tawj

KAUJ RUAM 2: Kev ua haujlwm
KAUJ RUAM 2: Kev ua haujlwm

Peb siv a

"Hloov rooj" los tswj cov kev pabcuam hauv qab, yog li thaum rooj plaub hu ua nws sau txoj haujlwm rau servo thiab nws ntxiv 1 rau lub txee.

Peb siv "yog" fruition kom ua rau tsis zoo xim xim lub sensor tau pom vim nws pom ntau npaum li cas liab, ntsuab thiab xiav tau rov qab los.

Kauj Ruam 3: KAUJ RUAM 3: Kos

KAUJ RUAM 3: Kos duab
KAUJ RUAM 3: Kos duab

Daim duab no qhia yuav ua li cas txuas koj cov xov hlau rau koj arduino, ntawm peb tus qauv peb tau siv lub khob cij fais fab kom ua lub zog txaus rau peb cov servo's thiab xim xim.

tab sis qhov tseem ceeb tshaj plaws yog tsis txhob siv lub hwj chim los ntawm arduino nano. txuas nws zoo li daim duab lossis zoo li peb ua nws

Kauj Ruam 4: KAUJ RUAM 4: Daim Phiaj Xwm

Peb tau ua tus txheej txheem cej luam, yog li tib neeg tuaj yeem pom ib qib zuj zus tias muaj dab tsi tshwm sim.

Nws tau tsim hauv qhov chaw pub dawb hauv is taws nem hu ua draw.io. Thaum peb sim ua nws mus rau PDF nws tsis ua nws raug, yog li peb tau coj qee qhov screenshots thiab hu lawv los ntawm lub npe thiab nplooj ntawv.

Kauj Ruam 5: KAUJ RUAM 5: Tsim Peb Lub Tshuab thiab Luam Ntawv 3D

KAUJ RUAM 5: Tsim Peb Lub Tshuab thiab Luam Ntawv 3D
KAUJ RUAM 5: Tsim Peb Lub Tshuab thiab Luam Ntawv 3D

Peb tau pom qhov tsim ntawm peb lub tshuab, ntawm lub vev xaib thiab ua tsaug ntau rau lub vev xaib

peb tau siv lub lasercutter los txiav peb 3 hli tuab ntoo ntoo thiab tsuas yog ib qho ntawm nws yog 6 hli tuab nws yog ib feem ntawm servo sab saum toj, vim tias peb siv M & M's thiab thaum nws yog 3 hli tuab M & m tsuas yog ya tawm ntawm nws.

Lub laser txiav peb siv adobe inventor

Peb muaj 3D luam ntawv pibe thiab tus tuav rau hauv qab servo kom tau lub kaum sab xis.

Kauj Ruam 6: Kauj Ruam 6: Database

Kauj ruam 6: Database

Peb muaj los ntawm Wampserver64 ua cov ntaub ntawv khaws cia.

Hauv peb cov ntaub ntawv peb tau xaiv peb khaws cov xim sib txawv, thiab Lub Sijhawm rau peb qhov sib txawv.

Sijhawm, Liab, Daj, Ntsuab, Xiav, Xim av, Txiv Kab ntxwv.

Peb yuav tau txais cov ntaub ntawv los ntawm cov liab, thiab cov liab yuav tau txais cov ntaub ntawv los ntawm peb Arduino.

Hauv qab peb tus browser nws yuav qhia peb cov xim thiab pom tias yuav muaj khaws cia xim.

Kauj Ruam 7: Kauj Ruam 7: Node Liab

Kauj Ruam 7: Node Liab
Kauj Ruam 7: Node Liab
Kauj Ruam 7: Node Liab
Kauj Ruam 7: Node Liab

Kauj Ruam 7: Node Liab

Node Red yog ib qhov program koj tuaj yeem nruab los ntawm koj cmd ntawm koj lub computer.

Tom qab ntawd hauv cmd koj sau ntawm-liab, thiab tom qab ntawd nws yuav pib.

Mus rau koj tus browser thiab sau https://127.0.0.1:1880. Yog tias koj xav tau dashboard nws yuav luag zoo ib yam tsuas yog sau https://127.0.0.1:1880. tom qab ntawv nplooj ntawv yuav qhia koj lub dashboard.

Hauv peb qhov liab peb tau ua qhov haujlwm uas peb yuav txuas peb Arduino, thiab qhia cov xim sib txawv, thiab tau txuas nrog peb cov database.

Thaum peb cov ntaub ntawv xav tau rov pib dua peb muaj lub pob kom rov pib dua peb cov ntaub ntawv.

chaws yog:

[{"id": "994cb868.55db68", "type": "tab", "label": "Sorteringsmaksine", "xiam oob qhab": muaj tseeb, "info": ""}, {"id": "1370c730. 4ce339 "," type ":" function "," z ":" 994cb868.55db68 "," name ":" Node-RED MySQL "," func ":" var data = msg.payload.split (", / "); / nvar Red = data [0]; / nvar Yellow = data [1]; / nvar Green = data [2]; / nvar Blue = data [3]; / nvar Brown = data [4]; / nvar Orange = data [5]; / nvar out = / "INSERT INTO nodered.test (Time, Liab, Daj, Ntsuab, Xiav, Xim av, Xim av, Txiv Kab ntxwv) VALUES ('\"+Hnub Tshiab (). ToISOString (). Hlais (0, 19).replace ('T', '')+\ "',' \"+Liab+\ "',' \"+Daj+\ "',' \"+Ntsuab+\ "',' \"+ Xiav+\ "',' \"+Xim av+\ "',' \"+Txiv kab ntxwv+\ "') "; / nmsg.topic = tawm; / nreturn msg; / n / n "," outputs ": 1," noerr ": 0," x ": 233," y ": 345.0000047683716," xov hlau ":

Pom zoo: