Cov txheej txheem:

Filia - Teeb Lub Tsev Ua Phooj Ywg: 7 Kauj Ruam
Filia - Teeb Lub Tsev Ua Phooj Ywg: 7 Kauj Ruam

Video: Filia - Teeb Lub Tsev Ua Phooj Ywg: 7 Kauj Ruam

Video: Filia - Teeb Lub Tsev Ua Phooj Ywg: 7 Kauj Ruam
Video: Qhia Lub Hli Zoo Ua vaj ua Tsev 2024, Kaum ib hlis
Anonim
Filia - Lub Teeb Pom Kev Zoo Hauv Tsev
Filia - Lub Teeb Pom Kev Zoo Hauv Tsev

Filia txhais tau tias Kev phooj ywg nyob rau hauv Greek thaum ub. Lub tswv yim yog kom muaj ob lub teeb nyob hauv ntau qhov chaw ntawm lub ntiaj teb, thiab thaum koj kov ib lub teeb, ob qho tib si pauv lawv cov xim. Yog li yog tias koj xav qhia ib tus neeg nyob rau lwm sab ntawm lub ntiaj teb koj tab tom xav txog lawv, koj tuaj yeem kais lub teeb thiab cov xim yuav hloov, tom qab ntawd lawv tuaj yeem ua tau ib yam (yog tias lawv tsaug zog).

Nws ua haujlwm li cas?

Ob lub teeb tau nruab nrog lub ntsej muag kov, RGB LED, thiab WEMOS D1 Mini (WiFi txuas txuas), thiab txuas nrog lub zog ntawm USB cable. Hauv nruab nrab muaj Amazon IoT (Tus Kws Ua Haujlwm ntawm Yam) tus neeg rau zaub mov, uas yog Publish-Subscribe server (raws li txhua cov lus uas tau xa mus rau nws, nws tshaj tawm nws rau txhua yam khoom siv sib txuas).

Txhua lub teeb:

  1. Kev sim txuas rau WiFi
  2. Yog tias nws ua tsis tiav, nws qhib nws tus kheej lub network (raws li qhov nkag mus tau) thiab tso cai rau koj nkag mus rau cov ntaub ntawv pov thawj rau lub network xav tau.
  3. Yog tias nws ua tiav, nws txuas nrog tus neeg rau zaub mov thiab tos kom nkag los lossis xa xov los ntawm server.
  4. Thaum kov lub sensor, nws randomizes cov xim thiab xa nws mus rau tus neeg rau zaub mov, uas yuav xa nws mus rau txhua lub teeb.
  5. Raws li txhua cov lus los ntawm tus neeg rau zaub mov, nws teeb xim rau xim hauv cov lus.

Kauj Ruam 1: Kauj Ruam 1 - Yam Koj Yuav Tsum Tau

Kauj Ruam 1 - Yam Koj Yuav Tsum Tau
Kauj Ruam 1 - Yam Koj Yuav Tsum Tau

Cov cuab yeej

  • Solder Iron (& Solder tau kawg. Koj kuj tseem tuaj yeem siv lub tshuab nqus tsev solder, txhais tes thib peb thiab Tus Tuav Cov Hlau Yog tias koj xav tau, qhov no yog qhov koj hu. Kuv rov hais dua txhua tus.)
  • Plyer lossis Cov Hluav Taws Xob Hluav Taws Xob (yog tias koj npaj yuav tshem cov xov hlau ntawm koj tus kheej, uas koj yuav xav tau ua).
  • Multimeter, txhawm rau kom ntseeg tau tias peb cov kev hloov pauv tsis muaj qhov tsis txaus hauv nws.
  • Txiab
  • Ntsia Hlau. Xyuas kom koj tau txais cov muaj zog, vim tias koj yuav tsum tsim cov ntsia hlau xov ntawm koj tus kheej.
  • Kub Nplaum rab phom, thiab qee cov kua nplaum.
  • 3D tshuab luam ntawv lossis nkag mus rau ib qho. Nws xav tau kom tuaj yeem luam tawm dawb, thiab tsim cov phab ntsa nyias nyias (2 hli). Kuv tau xa kuv mus rau qhov chaw tshaj lij tshaj lij, nws raug nqi kuv li 20 $ thiab nws muaj nqis heev, vim tias lawv tau ua tiav.
  • AWS IoT server. Kev tsim cov neeg rau zaub mov no tsis yog qhov dav ntawm cov lus qhia no, tab sis ntawm no yog qhov txuas rau cov vis dis aus uas piav qhia nws. UI tuaj yeem hloov pauv me ntsis, tab sis lub tswv yim tag nrho yog tib yam. Sau npe cov cuab yeej nyob ntawd thiab khaws cov cai uas siv rau ntawd, koj yuav tsum tau ntxig nws rau hauv cov cai tom qab.

