Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Teeb Raspberry Pi
- Kauj Ruam 2: Tsim Cov Hluav Taws Xob Hluav Taws Xob
- Kauj Ruam 3: Arduino + Programming
- Kauj Ruam 4: Kuaj Cov Sensors thiab Actuators ntawm Pi
- Kauj ruam 5: Database
- Kauj Ruam 6: Ua ntej
- Kauj ruam 7: Backend
- Kauj Ruam 8: Muab Cov Khoom Ua Ke
- Kauj Ruam 9: Xeem
Video: Project ElectroTerra: 9 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Kuv tau ua "ntse" terrarium/vivarium raws li tsev kawm ntawv txoj haujlwm.
ElectroTerra yog khiav los ntawm Raspberry Pi uas yog tus tswv lub vev xaib thiab khaws cov ntaub ntawv sau los ntawm cov ntsuas hauv MariaDB database.
Lub vev xaib qhia qhov ntsuas kub thiab txheeb ze cov av noo los ntawm cov ntsuas cua thiab tso cai tswj cov kiv cua thiab LED sawb. Cov hlua ntawd tseem tuaj yeem ua haujlwm tau txais bij LDR sensor.
Kuv xav tias qee qhov kev paub paub txog kev siv Raspberry Pi, Arduino, MariaDB (Mysql) thiab txuas xov tooj cua.
Khoom siv
Kuv tau sau cov npe khoom kom koj tuaj yeem pom txhua yam xav tau rau txoj haujlwm no.
Kauj Ruam 1: Teeb Raspberry Pi
Ua ntej koj yuav tsum teeb tsa cov hauv paus rau Raspberry Pi:
Kuv siv kev sib txuas ssh los tswj Pi nrog lub khoos phis tawj:
Rau coding Kuv siv Visual Studio Code nrog ssh txuas ntxiv:
Txhawm rau ua lub vev xaib muaj nyob hauv koj tus kheej lub network koj tuaj yeem tshawb xyuas cov lus qhia no los ntawm qib 1-3: https://www.instructables.com/id/Host-your-website-on-Raspberry-pi/ Tsis muaj kev ruaj ntseg ntxiv hauv qhov haujlwm no yog li ceev faj ntawm kev nthuav tawm nws hauv is taws nem.
Kauj Ruam 2: Tsim Cov Hluav Taws Xob Hluav Taws Xob
Hauv cov txheej txheem fritzing koj tuaj yeem pom txhua qhov kev xav tau hauv qhov haujlwm no. 1-xaim ntsuas kub tuaj yeem hloov pauv los ntawm kev ntsuas kub ntawm DHT22.
Arduino tau siv los ntawm Pi ntawm USB cable.
Kauj Ruam 3: Arduino + Programming
Txij li lub luag haujlwm hauv Arduino cov tsev qiv ntawv rau DHT22 thiab cov kab tsav tsheb LED tau nthuav dav heev, Kuv txiav txim siab ntxiv Arduino rau cov ntu no.
Yog li koj xav tau Arduino IDE.
Nco ntsoov ntshuam cov tsev qiv ntawv no:
- DHT lub tsev qiv ntawv:
- RGBdriver: hauv electroterra github chaw cia khoom
Kauj Ruam 4: Kuaj Cov Sensors thiab Actuators ntawm Pi
Hauv Github cov chaw cia khoom yog qee cov ntawv xeem rau cov khoom siv ib leeg.
Cov no yog cov chav kawm: mcp.py (npog cov ntaub ntawv sib piv los ntawm LDR) pcf.py (sib txuas I2C cov ntaub ntawv) thiab pcf_lcd.py (cuam tshuam nrog LCD).
Kauj ruam 5: Database
Tsim cov electroterra database ntawm Mysql worckbench ntawm cov ntaub ntawv pov tseg (final_dump_electroterra.sql hauv Github chaw cia khoom) nrog qee cov ntaub ntawv xeem.
Muaj qhov teeb meem sib xws los ntawm kev siv "Forward Engineer to Database" wizzard hauv Mysql Workbench. Nco ntsoov tshem VISIBLE qhov ntsuas hauv kab lus sql txij li qhov no tsis ua haujlwm hauv MariaDB.
Kauj Ruam 6: Ua ntej
HTML, CSS thiab Javascript code tuaj yeem pom hauv Github chaw cia khoom. Lawv yuav tsum tau muab tso rau hauv phau ntawv teev npe uas lub vev xaib yuav tuav. Tus qauv tsim kho kom zoo rau kev siv mobile thiab tau sim ntawm qhov tseeb ruaj khov Chrome, Firefox thiab Edge versions.
Kauj ruam 7: Backend
Lub app.py, datarepository.py thiab Database.py code yuav tsum nyob hauv cov npe tsev ntawm Pi tus neeg siv. Txhawm rau ua Pi khiav cov ntaub ntawv cia li rov pib dua siv cov lus qhia no:
Koj tuaj yeem pom cov cai hauv github chaw cia khoom:
Kauj Ruam 8: Muab Cov Khoom Ua Ke
Qhov teeb tsa no yog pov thawj ntawm lub tswv yim.
Kiv cua tau tsau rau hauv qhov chaw nrog kua nplaum kub. Qee qhov qhov ntxiv tau raug laum rau hauv cov pa tawm rau txoj hlua.
Tom ntej no yog lub thawv kom khaws cov khoom siv hluav taws xob. Lub thawv yas yooj yim tau siv. Txiav txim siab ntxiv cov kab pa tawm thaum muaj cua sov.
Kauj Ruam 9: Xeem
Fais fab Raspberry Pi thiab cov khoom siv fais fab.
Xauj mus rau IP chaw nyob uas pom ntawm LCD zaub.
Los ntawm qhov no, koj tuaj yeem saib xyuas cov ntaub ntawv thiab tswj tus actuators.
Pom zoo:
Arduino Tsheb Rov Qab Chaw Nres Tsheb Ceeb Toom - Cov Kauj Ruam ntawm Kauj Ruam: 4 Kauj Ruam
Arduino Tsheb Rov Qab Chaw Nres Tsheb Ceeb Toom | Cov kauj ruam ib kauj ruam: Hauv txoj haujlwm no, kuv yuav tsim qhov yooj yim Arduino Tsheb Rov Qab Tsheb Nres Tsheb Nres Sensor Siv Arduino UNO thiab HC-SR04 Ultrasonic Sensor. Qhov no Arduino raws Lub Tsheb Rov Qab ceeb toom tuaj yeem siv rau Kev Tshawb Fawb Txog Tus Kheej, Robot Ranging thiab lwm yam
Tsev Automation Kauj Ruam ntawm Kauj Ruam Siv Wemos D1 Mini Nrog PCB Tsim: 4 Kauj Ruam
Tsev Automation Kauj Ruam Ib Leeg Siv Wemos D1 Mini Nrog PCB Tsim: Tsev Automation Kauj Ruam los ntawm Kauj Ruam siv Wemos D1 Mini nrog PCB Tsim cov tub ntxhais kawm ntawv qib siab. Tom qab ntawd ib tus ntawm peb cov tswv cuab tuaj
RC Taug Qab Neeg Hlau Siv Arduino - Kauj Ruam Ib kauj ruam: 3 Kauj Ruam
RC Tracked Robot Siv Arduino - Kauj Ruam Ib Nrab: Hav guys, Kuv rov qab los nrog lwm tus neeg hlau txias chassis los ntawm BangGood. Vam tias koj tau dhau los ntawm peb cov phiaj xwm yav dhau los - Spinel Crux V1 - Tus Cwj Pwm Tswj Tus Neeg Hlau, Spinel Crux L2 - Arduino Xaiv thiab Muab Neeg Hlau nrog Robotic caj npab thiab Badland Braw
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
Kawm Yuav Ua Li Cas Kos Tus Tswm Ciab - Kauj Ruam Ib Kauj Ruam: 6 Kauj Ruam
Kawm Yuav Ua Li Cas Thiaj Li Tswmciab - Kauj Ruam Ib kauj ruam: Cov tswm ciab no siv sijhawm 10 feeb los kos yog tias koj ua raws kuv cov kauj ruam ua tib zoo