Cov txheej txheem:

MachineEye: 5 Kauj Ruam
MachineEye: 5 Kauj Ruam

Video: MachineEye: 5 Kauj Ruam

Video: MachineEye: 5 Kauj Ruam
Video: Root Canal Treatment & Tooth Abscess 2024, Kaum ib hlis
Anonim
TshuabEye
TshuabEye

Kuv tau ua ke Texas Instrument Sensor Tag CC2650 nrog Raspberry Pi lub koob yees duab los txhim kho lub dashboard nrog qee cov ntaub ntawv txaus. Kuv xaim qhov haujlwm siv IBM Node Red uas los teeb tsa ntawm Raspberry Pi duab. Lub koob yees duab xa cov ntaub ntawv mus rau Microsoft Cognitive services kom rov qab piav qhia txog lub koob yees duab pom li cas. Cov ntaub ntawv no tuaj yeem qhib rau kev siv tsis kawg. Kuv piv txwv yog qhov yooj yim uas qhia sab hauv cov huab cua thiab daim duab nrog piav qhia txog lub koob yees duab pom dab tsi. Kuv

Kauj ruam 1: Kho vajtse thiab Software xav tau

Kho vajtse

1. Raspberry Pi 3 (koj tseem tuaj yeem siv Pi 2 lossis Pi qauv B)

2. Raspberry Pi lub koob yees duab

3. Texas Instruments CC2650 Sensor tag

4. SD Card

Software

1. Raspbian Jessie nrog Pixel version: Peb Hlis 2017

www.raspberrypi.org/downloads/raspbian/

2. Putty - lub davhlau ya nyob twg rau program koj Pi

www.chiark.greenend.org.uk/~sgtatham/putty/

3. Ntxiv rau Node Liab

Kuv tau piav qhia cov nodes kom raug teeb tsa ntawm Pi hauv Kauj Ruam 3: Teeb Node Liab.

Kauj ruam 2:

Kauj Ruam 3: Teeb Kho Vajtse

Teeb Kho Vajtse
Teeb Kho Vajtse

Kuv tab tom siv Raspberry Pi 3 thiab Sensor Tag CC2650 ntim nrog 7 lub cim. Raspberry Pi 3 muaj nyob ntawm lub nkoj WiFi thiab Bluetooth yog li peb tsis xav tau ntau dongles. Kuv tsuas yog dongle yog siv kuv tus nas wireless thiab lub rooj tsavxwm tseem ceeb. Koj tuaj yeem siv tus nom Raspberry Pi lub vev xaib rub tawm cov duab thiab ua kom koj Pi nce thiab khiav:

www.raspberrypi.org/products/raspberry-pi-3-model-b/

Lub Sensor Tag tsuas yog xav kom muaj cov yas pluaj rub thiab nws yuav tsum zoo mus. Koj tuaj yeem paub cov ntaub ntawv ntxiv ntawm no.

www.ti.com/ww/en/wireless_connectivity/sensortag/tearDown.html

Lub koob yees duab Raspberry Pi kuj tseem muaj ntau lub blog los pab koj teeb tsa lub koob yees duab:

www.raspberrypi.org/products/camera-module/

Txoj haujlwm no muaj Adafruit lub vijtsam kov. Qhov no yog nyob ntawm yeem thiab tsis xav tau rau txoj haujlwm no.

Kauj Ruam 4: Teeb Node Liab

Teeb Node Liab
Teeb Node Liab
Teeb Node Liab
Teeb Node Liab

Node Red yog ib qho yooj yim siv cov cuab yeej uas twb tau teeb tsa ntawm Raspberry Pi. Xav paub ntau ntxiv tuaj yeem nrhiav tau ntawm no:

nodered.org/

Cov kauj ruam tseem ceeb tshaj plaws ntawm no yog hloov kho koj li version ntawm Pi:

sudo hloov tshiab-nodejs-thiab-node

Tam sim no xyuas koj version. Kuv siv Putty rau txoj haujlwm no ua kuv lub davhlau ya nyob twg.

npm -v

3.10.10

node -v

6.10.0

Tam sim no koj Node Red tau hloov kho peb yuav ntxiv qee qhov los txuas rau peb Raspberry Pi Lub Koob Yees Duab thiab Sensor cim npe. Txhua qhov ntawm yuav tsum tau teeb tsa hauv qab cov npe no:

