Cov txheej txheem:

Yuav Ua Li Cas EchoLight: 3 Kauj Ruam
Yuav Ua Li Cas EchoLight: 3 Kauj Ruam

Video: Yuav Ua Li Cas EchoLight: 3 Kauj Ruam

Video: Yuav Ua Li Cas EchoLight: 3 Kauj Ruam
Video: Cas Tsis Xaiv Koj - R-Lin Thoj New Song Original By Zaj Dub [Official MV] 2023 2024, Kaum ib hlis
Anonim
Yuav Ua Li Cas EchoLight
Yuav Ua Li Cas EchoLight

EchoLight yog cov cuab yeej siv yooj yim tsim los ua kom txoj kev nyab xeeb los ntawm kev ua rau tib neeg paub thaum lawv tab tom nrawm. EchoLight yog Raspberry Pi raws cov cuab yeej siv hauv qhov liab-liab uas ci ntau lub xim LED thiab ua lub tswb ceeb toom rau tib neeg yog tias lawv mus txog qhov txaus ntshai. EchoLight kuj tseem muaj peev xwm SMS, tso cai rau nws xa cov lus ceeb toom thiab xa cov ntsiab lus ntawm koj qhov kev mus ncig ua si.

Khoom siv

  1. Ib (1) Raspberry Pi 3
  2. Ib (1) Multicolor LED
  3. Ib (1) Active Alarm Sound Module (rau Arduino)
  4. Rau (6) Poj niam rau Poj Niam Hlau
  5. Ib (1) Ethernet Cable
  6. (Tsis teb los tau) Raspberry Pi Protective Case (los nrog ob (2) Heatsinks)

Kauj ruam 1: Kev teeb tsa

Kev teeb tsa
Kev teeb tsa
Kev teeb tsa
Kev teeb tsa

Txoj haujlwm no siv ntau lub tsev qiv ntawv sib txawv, feem ntau tsim cov nodes tshiab rau Node-Red. Qee qhov kev teeb tsa no yuav tsum ua tiav hauv koj lub khoos phis tawj, thaum lwm tus yuav tsum ua tiav ntawm koj li Raspberry Pi.

Khoos phis tawj thiab kev ua haujlwm:

(Windows) Nruab PuTTY

(Mac) Tsis tas yuav rub tawm

Tom ntej no, peb SSH rau hauv Raspberry Pi. Ua qhov no sib txawv Mac thiab Windows cov neeg siv, yog li ua raws cov kab ntawv sib txuas.

Ua ntej tshaj, txuas koj li Raspberry Pi rau koj li WiFi nrog Ethernet Cable

(Windows) Txuas rau Raspberry Pi nrog PuTTY, tom qab ntawd Txuas Raspberry Pi rau koj li WiFi

(Mac) SSH los ntawm Terminal ncaj qha, tom qab ntawd Txuas Raspberry Pi rau koj li WiFi

Yeem rau Mac thiab Windows:

Nthuav lub hauv paus muab faib ntawm Raspberry Pi SD daim npav

Kev teeb tsa ntawm Raspberry Pi:

Node-Liab

SMS Node - Twilio

Counter Node

Kauj ruam 2: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv

Tam sim no koj muaj txhua qhov tsim nyog rub tawm tiav, nws yog lub sijhawm los txuas lub LED thiab tswb rau koj li Raspberry Pi. Koj tuaj yeem siv daim duab saum toj no lossis cov npe hauv qab no los pab koj txuas cov xov hlau raug rau tus pin raug.

Nco tseg: Cov wirings no yuav tsum yog qhov tseeb rau txoj haujlwm ntawm cov kauj ruam tom ntej los ua haujlwm, txawm hais tias yog koj xav kom program nws koj tus kheej xav tias yuav xaim kab ke sib txawv.

LED ntau xim:

Peb tsuas yog yuav tsum tau txuas cov xim liab thiab ntsuab ntawm LED, raws li liab yuav qhia txog kev nrawm thiab ntsuab yuav qhia txog kev nyab xeeb, yog li xiav tsis tsim nyog.

Liab - Pin 16

Hauv av - Pin 9

Ntsuab - Pin 15

Tswb Tswb Suab Module:

Txawm hais tias nws yuav tsis tsim nyog, Kuv pom zoo muab daim kab xev lossis lwm yam khoom tso rau hauv lub tswb, vim tias nws tuaj yeem ua rau nrov nrov thiab tsis txaus ntseeg.

VCC - Pin 1

I/O - Pin 11

Hauv av - Tus Pin 6

Kauj Ruam 3: Ntxiv Txoj Haujlwm

Ntxiv qhov Program
Ntxiv qhov Program
Ntxiv qhov Program
Ntxiv qhov Program
Ntxiv qhov Program
Ntxiv qhov Program
Ntxiv qhov Program
Ntxiv qhov Program

Tam sim no nws yog lub sijhawm ntxiv cov cai. SSH rau hauv koj li Raspberry Pi, nkag mus rau hauv.node-liab cov ntaub ntawv, thiab pib qhov program liab. Tom qab ntawd, mus rau sab xis sab saum toj (zoo li peb kab sib tshooj), nyem rau nws, nyem rau ntshuam> ntawv los teev cia. Tom qab ntawd, muab cov lej hauv qab no tso rau hauv lub thawv. Txoj cai no yuav qhib lub tswb, ua kom lub teeb hloov los ntawm ntsuab mus rau liab raws li qhov simulated tus tsav tsheb nce ntxiv (raws li qhia hauv cov duab saum toj no), thiab xa cov ntawv xov xwm thaum tus neeg tsav tsheb mus nrawm heev thiab cov ntaub ntawv hais txog kev caij tsheb thaum lub array yog tsis muaj dej.

[{"id": "412bd4f2.ad4b3c", "type": "tab", "label": "Main", "disabled": cuav, "info": ""}, {"id": "e490141d. ad9358 "," type ":" function "," z ":" 412bd4f2.ad4b3c "," name ":" Speedometer Sim "," func ":" msg.payload = msg.payload [msg.count]; / nreturn msg; "," outputs ": 1," noerr ": 0," x ": 110," y ": 300," xov hlau ":

Txij li thaum peb tsis muaj lub ntsuas hluav taws xob lossis GPS, txawm hais tias nws tuaj yeem yooj yim me ntsis ntxiv rau hauv kab ke, muaj 6 qhov sib koom ua ke ua raws cov kev txwv ceev thiab lub tsheb qeeb qeeb koj tuaj yeem hloov kho cov kab ke uas tso tawm cov txiaj ntsig no hauv kev txhaj tshuaj ' array.

Tam sim no, txhua yam koj yuav tsum tau ua yog sau npe rau Twilio tus lej nyiaj thiab nkag mus rau koj tus lej xov tooj thiab cov ntaub ntawv nyiaj txiag rau hauv ob lub xov tooj SMS xiav. Tom qab ntawd koj tuaj yeem nkag mus rau koj tus lej xov tooj kom tau txais cov ntawv.

Koj ua tiav! Tsuas yog nias lub pob "Deploy" liab nyob rau sab xis saum toj thiab koj yuav tsum zoo mus! Xav tias dawb los ntxiv GPS lub peev xwm, lub ntsuas hluav taws xob, lossis lwm yam qauv los txhim kho ntawm peb cov qauv.

Pom zoo: