Cov txheej txheem:
- Khoom siv
- Kauj ruam 1: Tau Txais Cov Ntaub Ntawv
- Kauj ruam 2: Txuas
- Kauj Ruam 3: Xeem
- Kauj ruam 4: Rooj plaub
- Kauj Ruam 5: Qee Cov Lus Cim Ntawm Kuv Li Cas
- Kauj Ruam 6: Sib dhos
- Kauj Ruam 7: Los Ua Ke Ntxiv
- Kauj ruam 8: Txuas
- Kauj ruam 9: Software
- Kauj ruam 10: Koj npaj tau lawm
Video: Alarmostat: 10 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Hauv phau ntawv qhia no kuv yuav qhia koj yuav tsim Alarmostat li cas, kuv lub tsev kawm ntawv txoj haujlwm rau 1MCT ntawm Howest. Lub tswv yim yog ua cov cuab yeej uas suav nrog ob lub tswb tub sab thiab lub ntsuas cua sov hauv ib qho. Kuv tus qauv tsim tuaj yeem txhim kho txawm li cas los xij, yog li nws tsis tas yuav ua raws cov lus qhia tshwj xeeb. Muaj tswv yim!
Cov khoom siv xav tau tau teev tseg hauv qab no, thiab cov hluav taws xob hluav taws xob tuaj yeem pom hauv daim duab (Kuv tsis muaj lub luag haujlwm rau kev puas tsuaj rau koj cov cuab yeej tab sis:))
Khoom siv
-Raspberry Pi (Kuv siv 3B+) nrog adapter thiab daim npav SD
-Breadboard
-GPIO breakout board tuaj yeem ua ke
-Motion sensor (HCRS501)
-Qhov hlau nplaum hloov (ada375)
-ob peb leds thiab resistors
-tus nquag buzzer
-cov neeg nkag teb chaws (keyes-0.40)
-2x16 lcd zaub
-74hc595 shiftregister kom tsav lub lcd
-MFRC522 rfid nyeem ntawv
-ntau cov kab
-materials los ua rooj plaub thiab cov cuab yeej los muab tso ua ke
(ntxiv mov ci rau lub hwj huam mov)
Kauj ruam 1: Tau Txais Cov Ntaub Ntawv
Cov ntaub ntawv rau txoj haujlwm no tuaj yeem pom hauv cov chaw khaws khoom no:
github.com/thomasdebiehw/project-backend
github.com/thomasdebiehw/project-frontend
Cov backend yog Python / Flask program uas sib txuas lus nrog peb cov cuab yeej siv thiab ua haujlwm cov ntaub ntawv los ntawm nws mus rau tom ntej, uas yog lub vev xaib sib tham.
Tsis txhob ntxub cov cai, Kuv paub tias qee qhov nws tau sau tsis zoo thiab tsis meej, tab sis hav, nws ua haujlwm:)
Koj yuav tsum tau hloov qee yam ib puag ncig rau nws kom ua haujlwm tau zoo, zoo li cov neeg siv mysql lossis ip-adresses cov haujlwm ua haujlwm.
Nyeem readme ntawm tus frontend kom paub muab cov ntaub ntawv no tso rau qhov twg
Tau txais cov ntaub ntawv ntawm koj Pi (lossis hloov pauv txaus rau lawv), thiab npaj kom txuas txhua yam rau Pi.
Kauj ruam 2: Txuas
Fais fab tua koj Pi ua ntej txuas cov khoom siv. Cov hluav taws xob hluav taws xob yuav tsum piav qhia tus kheej zoo nkauj, tab sis ib feem yuav tsum tau saib xyuas yog lub suab txav. Rau qee qhov laj thawj nws teeb tsa sib txawv ntawm cov hluav taws xob hluav taws xob. Kuv ntxiv qee cov lus piav qhia rau daim duab los piav qhia txog kev ua haujlwm ntawm cov khoom.
Ib yam uas koj yuav xav ua, yog tias koj ua rau muaj teeb meem, yog siv lub thawv ntim khoom sab nraud. Kuv muaj qee qhov teeb meem nrog rfid nyeem ntawv tsis ua haujlwm. Txawm hais tias kuv tsis paub tseeb tias lub hwj chim yog qhov teeb meem, Kuv tsis tau ntsib nws tom qab siv lwm qhov chaw thiab nws tsis ua mob ib yam.
Yog tias koj xav ua qhov no, txuas GND pins los ntawm Pi thiab lub zog xa khoom ua ke. Plug txhua yam +3.3v lossis +5v los ntawm cov khoom siv rau hauv qhov kev tso tawm ntawm cov khoom siv sab nraud, thiab koj yuav tsum yog qhov zoo.
Tsis txhob txuas tus Pi 3.3 lossis 5v rau lub hwj chim. Yog tias koj siv ib qho nws zoo tshaj plaws kom tso tawm cov kev sib txuas kom tsis txhob ua yuam kev.
Koj tuaj yeem pom kuv teeb tsa teeb tsa hauv daim duab thib ob
Kauj Ruam 3: Xeem
Koj yuav tsum muab cov ntaub ntawv khaws cia ntawm Pi ntawm MySQL Workbench los ntawm kev ua cov ntaub ntawv ntshuam. Cov ntaub ntawv hauv qhov chaw cia khoom yog pov tseg ntawm cov ntaub ntawv khaws tseg. Txwv tsis pub koj yuav ntsib teeb meem vim tias Pi siv MariaDB hloov chaw ntawm MySQL. Koj kuj tseem yuav tsum tsim tus neeg siv tshiab lossis hloov cov ntaub ntawv pov thawj no hauv cov cai. Koj tuaj yeem pom ERD hauv daim duab txuas nrog
Koj tuaj yeem sim ua haujlwm Alarmostat program tam sim ntawd, tab sis kuv pom zoo ntsuas cov khoom sib cais ua ntej. Koj tuaj yeem siv cov chav kawm suav nrog hauv github repo, thiab ua ib qho haujlwm me me los ntsuam xyuas txhua yam koj ua. Qhov ntawd yuav ua rau daws teeb meem yooj yim dua.
Thaum koj paub koj cov khoom ua haujlwm, peb tuaj yeem pib tsim rooj plaub.
Kauj ruam 4: Rooj plaub
Cov ntaub ntawv tuaj yeem yog txhua yam koj xav tau. Yog tias koj xav ua tus qauv muaj tus kheej zoo ib yam li kuv, muaj qee qhov xav tau.
-Txoj kev txiav tawm rau kev txhim kho cov khoom sib dhos hla lub phaj pem hauv ntej
-Txhua yam ntawm lub qhov rooj tshuab
-Qhov chaw nyob sab hauv
Kuv siv 6 hli tuab ntoo. Nws ruaj khov thiab zoo tshaj yog tias koj xav ua lasercut hauv nws, tab sis kev txhim kho cov khoom yam tsis muaj cov ntsia hlau los txog rau pem hauv ntej tuaj yeem nyuaj.
Kuv tau txiav txim siab ntawm cov ntsia hlau uas pom hauv daim duab thiab tom qab ntawd siv cov txiv ntoo los ua kom lawv luv dua. Kuv pom zoo kom ntsuas kev deb npaum li cas koj cov ntsia hlau mus rau qhov muab pov tseg ntawm cov khoom koj tab tom siv, txawm hais tias cov khoom no yuav txawv.
Qee qhov tsis muaj qhov ntsia hlau zoo (keyes-040, hcsr501, leds) yog li kuv kuj siv rab yaj phom kub los txhuam cov no rau hauv qhov chaw. Nws tsis yog cov tshuaj huv tshaj plaws tab sis nws yuav ua haujlwm zoo xwb. Cov hlau tsis zoo yuav tsis xav tau, tab sis kuv tau siv ib qho los txuas cov xov hlau zoo dua rau kuv lub qhov rooj ada375 vim lawv tuaj xoob yooj yim heev.
Cov ntu kuv tau teeb tsa rau rooj plaub yog:
-2 leds
-ib 375
-Txc501
-lcd ib
-cov neeg teb chaws
-rfid nyeem ntawv
Tus so yog txuas rau daim ntawv qhia zaub mov. (Txhim kho qhov ntsuas kub qhov chaw sab nraum rooj plaub yuav zoo dua li)
Kauj Ruam 5: Qee Cov Lus Cim Ntawm Kuv Li Cas
Koj tuaj yeem pom daim qauv qauv ntawm rooj plaub saum toj no. Nov yog qhov ntev:
pem hauv ntej: 40.5 x 30 cm
ob sab ntawm cov khoom vaj khoom tsev: 20 x 30 cm
sab saum toj thiab hauv qab: 20 x 20 cm
Kuv tau siv lub qhov me me nyob rau sab kom taug txoj kab hluav taws xob sensor thiab ib qho loj dua hauv lub vaj huam sib luag tom qab rau lub zog thiab ethernet cables. Qhov qhib rau 2 leds nyob rau hauv pem hauv ntej kuj tau xyaum
Ib qho lus qhia: Tsis txhob theej cov duab no! Cov phaj saum toj kawg nkaus rau kuv yuav tsum yog 20.6 x 21.2 cm vim tias kuv tsis suav txog qhov tuab ntawm cov ntoo. Thiab txawm hais tias yog qhov yog, lub thawv ntawv uas Pi thiab cov khoom sib xyaw zaum, tsuas yog loj txaus. Kuv tsis suav nrog qhov ntev ntxiv ntawm lub hwj huam mov rau lub khob cij, thiab tsuas yog muaj hmoo uas kuv tuaj yeem tso nws nyob hauv kab pheeb ces kaum.
Kuv qhia kom siv txog qhov loj me me pem hauv ntej phaj, thiab tsuas yog ua rau sab nraub qaum 5 cm dav dua. Muaj ntau dua qhov chaw txaus nyob rau sab laug kom txav lub qhov rooj thiab cov cim me ntsis ntxiv rau ntawm ntug.
Los yog, koj paub.. Tsim koj tus kheej!
Kauj Ruam 6: Sib dhos
Kuv pom ua haujlwm hauv qhov kev txiav txim no kom yooj yim tshaj plaws:
1: txiav koj cov ntoo kom raug
2: coj lub phaj pem hauv ntej thiab txiav tawm rau cov khoom siv (yog tias koj xav tau laser-txiav qhov no, cov ntawv txuas nrog, koj xav tau ob lub qhov ntxiv rau cov leds txawm hais tias)
3: teeb tsa cov khoom tsim nyog rau sab xub ntiag
4: Kuaj-txuas cov khoom no. Koj ua qhov no zoo dua thaum koj tseem muaj qee qhov chaw ua haujlwm. Kuv tau kaw cov xov hlau sib txuas ua ke kom ua rau lawv nyob ntawm qhov taub hau. Qhov ntawd ua rau nws yooj yim dua los txuas lawv thaum txhua yam nyob hauv qhov chaw
5: mount raspberry pi mus rau sab hauv tsev (lossis nrhiav lwm txoj hauv kev rau mounting nws vim tias nws yuav luag tsis tuaj yeem tshem daim npav sd) Cov txiv ntoo uas kuv tau siv tau los sib cuag nrog cov hlau hlau ntawm Pi yog li kuv tau npog qee qhov hauv qab nrog daim kab xev hluav taws xob
Kauj Ruam 7: Los Ua Ke Ntxiv
Tam sim no muab nws tso ua ke (Kuv siv cov kua nplaum ntoo muaj zog heev vim tias cov ntoo no tsis zoo siab nrog cov ntsia hlau lossis ntsia hlau hauv 6mm tuab sab)
Kuv glued ob sab vaj huam sib luag ntawm lub tsev mus rau sab nrauv ntawm phaj hauv qab, thiab muab lub vaj huam sib luag rov qab rau sab saum toj ntawm phaj hauv qab, hauv-nruab nrab ntawm cov phaj sab. Qhov no ua rau nws muaj zog dua tab sis kuv yuav tsum tau zom sab saum toj ntawm lub phaj rov qab raws li tawm los 6 hli siab dua li sab thiab pem hauv ntej vaj huam sib luag
Kauj ruam 8: Txuas
Thaum kawg nws yog lub sijhawm rov txuas cov khoom siv sab hauv rooj plaub. Kuv nyuam qhuav tso lub khob cij rau hauv qhov chaw nrog txhua lub xov tooj txuas rau nws, thiab tom qab ntawd txuas cov khoom sib txuas ib qho los ntawm ib qho.
Raws li koj tuaj yeem pom qhov no yeej tsis huv heev li, yog li koj yuav pom txoj hauv kev zoo dua los txhim kho nws kom raug
Kauj ruam 9: Software
Koj yuav tsum tau ntxiv ib tus neeg siv rau hauv cov ntaub ntawv yog tias koj xav siv rfid nyeem ntawv rau caj npab thiab tshem tawm qhov system. Txuas rau koj pi ntawm Workbench, xaiv Alarmostat database thiab khiav cov lus txib hauv qab no:
INSERT INTO alarmostat.user (tus IDuser, lub npe siv, usertype, userpassword, userrfidtag) VALUES (DEFAULT, '#yourusername', 'user', '#password', '#rfidid')
hloov qhov # nrog rau qhov tsim nyog raug. Koj tuaj yeem pom rfidid los ntawm kev khiav rfidtest.py tsab ntawv los ntawm cov chaw cia khoom. Nws yuav tso tus lej ntawm koj daim ntawv:
Txhawm rau khiav qhov haujlwm thaum pib, saib cov ntawv nyeem:
Kauj ruam 10: Koj npaj tau lawm
Nws ua tiav! koj npaj txhij los tiv thaiv thiab ntsuas kub tswj koj lub tsev xav! Muaj kev lom zem thiab sim ntxiv cov yam ntxwv tshiab rau cov cai!
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