Cov txheej txheem:
- Kauj Ruam 1: Cov Khoom Siv
- Kauj ruam 2: Ua Protoboard
- Kauj Ruam 3: MQTT Broker - Adafruit IO
- Kauj ruam 4: Arduino Code
- Kauj Ruam 5: Meshmixer thiab 3D Luam
- Kauj Ruam 6: Sib dhos
- Kauj ruam 7: Npaj Mus
Video: Totoro Project - IoT & MQTT & ESP01: 7 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Totoro Project nws yog qhov zoo IoT project koj tuaj yeem luam tawm hauv ntau lwm daim ntawv sib txawv.
Siv ESP01 pawg thawj coj, nrog MQTT raws tu qauv, koj tuaj yeem sib tham txog cov xwm txheej ntawm khawm mus rau MQTT Broker (hauv kuv rooj plaub AdafruitIO).
Phau ntawv qhia muaj txiaj ntsig zoo rau MQTT thiab Adafruit:
Koj tuaj yeem siv txhua tus MQTT Broker koj xav tau thiab zoo ib yam rau khawm ua haujlwm.
Nws ua haujlwm li cas?
Txhua lub cuab yeej hauv network txuas nrog ntawm MQTT Broker thiab nyeem cov channel hu ua "love_box".
Thaum koj nias lub pob ntawm ib lub cuab yeej, nws xa cov lus ntawm cov channel, thiab lwm yam khoom siv ntsais tus coj. Txog thaum koj tsis nias lub pob, lub cuab yeej ntsais muag.
Nrog rau cov kab ke no koj tuaj yeem xa me ntsis "blare" mus rau lwm lub cuab yeej.
Kauj Ruam 1: Cov Khoom Siv
Txhawm rau tsim txoj haujlwm no koj xav tau qee yam khoom:
-
ESP01 pawg thawj coj saib
Pab tau - Tus programmer rau ESP01 (DIY)
-
3D qauv
- Totoro - https://goo.gl/n3mAsi -
- Meshmixer - https://goo.gl/qqMzh - rau kev ua qauv txhua yam qauv 3D
-
Cov khoom siv hluav taws xob
- LM317 tus tswj hluav taws xob
- Resistors: 150ohm, 270ohm, 10K thiab 68ohm.
- Capacitors: 10 uF
- Coj - lossis coj sab hauv -
- Mini Pushbutton Hloov
- Solder
- Protoboard
- Poj Niam Headers
- Pob tshab 3D filament
-
Fais fab mov
BNC txuas - https://goo.gl/DrD8k2 -
- Qee Cov Xov
Kauj ruam 2: Ua Protoboard
Lub zog rau pawg thawj coj saib:
Coj tus protoboard thiab muab cov khoom sib txuas ua ke raws li thawj daim duab.
Qhov teeb tsa no tau tso cai LM317 - https://goo.gl/VtzNz -to tsim nyob ib puag ncig 3.4 volt rau ESP01.
Lus Nug: vim li cas kuv thiaj siv tsis tau LM7805?
Teb: LM780x series tsis ua haujlwm qis dua 5 volt, thiab nws tsis tuaj yeem tsim 3.3 volt.
Thaum koj ua tiav, txheeb xyuas qhov hluav taws xob tso tawm nrog lub multimeter. Nws yuav tsum nyob ib puag ncig 3.4 volt thiab 4.3 volt.
Rau lub zog siv hluav taws xob koj tuaj yeem siv 5V fais fab mov lossis loj dua. Kuv pom zoo kom koj tsis txhob siv ntau dua 9 volts, nws ua kom sov ntau - lub zog poob -!
Pawg thawj coj:
ESP01 yog pawg thawj coj ntawm koob ESP, nws me me thiab siv tau, tab sis tsis yog tus neeg siv zoo heev.
Nco ntsoov, koj siv tsis tau Arduino pins los sib tham ncaj qha rau ESP01, vim tias nws yog 3.3 volt pins kam rau ua.
Nws yog qhov muaj txiaj ntsig zoo ua tus programmer rau kev tsim lub ESP01 nrog FTDI:
Siv daim duab thib ob los ua phau ntawv qhia thiab nco tshwj xeeb tus lej ua haujlwm, duab thib peb, pom hauv phau ntawv qhia saum toj no.
Yog xav paub ntxiv nyeem 1 ° cov kauj ruam ntawm phau ntawv qhia no:
Yog tias koj yog neeg Italis, koj tuaj yeem nyeem kuv phau ntawv qhia rau ESP01 thiab FTDI DIY:
Ua kom tiav Protoboard:
Cov duab plaub yog qhov ua tiav ntawm txoj haujlwm ntawm daim ntawv tiv thaiv.
Kuv pom zoo kom Tus Poj Niam Headers rau txuas lub rooj tsavxwm mus rau lub protoboard. Tsuas yog qee yam ua tsis raug, koj tuaj yeem txuas dua lwm lub rooj tsavxwm.
Tsis txhob txuas lub pob thiab nws tus tiv thaiv, peb yuav ua nws tom qab.
Kauj Ruam 3: MQTT Broker - Adafruit IO
MQTT Broker yog "server" rau tag nrho koj cov lus, los ntawm thiab rau cov khoom siv. Ua tib zoo saib thawj daim duab.
Yog xav paub ntxiv, siv phau ntawv qhia muaj txiaj ntsig no:
Hauv kuv qhov xwm txheej, kuv siv Adafruit IO, tab sis koj tuaj yeem siv txhua MQTT Broker koj xav tau.
Mus rau Adafruit IO thiab sau npe.
Tam sim no koj yuav tsum tsim lub dashboard tshiab thiab:
-
Ntxiv Pub - https://goo.gl/z2Npto -
Rau kuv tus lej yog "love_box"
-
Ntxiv cov thaiv - https://goo.gl/YJsCqX -
- Momentary Button: txuas rau "love_box" nrog Nias Tus Nqi = 1 thiab Tso Tus Nqi = 0
- Kab Kab: txuas rau "love_box" nrog Y-Axis Yam tsawg kawg = 0 thiab Y-Axis Max = 2
Thaum kawg koj yuav muaj qee yam zoo li daim duab thib ob.
Lus Nug: vim li cas thiaj tseem ceeb heev lub npe "love_box" hauv lub dashboard?
Teb: hauv MQTT Broker - Ada IO - koj tau tsim cov channel hu ua "love_box", thiab yog tias hauv txoj cai koj siv lwm cov channel, MQTT yuav tsis ua haujlwm.
Kauj ruam kawg ntawm MQTT Broker - Ada IO - yog "AIO KEY". Ntawm lub dashboard, nyem rau ntawm sab xis sab xis tseem ceeb me me.
Tam sim no theej "Tus Neeg Siv Npe" thiab "Tus yuam sij nquag" thiab sau lawv rau ntawm Arduino Code.
Kauj ruam 4: Arduino Code
Nruab ESP Core rau Arduino IDE:
Cov lus qhia tseem ceeb yog qhov no: https://goo.gl/yAqlU4 thiab ua raws li "Txhim Kho nrog Tus Thawj Tswj Xyuas Haujlwm".
Tam sim no saib ntawm thawj daim duab. Cov Dub version ntawm ESP01 muaj 1MB flash disk loj thiab version xiav muaj 512k. Txhais li cas? Saib ntawm daim duab thib ob, koj yuav tsum xaiv qhov tseeb "Flash loj".
Arduino Code nyob hauv qhov chaw cia khoom no: Txoj cai kom meej meej nyeem.
Nco ntsoov kho:
- AIO_USERNAME
- AIO_KEY
- Wifi_number
Yog tias koj txiav txim siab kho qhov "Adafruit_MQTT_Publish" thiab "Adafruit_MQTT_Subscribe" channel, koj yuav tsum kho tib kab thiab hu ua hauv txoj cai.
Kauj Ruam 5: Meshmixer thiab 3D Luam
3D qauv
Rau kuv qhov project kuv xav tau tus qauv 3D ntawm Totoro.
Kuv pom nws nyob ntawm ntau yam, ntawm qhov txuas no:
Koj tuaj yeem siv txhua tus qauv 3D koj xav tau, cov kauj ruam tom ntej yog tib yam.
Plhaub
Nws yog lub sijhawm los teeb tsa Meshmixer. Nrog cov cuab yeej muaj zog no, koj tuaj yeem ua lub plhaub rau koj txoj haujlwm.
Ntshuam hauv Meshmixer Totoro STL, thiab siv Hollow tool:
Hauv tib lub cuab yeej, nco ntsoov ua Qhov Qhov Hiav Txwv nyob tom qab.
Tam sim no koj yuav tsum txiav tus qauv ib nrab siv Plane Cut tool:
Siv lub pob export kom xa tawm qhov qis dua.
Thaum kawg, koj yuav tsum txiav tawm pob ntseg. Xaiv lub pob ntseg thiab siv cov cuab yeej cais - tsib daim duab -.
Siv lub pob ntshuam xa tawm pob ntseg.
Rov qab mus rau ib nrab tus qauv saum toj kawg nkaus thiab siv Erase & Fill tool: https://goo.gl/d4LR76 - rau daim duab -.
3D luam tawm
Kuv nyiam luam cov ntawv ib zaug, nco ntsoov siv cov ntsiab lus 3D pob tshab!
Kauj Ruam 6: Sib dhos
Laum ib lub qhov rau saum taub hau. Lub qhov no yog qhov yuav tsum tau muab tso rau sab hauv lub pob.
Thaiv lub pob nrog cov kua nplaum kub, thiab ntsuas qhov kev sib txuas nrog lub multimeter hauv hom txuas ntxiv mus.
Nqa pob ntseg thiab ntxiv ib qho me me rau hauv qab, siv kub xiav lossis super nres. Txiav daim yog nws siab dhau.
Tam sim no koj tuaj yeem txuas lub pob thiab nws tus tiv thaiv raws li cov txheej txheem ntawm theem 2.
Thawj xeem
Nco ntsoov tsis txhob kaw tus qauv 3D ua ntej ntsuas qhov ua haujlwm raug!
Nias lub pob ntawm Adafruit IO thiab sab hauv coj yuav tsum ntsais muag, kom txog thaum koj nias lub pob ntawm pob ntseg.
Rov ntsuas dua nrog khawm ntawm pob ntseg.
Kauj ruam 7: Npaj Mus
Thaum kawg qhov no yog qhov txiaj ntsig kawg.
- Nqe lus nug: koj puas tau siv sab hauv coj los sab nrauv liab coj?
- Teb: hauv daim duab thiab yees duab no kuv tau siv sab hauv coj. Txhawm rau kom meej dua, LED liab yog lub zog coj - koj tsis tuaj yeem kaw - thiab xiav LED yog sab hauv coj. Sab hauv coj thiab coj sab nraud, hauv kuv lub tswv yim, yog tus pin tib yam.
- Lus nug: Kuv puas tuaj yeem siv nws ntawm lub network tsis paub?
- Teb: tsis yog koj ua tsis tau. Koj yuav tsum rov tsim dua ESP01, vim tias pawg thawj coj no tsis muaj chaw rau OTA.
Cov ntaub ntawv ntau ntxiv rau OTA:
Tab sis koj tuaj yeem ua qhov tuab: ntxiv qhov tshwj xeeb txuas ID thiab tus lej rau koj tus kheej Hotspot ntawm koj lub xov tooj!
Pom zoo:
Xaiv Cov Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau Arduino Automated Shade Screen Project: 12 Cov Kauj Ruam (nrog Duab)
Xaiv Cov Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau Arduino Automated Shade Screen Project: Hauv Cov Lus Qhia no, Kuv yuav hla cov kauj ruam uas kuv tau xaiv los xaiv Lub Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau qhov ua piv txwv Automated Shade Screen project. Cov ntxaij vab tshaus ntxoov ntxoo yog qhov nrov thiab pheej yig Coolaroo tes cranked qauv, thiab kuv xav hloov
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: 7 Cov Kauj Ruam (nrog Duab)
Rov Qab Siv Cov Duab Duab Nrog Virtual Asistent: Nyob zoo txhua tus! Cov lus qhia no tau yug los ntawm lub laptop faib ua ib nrab, yuav los ntawm ib tus phooj ywg. Thawj qhov kev sim ntawm txoj haujlwm no yog kuv Lego Digital Photo Frame, txawm li cas los xij, yog ib tus neeg mob siab rau Siri thiab Google Tam sim no, Kuv txiav txim siab coj nws mus rau qhov tshiab
Arduino Mini CNC Plotter (Nrog Proteus Project & PCB): 3 Cov Kauj Ruam (nrog Duab)
Arduino Mini CNC Plotter (Nrog Proteus Project & PCB): Qhov no arduino mini CNC lossis XY tus kws sau ntawv tuaj yeem sau thiab tsim qauv hauv thaj tsam 40x40mm.Yog qhov no luv, tab sis nws yog qhov pib zoo dhia mus rau hauv ntiaj teb arduino. [Kuv tau muab txhua yam hauv txoj haujlwm no, txawm tias PCB, Cov Ntaub Ntawv Proteus, Piv txwv tsim