Cov txheej txheem:
- Kauj ruam 1: Cov ntaub ntawv
- Kauj ruam 2: Raspberry Pi
- Kauj Ruam 3: Kev thaiv kab hlau
- Kauj ruam 4: Database
- Kauj ruam 5: Code
- Kauj Ruam 6: Rooj plaub
Video: EasyTalk: Kev Sib Txuas Yooj Yim thiab Daim Ntawv Teev Npe Ib Sab Ntawm Koj: 6 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Kuv lub npe yog Kobe Marchal, Kuv kawm ntawm Howest, Belgium thiab kuv yog tub ntxhais kawm Multimedia thiab Kev Sib Txuas Lus Tshuab (MCT). Txog kuv qhov haujlwm kawg ntawm kuv thawj xyoo, kuv yuav tsum ua IoT-ntaus ntawv.
Hauv tsev peb muaj teeb meem no uas kuv tus nus yeej ib txwm ua si thiab thaum kuv niam xav qhia nws ib yam dab tsi los ntawm hauv qab, nws yuav tsum tau qw vim nws hnav lub mloog pob ntseg thiab tsis hnov ib yam dab tsi. Kuv xav daws qhov teeb meem no rau nws yog li kuv tsim lub cuab yeej uas koj tuaj yeem xa xov mus los ntawm lub vev xaib. Nws kuj tseem siv raws li daim ntawv qhia hnub uas koj tuaj yeem khaws koj tus kheej cov xwm txheej hauv lossis ntshuam daim ntawv qhia hnub hli sab nraud hla URL. Cov cuab yeej no tseem khaws cov ntsuas kub thiab huab cua zoo yog li koj tuaj yeem pom tias nws muaj kev noj qab haus huv npaum li cas thaum koj tab tom ua si lossis ua haujlwm vim tias koj feem ntau tsis pom.
Cov cuab yeej no hu ua EasyTalk thiab daws qhov teeb meem no. Nws yog lub cuab yeej me me uas siv lub vijtsam OLED yog li koj tuaj yeem pom koj cov xwm txheej, lub sijhawm lossis qhov kub thiab huab cua zoo tam sim no. Thaum xa ntawv, nws ceeb toom koj nrog lub suab ceeb toom thiab qhia cov lus ntawm lub vijtsam uas koj tuaj yeem teb nrog yog lossis tsis yog.
Yog tias koj xav tsim qhov no lossis koj xav pom nws tau ua li cas, Kuv xav qhia kom nyeem ntxiv. Yog tias koj xav paub ntau ntxiv txog kuv, koj tuaj yeem mus rau kuv cov ntaub ntawv sau tseg.
Kauj ruam 1: Cov ntaub ntawv
Thawj kauj ruam yog khaws txhua yam ntaub ntawv los siv hauv txoj haujlwm no. Kuv yuav ua siab ncaj rau koj. Qhov no tsis yog khoom siv pheej yig, tus nqi tag nrho yog € 271. Hauv qab no yog cov npe ntawm lawv thiab qee cov duab los qhia meej.
- Raspberry Pi 4 Qauv B - 4GB
- Pibow Coupé 4 - Ninja
- 12 x Hwm Jumperwires op strip - 40 stuks - M/M - 20cm
- 6 x Premium Jumperwires op strip - 40 stuks - M/F - 20cm
- 2 x 36-pin Stacking header
- 40-tus pin txiv neej lub thawv header
- 40 pins Regenboog GPIO kabel
- Monochrome 2.42 "128x64 OLED Graphic Display Module Kit
- Kleine Metalen Speaker tau ntsib Draadjes - 8 ohm 0.5W
- Adafruit Mono 2.5W Class D Audio Versterker
- 3.5mm Aux Jack cable
- 7mm xov Momentary Push Button
- Tuimelschakelaar
- PIR Bewegingssensor
- DS18B20 Digitale ntsuas qhov ntsuas kub
- Grove Lucht lub tshuab hluav taws xob sensor v1.3
- Grove - I2C ADC
- Raspberry Pi 4 USB-C Voeding
- Flexibel mini-statief
- 470 Ohm resistors
- 4,7K Ohm tus tiv thaiv
- Thaum tshav kub kub ntsws tubing
- 6 x Ntsia Hlau M2 x 6mm
- 6 x Ntsia Hlau M2 x 8mm
- 3 x Ntsia Hlau M2 x 16mm
- Aluminiumbuis 3 hli
Kuv kuj tau ua Tus Nqi Ntawm Cov Khoom (BOM) yog li koj tuaj yeem pom ntau npaum li cas kuv tau them nyiaj rau txhua yam ntaub ntawv thiab qhov twg kuv tau txais lawv.
Kauj ruam 2: Raspberry Pi
Txog qhov haujlwm no, peb siv Raspberry Pi vim nws yooj yim teeb tsa thiab nws tuaj yeem siv rau ntau yam. Nws zoo meej rau yam peb xav ua.
Rub lub Raspberry Pi Desktop OS thiab nruab nws ntawm koj li Raspberry Pi. Koj yuav tsum tau pab kom SPI, I2C thiab Ib Tus Hlau hauv qhov raspi-teeb tsa. Kuv hais kom kaw qee yam hauv Boot Options thiab kom nws khau raj sai dua. Lwm yam tshaj li qhov kuv siv qee lub tsev qiv ntawv uas koj yuav tsum tau nruab nrog pip los ua txoj haujlwm no.
pip3 nruab:
- adafruit-circuitpython-ssd1305
- ib ics
- Lub hwj
- Flask-Cors
- Flask-JWT-Txuas Ntxiv
- mysql-txuas-sej
Koj kuj xav tau apache2 los teeb tsa lub vev xaib, ntawm no peb siv apt:
sudo apt nruab apache2 -y
Koj yuav tsum teeb tsa kev sib txuas wireless vim tias koj tsis tuaj yeem tau txais UTP cable hauv Raspberry Pi thaum nws nyob hauv rooj plaub.
Koj yuav tsum teeb tsa MariaDB ib yam li koj tuaj yeem nkag mus rau lub hauv paus.
Kauj Ruam 3: Kev thaiv kab hlau
Cov kauj ruam tom ntej yog xaim txhua yam ua ke thiab kuaj yog tias txhua yam ua haujlwm. Kuv tsim PCB los tshem daim ntawv tais thiab ua kom cov hlua txuas tsawg dua yog li cov cuab yeej tuaj yeem me dua. Qhov no yog qhov tsim nyog vim tias nws yuav sawv ib sab ntawm koj lub saib thiab tsis tuaj yeem siv ntau qhov chaw yog li nws tsis cuam tshuam koj ntawm koj txoj haujlwm.
Kauj ruam 4: Database
Cov cuab yeej no ua rau siv qhov qub MySQL database khaws tag nrho nws cov ntaub ntawv hauv thiab qhia qhov no ntawm lub vev xaib thiab lub cuab yeej nws tus kheej. Kuv tsim nws hauv MySQL Workbench.
Muaj 5 lub rooj hauv cov ntaub ntawv no.
Table Activiteiten (= cov haujlwm, cov xwm txheej) tau siv los khaws txhua qhov xwm txheej ntawm daim ntawv qhia hnub. Qhov no kuj suav nrog tag nrho cov xwm txheej tuaj ntawm lwm daim ntawv qhia hnub.
Table Apparaten (= devices) tau siv los khaws cov khoom sib txawv uas tau siv hauv cov lus Historiek (= keeb kwm). Muaj ob lub ntsuas ntsuas siv hauv txoj haujlwm no, ntsuas kub thiab ntsuas huab cua zoo tab sis kuv kuj muaj qhov thib peb "ntaus ntawv", lub vev xaib nws tus kheej khaws cov lus xa los ntawm lub vev xaib mus rau lub cuab yeej.
Table Gebruikers (= cov neeg siv) khaws cov neeg siv. Lawv tuaj yeem nkag mus nrog lawv tus password thiab qhia lub npe menyuam yaus uas qhia nrog cov lus thaum xa mus rau lub cuab yeej.
Table Historiek (= keeb kwm) tau siv los khaws lub ntsuas qhov ntsuas thiab cov lus xa mus rau lub cuab yeej.
Thiab thaum kawg rooj Txuas (= URL's) khaws txhua daim ntawv qhia hnub sab nrauv URL's.
Kauj ruam 5: Code
Kuv pom zoo kom ua tus neeg siv tshiab raws li nws yog kev coj ua zoo tshaj plaws tab sis nws tsis tsim nyog, koj tseem tuaj yeem siv tus neeg siv pi pib.
Txoj cai ntawm lub ntsej muag tau muab tso rau hauv lub neej ntawd html nplaub tshev los ntawm apache2. Koj tuaj yeem pom daim nplaub tshev no hauv/var/www/html.
Rau lub backend, koj yuav tsum ua daim ntawv tais ceev tseg hauv koj lub tsev ntawv thiab muab tag nrho cov cai nyob rau ntawd.
Peb yuav tsum hloov qee qhov txiaj ntsig hauv cov cai no ib yam. Thawj zaug mus rau app.py. Ntawm kab 23 teeb lub npe ntawm ib lub xov tooj cua ntsuas cua. Tej zaum qhov no yuav yog yam txawv rau koj. Txhawm rau nrhiav lub npe raug, qhib lub davhlau ya nyob twg thiab ntaus hauv:
ls/sys/bus/w1/khoom siv
thiab nrhiav txoj hlua uas suav nrog ntau tus lej sib txawv thiab hloov ib qho ntawm kab 23.
Lwm qhov peb yuav tsum tau hloov pauv yog nyob hauv cov ntawv config.py, hloov tus password ntawm lub database.
Yog tias koj xav kom qhov no khiav ntawm khau raj, koj yuav tsum hloov cov ntaub ntawv EasyTalk.service ib yam. Tsuas yog hloov Chaw Ua Haujlwm thiab Cov Neeg Siv. Koj yuav tsum luam cov ntawv no nrog cov lus txib tom ntej:
sudo cp EasyTalk.service/etc/systemd/system/EasyTalk.service
Tom qab ntawd khiav nws:
sudo systemctl pib EasyTalk.service
Thiab tom qab ntawd qhib nws kom nws yuav pib ntawm khau raj
sudo systemctl pab kom EasyTalk.service
Kauj Ruam 6: Rooj plaub
Kuv txiav txim siab 3D luam cov ntaub ntawv yog li nws tuaj yeem ua me me li sai tau. Cov ntawv luam tawm muaj 3 ntu, lub npov nws tus kheej, lub hau thiab tus tuav lub hais lus vim tias qhov no tsis muaj qhov rau ntsia hlau ntsia hlau.
Koj tseem yuav xav tau qee qhov ua siab tawv txhawm rau txhawm rau txhua yam ua ke.
- 6 x Ntsia Hlau M2 x 6mm
- 6 x Ntsia Hlau M2 x 8mm
- 3 x Ntsia Hlau M2 x 16mm
Kuv yuav ncaj ncees ho. Nws siv kuv 4-5 teev los tsim qhov no. Vim tias nws me me, txhua yam tsuas yog haum thiab nws nyuaj rau ntswj lub siab tawv qee zaum tab sis nws ua haujlwm yog tias koj ua tib zoo ua.
Kuv kuj tsim PCB los hloov daim ntawv qhia zaub mov, thawj zaug koj yuav tsum tau muab lub taub hau thiab 5 tus tiv thaiv (4 x 470 Ohm, 1 x 4.7K Ohm).
Thaum koj muaj PCB, Kuv xav kom pib nrog txuas cov hlua rau txhua yam uas yuav tsum txuas rau PCB.
Thaum qhov no ua tiav, koj yuav ntswj cov OLED zaub rau hauv qhov chaw thiab txuas PCB rau nws. Cov zaub tuav PCB. Koj siv 6mm screws rau qhov no.
Tom qab ntawd koj ntswj lub ntsuas cua zoo nyob qhov twg nws yuav tsum mus tab sis qhov no nyuaj me ntsis vim tias ADC txuas rau nws. Txhawm rau ua qhov no kom raug kom ob lub Cheebtsam tsis kov ib leeg, koj siv 16mm ntsia hlau nrog 3 x 5mm txhuas raj uas koj yuav tsum pom. Kuv tau ua qhov no nrog ob tus ntsia hlau vim tias kuv tsis tuaj yeem mus txog tus thib peb. Koj txuas 4 txoj xov hlau uas lawv yuav tsum mus rau ntawm PCB.
Tom qab ntawd koj txuas lub suab tso suab mus rau PCB thiab muab tus neeg hais lus tso rau hauv nrog lub tshuab luam ntawv 3D.
Tom qab cov kauj ruam no, ntu nyuaj tshaj plaws thiab koj tuaj yeem txuas txhua yam ntxiv rau PCB thiab ntsia hlau rau hauv. Nco ntsoov tias hauv cov duab koj pom kuv siv lub ntsuas kub sib txawv, rau qhov khoom kawg, Kuv tau siv lub ntsuas kub nrog lub xov tooj ntev uas khiav tawm ntawm lub thawv vim tias nws ntsuas cua sov los ntawm sab hauv lub thawv.
Thaum tag nrho cov no nyob hauv qhov chaw, koj yuav tsum ntsia lub Raspberry Pi hauv. Kuv siv rooj plaub rau qhov no vim tias kuv tsis ntseeg qhov cua sov nws tsim tawm, rooj plaub no muaj rau kev tiv thaiv yog li 3D luam ntawv tsis yaj. Ua ntej koj ntswj nws rau hauv qhov chaw, koj yuav tsum txuas lub hwj chim cable thiab aux cable (uas koj yuav tsum qhib thiab txuas ib lub xaim rau thiab tom qab ntawd txuas los ntawm Raspberry Pi mus rau PCB) vim tias koj mus tsis tau nws tom qab.
Tom qab ntawd tsuas yog txuas GPIO header cable los ntawm PCB mus rau Raspberry Pi thiab ntsuas yog tias txhua yam ua haujlwm ua ntej kaw lub hau.
Hauv qab muaj lub qhov uas koj tuaj yeem txuas nrog lub tswb tab sis qhov no yog nyob ntawm yeem.
Qhov ntawd yog nws! Kuv vam tias koj nyiam nyeem kab lus no! -Koob
Pom zoo:
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: 4 Cov Kauj Ruam (nrog Duab)
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: Hnub no kuv xav qhia yuav ua li cas kom pom lub teeb pom kev zoo los ntawm lub zog xa hluav taws xob tsis siv hluav taws xob los ntawm tus txhuam txhuam hniav thiab lub tshuab solenoid valve coils uas tau khaws los ntawm scrapyard.Ua ntej pib, thov saib cov vis dis aus hauv qab no:
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej
Txoj Kev Yooj Yim thiab Yooj Yim Los Hloov Koj Lub Xauv Screen hauv 6 Cov Kauj Ruam Yooj Yim (Windows 8-10): 7 Kauj Ruam
Txoj Kev Yooj Yim thiab Yooj Yim Los Hloov Koj Lub Xauv Screen hauv 6 Cov Kauj Ruam Yooj Yim (Windows 8-10): Xav hloov pauv yam ntawm koj lub laptop lossis PC? Xav tau kev hloov pauv hauv koj qhov chaw? Ua raws cov kauj ruam no yooj yim thiab yooj yim kom ua tiav koj tus kheej lub computer ntsuas phoo
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS YOOJ YIM: 4 Cov Kauj Ruam
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS: Nyob zoo txhua tus hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas kom yooj yim " SOIL DRYNESS SENSOR ". Qhuav ntawm cov av tau txheeb xyuas siv qhov taw qhia coj. Lub teeb ci wi
Ib qho yooj yim heev/yooj yim/Tsis yooj yim txoj hauv kev kom tib neeg/tib neeg/tsiaj/neeg hlau zoo li lawv muaj txias tiag tiag/Lub zeem muag tshav kub kub (Xim ntawm Koj Xaiv) Siv GIMP: 4 Cov Kauj Ruam
Ib qho yooj yim heev/yooj yim/Tsis yooj yim txoj hauv kev kom tib neeg/tib neeg/tsiaj/neeg hlau zoo li lawv muaj txias tiag tiag/Lub zeem muag tshav kub kub (Xim ntawm Koj Xaiv) Siv GIMP: Nyeem … lub npe