Cov khoom siv thiab ntu

  • Iso
  • Hlau Kuv siv cov xim jumper xov hlau ua kom phau ntawv nkag siab ntau dua, tab sis koj tsis tas yuav ua qhov no. Nws yog kev nyab xeeb ib txwm los cim qhov zoo ntawm liab thiab qhov tsis zoo hauv dub lossis xiav. Nyob rau hauv tag nrho peb siv li 20 cm ntawm cov xov hlau ib lub teeb.
  • USB cable (ib lub teeb)
  • Ntsia Hlau Cov ntsia hlau uas peb siv yuav tsum haum rau lub qhov ntawm daim ntawv luam, yog li peb yuav siv 3 x 3M x 10mm thiab 4 x 2M x 3mm bolts ib lub teeb.
  • Ib D1 mini nti ib lub teeb.
  • Ib qho TTP223B kov lub teeb rau ib lub teeb.
  • Ib 10 hli ib txwm-cathode RGB LED (zoo li no ib qho) rau ib lub teeb.
  • Qee cov ntawv ci
  • Qee cov kab xev

Kauj Ruam 2: Kauj Ruam 2: Tus Qauv

Kauj ruam 2: Ncej
Kauj ruam 2: Ncej
Kauj ruam 2: Ncej
Kauj ruam 2: Ncej
Kauj ruam 2: Ncej
Kauj ruam 2: Ncej
Kauj ruam 2: Ncej
Kauj ruam 2: Ncej

Lub thav duab yooj yim txaus los luam tawm. Kuv siv ABS dawb. Txij li nws yog nyias heev, nws zoo li pob tshab ib nrab, uas yog zoo meej rau lub teeb no.

Tom qab peb luam tawm cov ntu, peb yuav tsum tau lo ob ntu ntawm lub dome los tsim ib lub dome nkaus xwb. Lawv raug hu ua lub dome sab saud thiab lub dome qis dua, thiab peb muab nplaum rau lawv siv cov kua nplaum kub hla kab, thiab tom qab ntawd ntxuav nws nrog rab riam lossis txiab.

Kauj Ruam 3: Kauj Ruam 3: RGB LED

Kauj Ruam 3: RGB LED
Kauj Ruam 3: RGB LED
Kauj Ruam 3: RGB LED
Kauj Ruam 3: RGB LED
Kauj Ruam 3: RGB LED
Kauj Ruam 3: RGB LED

RGB LED muaj plaub qhov txuas, peb qhov anodes (qhov xaus zoo) hauv txhua ntawm peb xim: liab, ntsuab thiab xiav, thiab cathode (qhov tsis zoo kawg). Nov yog qhov "common cathode" txhais li cas. Peb tab tom txuas mus rau txhua qhov ntawm cov xov hlau ntawm LED sib piv cov xov hlau (Kuv siv cov xim xim yog li nws yuav yooj yim pom tom qab, koj tuaj yeem cim koj cov xov hlau nyob rau hauv txhua txoj kev uas tuaj yeem paub qhov txawv ntawm ib leeg). Peb yuav txuas cov xov hlau kom ze rau ntawm lub cev LED li peb tuaj yeem ua tau thiab tom qab ntawd txiav qhov rov qab ntawm cov ceg LED, yog li lawv yuav tsis siv qhov chaw.