~/.node-liab

Cia peb pib!

npm nruab node-red-contrib-camerapi

npm nruab node-red-node-dweetio

npm nruab node-red-contrib-freeboard

npm nruab node-red-contrib-cognitive-services

npm nruab node-red-node-sensortag

npm nruab node-red-node-dropbox

Qhov no yuav siv sijhawm me ntsis thiab yog tias koj tau txais cov lus ceeb toom uas yuav tsum ua li cas. Kuv tau suav nrog qhov txhaj tshuaj kom thaij duab ntawm cov sijhawm teev tseg. Dweetio yog rau Lub Koob Yees Duab Pom pom los nyeem cov lus piav qhia lossis cov cim npe los ntawm daim duab thiab xa nws mus rau Freeboard Dash Board lub thawv ntawv. Cognitive Services Services suav nrog Computer Vision node.

Koj yuav tsum tau txais tus lej tso npe dawb los ntawm Microsoft rau Computer Vision node.

www.microsoft.com/cognitive-services/en-US/subscriptions?mode=NewTrials

Dropbox node zoo meej rau txoj haujlwm no. Kuv siv phau ntawv qhia los ntawm Adafruit pom ntawm no:

learn.adafruit.com/diy-wifi-raspberry-pi-touch-cam?view=all

Txav mus rau Dropbox Teeb. Qhov no yuav tsum ua haujlwm ntawm ib qho Pi thiab lawv tau teeb tsa yooj yim dua. Nws yuav qhia koj kom teeb tsa Dropbox thiab yuav ua li cas nkag mus rau Cov Keys koj xav tau txuas rau Dropbox. Nov yog qhov kev qhia zoo tshaj plaws uas kuv tau pom. Tab sis kom pom daim duab hauv Dashboard Kuv yuav tsum tau kho qhov txuas rau daim duab. Kuv tau xaiv los siv Dropbox cov cuab yeej hu ua Chooser kom tau txais kev txuas ncaj qha rau daim duab rub tawm rau Dropbox. Kuv yuav khaws tib lub npe rau daim duab-j.webp

Txhawm rau pom koj Node Red flow tsuas yog qhib qhov browser. Kuv nyiam Chrome thiab qhov no tsuas yog piv txwv rau hom ntawv:

192.168.1.1:1880

Kauj Ruam 5: Teeb DashBoard

Teeb DashBoard
Teeb DashBoard

FreeBoard Dashboard yog txoj hauv kev hloov pauv tau thiab yooj yim rau pom cov ntaub ntawv hauv txoj hauv kev muaj txiaj ntsig. Muaj ob qhov chaw teeb tsa cov ntaub ntawv thiab txhua cov ntaub ntawv teeb tsa nrog "kuv-yam-npe". Kuv txuas thawj dweetio ntawm hu ua Machine Eye rau ntawm daim duab. Qhov no yuav xa lub koob yees duab them mus rau huab thiab yuav tso cai rau peb ntes cov ntaub ntawv ntawm lub dashboard. Qhov no yuav yog lub npov ntawv.

Qhov Dweetio thib ob yog rau lub cim cim cim. Lub node no txuas nrog lub cim cim npe thiab yuav rov xa cov nyiaj them ntawm cov ntsuas mus rau huab thiab rov ua dua. ntawm lub dashboard. Cov ntaub ntawv yog nyob ntawm lub sijhawm. Kuv tau ntxiv qee qhov panes sensor rau qhov kev ua yeeb yam no.

Lub thawv duab yog Daim Duab pane nrog qhov txuas ncaj qha rau Dropbox. Daim duab thiab cov lus piav qhia yuav tsum hloov pauv txhua lub sijhawm qhib daim duab.

Daim duab saum toj no yog daim duab thaij ntawm kuv tus miv miv. Kuv tau sau npe lig rau qhov kev sib tw thiab vim peb qhov huab cua phem heev ntawm ntug dej hiav txwv Atlantic ntawm Canada tsis tuaj yeem nqa lub koob yees duab sab nraud. Dej nag thiab huab cua txias yuav tua kuv cov khoom siv hluav taws xob. Kuv kuj xav tau kuv cov phooj ywg thiab lawv cov menyuam mos liab zoo tshaj plaws tuaj rau kev yees duab.

Pom zoo: