Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Sau tag nrho koj cov khoom siv
- Kauj Ruam 2: Tsim Vaj Tsev
- Kauj Ruam 3: Ua Circuit Court
- Kauj Ruam 4: Rub Txoj Cai Los Ntawm Github
- Kauj Ruam 5: Tsim MySQL Database
- Kauj Ruam 6: Xeem Smartroom
- Kauj Ruam 7: Muab lub Circuit Court tso rau hauv koj lub tsev
- Kauj Ruam 8: Txaus siab rau Smartroom
Video: Smartroom: 8 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Koj puas tau hnov zoo li pw hauv koj lub txaj thiab tsis xav sawv? Koj puas tau xav tias zoo li sawv los qhib koj lub qhov rooj yog qhov xav tau ntau? Tom qab ntawd kuv muaj cov tshuaj zoo meej rau koj. Qhia Smartroom, tswj koj chav nrog koj lub xov tooj ntawm tes, ntsiav tshuaj lossis txawm tias koj lub computer!
Khoom siv
Hauv kauj ruam tom ntej kuv yuav qhia cov npe khoom siv uas koj xav tau. Qhov tseem ceeb tshaj plaws ntawm txhua yam koj yuav tsum muaj Raspberry Pi thiab koj lub khoos phis tawj.
Kauj Ruam 1: Sau tag nrho koj cov khoom siv
Qhov tseem ceeb tshaj plaws, cov khoom siv! Kuv tau muab txhua yam tso rau hauv daim ntawv Excel.
Kauj Ruam 2: Tsim Vaj Tsev
Rau vaj tsev kuv siv MDF vaj huam sib luag loj 122 cm los ntawm 61 cm, koj tuaj yeem pom cov ntawd ntawm txhua lub khw DIY. Txiav lawv nrog lub voj voos hniav pom nrog qhov ntev hauv daim duab. Cov vaj huam sib luag tom qab ntawd ua ke nrog Soudal Txhim Kho Txhua Cov kua nplaum. Kev pleev xim yog xaiv tau tab sis muab nws kov zoo:), Kuv tau siv hom xim zoo li pom hauv cov duab saum toj no. Rau cov ntaub thaiv kuv tau ua ib daim ntawv ntawm cov ntaub uas kuv tau muaj. Kuv kuj muaj lub raj yas tso puag ncig nrog lub kaum sab xis 90 degree. Kuv txiav cov ntawd rau hauv daim rau cov ntsuas kom haum.
Kauj Ruam 3: Ua Circuit Court
Qhov no tsis yog qhov hluav taws xob me tshaj plaws tab sis qhov no yog qhov ua rau txoj haujlwm no lom zem. Sim tsis txhob hla hla cov xov hlau. Cov xov hlau uas tsis mus rau tib lub khob cij yuav tsum ntev dua. Koj tuaj yeem xau ob lub xov hlau lossis txuas tus txiv neej rau poj niam cov xov hlau nrog ib leeg.
Kauj Ruam 4: Rub Txoj Cai Los Ntawm Github
Koj tuaj yeem rub tus lej rau txoj haujlwm no ntawm kuv Github, qhov txuas yog https://github.com/howest-mct/1920-1mct-project1-V… Nyem rau Code thiab rub tawm lub backend thiab frontend.
Ua SSH kev sib txuas ntawm koj tus PI thiab Visual Studio Code, yog tias koj tsis paub yuav ua li cas, ntawm no yog qhia me ntsis.
Hauv VS Code, tsim daim nplaub tshev tshiab thiab hu nws txhua yam koj xav tau, tiag, nws tsis muaj teeb meem. Muab tshuaj txhuam cov ntaub ntawv los ntawm Backend hauv daim nplaub tshev ntawd. Ib feem ua tiav. Tam sim no txav mus rau/var/www/ntawm VC Code thiab muab cov ntawv txuas rau sab hauv. Ib feem ntawm cov lej tau ua tiav tam sim no!
Kauj Ruam 5: Tsim MySQL Database
Qhov kev zov me nyuam kuv siv los tsim cov chaw khaws ntaub ntawv yog MySQL Workbench. Koj tuaj yeem pom qhov rub tawm txuas ntawm no.
Tsim kev sib txuas wireless, xa mus rau kuv cov chaw, nco ntsoov tias SSH hostname yog IP chaw nyob ntawm koj RPi.
Tam sim no mus rau lub cim nyob hauv Cov Ntaub Ntawv nyob rau sab laug sab saum toj ntawm lub vijtsam, nyem rau nws, nws yuav tsum qhib lub SQL Cov Ntaub Ntawv yooj yim. muab tus lej smartroomdb.txt tso rau ntawd thiab khiav nws (lub teeb daj daj). Tam sim no koj yog kub!
Kauj Ruam 6: Xeem Smartroom
Tam sim no tias feem ntau ntawm cov txuj ci tau ua tiav, mus rau koj nyuam qhuav tsim cov ntawv hauv VS Code thiab pib app.py. Muaj me ntsis pib lub cim nyob rau sab xis saum toj. Tam sim no mus rau koj tus browser thiab ntaus koj li RPi tus IP chaw nyob. Koj yuav tsum pom lub xaib.
Lub vev xaib no tau tsim mobile ua ntej! Yog li yog koj tuaj yeem siv txoj haujlwm no ntawm koj lub xov tooj. Tsuas yog ntaus koj tus RPi tus IP chaw nyob.
Koj tseem tuaj yeem cia txoj haujlwm pib thaum koj Raspberry Pi pib. Yog tias koj xav ua qhov no koj yuav tsum tsim kev pabcuam app1.py. Ua raws li qhov qhia no
Koj yuav tsum hloov pauv main.py rau app1.py thiab hloov cov npe rau cov npe uas app1.py nyob. Kuaj yog tias txhua yam ua haujlwm hauv qhov hluav taws xob. Yog tias yog, txav mus rau qib tom ntej!
Kauj Ruam 7: Muab lub Circuit Court tso rau hauv koj lub tsev
Koj tau mus txog ntu kawg, nrog koj zoo siab!
Ob qhov yuav tsum tau muab laum rau hauv phab ntsa. Ib qhov uas hnav khaub ncaws thiab ib qho hauv qab lub rooj. Koj tuaj yeem siv qhov xyaum tsis tu ncua rau qhov ntawd. Tom qab ntawd daim ntawv qhia zaub mov nrog MCP3008 thiab L293D mus rau hauv qab tus neeg hnav khaub ncaws thiab lwm daim ntawv qhia zaub mov nkag hauv qab lub txaj. Kev tswj hwm cable yog nyob ntawm koj. Kuv siv ob peb daim nplaum uas kuv pom hauv kuv lub khw DIY hauv zos (Hubo).
Kauj Ruam 8: Txaus siab rau Smartroom
Tam sim no koj tau teeb tsa los siv chav smartroom, tsis muaj qhov sawv los qhib koj lub qhov rooj!
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
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
DIY Arduino Robotic Arm, Kauj Ruam ntawm Kauj Ruam: 9 Kauj Ruam
DIY Arduino Robotic Arm, Kauj Ruam ntawm Kauj Ruam: Cov ntawv qhia no yog qhia koj yuav tsim lub Caj Npab Caj Npab ntawm koj tus kheej li cas