Tom qab ntawd peb yuav nyem cov xov hlau hla lub qhov nyob hauv nruab nrab ntawm lub hauv paus, los ntawm qhov chaw tawm. Lub qhov tsuas yog dais me me uas tuaj yeem haum rau txhua lub xov hlau, yog li peb yuav tau nyem lawv ua ke. Braiding lawv ua ke tuaj yeem ua kom yooj yim kom lawv hla lub qhov. Tom qab ntawd peb yuav sim siv lub multimeter tias tsis muaj qhov tsis txaus.

Tom qab tau txais cov xov hlau dhau los, thiab ntsuas siv lub ntsuas ntsuas lawv tsis kov ib leeg, peb yuav muab cov kua nplaum coj mus rau nws lub ntsej muag uas siv cov kua nplaum kub.

Kauj Ruam 4: Kauj Ruam 4: Khawm

Kauj ruam 4: Khawm
Kauj ruam 4: Khawm
Kauj ruam 4: Khawm
Kauj ruam 4: Khawm
Kauj ruam 4: Khawm
Kauj ruam 4: Khawm
Kauj ruam 4: Khawm
Kauj ruam 4: Khawm

Qhov no tsis yog qhov "khawm". Qhov kov lub ntsej muag loj dhau kom haum rau saum lub dome, yog li peb yuav tsum nthuav nws cov txheej txheem coj mus rau saum lub dome kom peb txhais tes tuaj yeem ncav tau. Peb nqa lub tog raj kheej uas peb luam tawm nrog lub dome, thiab qhwv nws ntsug nrog cov ntawv ci ci, thiab tom qab ntawd kab rov tav nrog ductape, ua kom ntseeg tau tias ob qho kawg ntawm lub tog raj kheej tau nthuav tawm cov ntawv ci kom nws tuaj yeem txuas peb txhais tes mus rau saum npoo ntawm kov sensor.

Tom qab ntawd, peb muab cov kua nplaum tso rau hauv qhov chaw thiab tshem cov kua nplaum siv rab riam lossis txiab.

Kauj Ruam 5: Kauj Ruam 5: Cov Khoom Siv Hluav Taws Xob

Kauj ruam 5: Electronics
Kauj ruam 5: Electronics
Kauj ruam 5: Electronics
Kauj ruam 5: Electronics
Kauj ruam 5: Electronics
Kauj ruam 5: Electronics

Nws yog lub sijhawm hluav taws xob! Ua raws cov txheej txheem thiab xyuas kom tsis muaj qhov tsis txaus. Nws yog qhov zoo dua rau txuas ntxiv lub zog sib txuas nrog ib lub cua sov sib zog, vim tias cov no yog cov uas txuas nrog rau sab nraud cable.

Ob peb yam kom pom:

  • Kev nthuav tawm USB cable nyuaj, tab sis thaum kawg yuav tsum muaj cov xov dub thiab liab nyob hauv nws, braided ua ke. Yog tias koj ntsaws rau hauv USB cable, lawv yuav tsum muaj qhov hluav taws xob ntawm 5V.
  • Siv cov xov hlau ntev rau Kov sensor, yam tsawg 6 cm.
  • Nws yuav yooj yim dua tom qab yog tias koj tsis siv lub ntsuas qhov kov thiab tsuas yog tso ntawm txhua ntawm nws cov xov hlau poj niam jumper hlau kawg, yog li koj tuaj yeem txuas tau yooj yim/txuas nws tom qab.

Kauj Ruam 6: Kauj Ruam 6: Code

Kauj ruam 6: Code
Kauj ruam 6: Code
Kauj ruam 6: Code
Kauj ruam 6: Code
Kauj ruam 6: Code
Kauj ruam 6: Code

Yog li tom qab teeb tsa AWS server, peb tuaj yeem pib coding. Koj tuaj yeem rub tawm cov cai los ntawm no, thiab xa nws mus rau D1 mini siv Arduino IDE. Thov ceeb toom ob peb yam:

  • Yog tias qhov no yog koj thawj zaug siv Arduino IDE, thov mus rau qhov vis dis aus luv luv no uas piav qhia yuav ua li cas rau nruab thiab khiav nws.
  • Yog tias qhov no yog koj thawj zaug siv Arduino IDE nrog WEMOS D1 mini, thov mus rau cov lus qhia no uas piav qhia yuav ua li cas.
  • Koj yuav tsum suav nrog ob peb lub tsev qiv ntawv txhawm rau kom cov cai ua haujlwm. Mus rau Cov Cuab Yeej/Tswj Cov Tsev Qiv Ntawv lossis nias ctrl+ua haujlwm+i, tom qab ntawd xaiv thiab teeb tsa cov tsev qiv ntawv hauv qab no:

    • ArduinoJson
    • AWS-SDK-ESP8266
    • PubSubClient
    • WebSockets
    • WiFiManager
  • Thaum kawg rov hais dua txhua qhov kev tso cai nyob hauv AWS Client cheeb tsam ntawm tus lej rau koj qhov txuas uas phim koj tus lej AWS.
  • Koj tseem tuaj yeem ntxiv ntau xim raws li koj xav tau rau cov npe xim ntawm ntu LED ntawm txoj cai.

Kauj Ruam 7: Kauj Ruam 7: Kev Sib Koom Tes & Ua Haujlwm

Image
Image
Kauj Ruam 7: Kev Sib Koom Tes & Kev Ua Haujlwm
Kauj Ruam 7: Kev Sib Koom Tes & Kev Ua Haujlwm
Kauj Ruam 7: Kev Sib Koom Tes & Kev Ua Haujlwm
Kauj Ruam 7: Kev Sib Koom Tes & Kev Ua Haujlwm
Kauj Ruam 7: Kev Sib Koom Tes & Kev Ua Haujlwm
Kauj Ruam 7: Kev Sib Koom Tes & Kev Ua Haujlwm

Thaum kawg peb tuaj yeem txuas tus kov lub ntsej muag rau hauv qhov chaw, muab cov ntsia hlau txuas los txuas lub hauv paus rau lub dome thiab ntsaws nws!

Thawj zaug peb ntsaws rau hauv, Filia yuav tsis pom WiFi network, tshwj tsis yog muaj ib qho tsis muaj kev tiv thaiv hauv cheeb tsam, qhov twg nws yuav txuas rau nws. Yog tias nws tsis pom, nws yuav pib nws qhov chaw nkag, thiab peb tuaj yeem txuas rau nws lub network.

Tom qab txuas mus rau lub network, lub vev xaib yuav raug qhib thiab peb tuaj yeem nkag mus rau daim ntawv pov thawj rau peb lub network xav tau. Tom qab ntawd peb tuaj yeem rov pib dua (los ntawm kev tshem tawm thiab rov teeb lub teeb) thiab nws ua rau sib txuas. Peb tuaj yeem pom tias nws tau txuas nrog tom qab nws ntsais ntsuab peb zaug thiab tom qab ntawd dhau los ua xiav. Tom qab ntawd peb tuaj yeem kov sab saum toj thiab lub teeb liab yuav raug xa mus rau lub server, teeb tsa lub xeev ntawm IoT. Tom qab ntawd nws yuav hloov kho lub xeev ntawm txhua qhov Filia txuas nrog koj lub cuab yeej, thiab lawv txhua tus yuav hloov xim raws li.

Ua tsaug rau koj nyeem!

Pom zoo: