Cov txheej txheem:
- Kauj Ruam 1: RAWS LI HARDWARE
- Kauj Ruam 2: LOAD PROGRAM ONTO ARDUINO
- Kauj Ruam 3: MONITOR nyeem thiab cuam tshuam nrog SENSORS
- Kauj Ruam 4: Ua Nws Ntxiv Mus
Video: Txuas txuas ntau lub ntsej muag rau ib qho ARDUINO UNO SERIAL PORT: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hauv qhov kev qhia no, peb yuav nthuav dav ib qho Arduino UNO UART (Rx/Tx) qhov chaw nres nkoj kom ntau Atlas sensors tuaj yeem txuas nrog. Kev nthuav dav tau ua tiav siv 8: 1 Serial Port Expander board. Arduino qhov chaw nres nkoj tau txuas nrog tus nthuav dav tom qab uas lub teeb liab tau hla mus rau yim qhov chaw nres nkoj uas cov khoom siv sib txuas tau txuas nrog. Rau qhov yooj yim lub hom phiaj, peb yuav siv peb qhov chaw nres nkoj, tab sis nrog ob peb kauj ruam ntxiv, koj tuaj yeem nthuav dav siv tag nrho yim.
Kev sib txuas lus tau ua tiav ntawm UART hom, thiab cov txiaj ntsig tau tshwm ntawm Arduino cov saib xyuas. Los ntawm lub neej ntawd, kev nyeem ntawv ntawm cov ntsuas sib txuas tau raug xaiv tsis tu ncua. Ib tus neeg tuaj yeem qhib tau, uas yuav tso cai rau tus neeg siv sib tham nrog lub ntsuas tshwj xeeb.
ADVANTAGES:
- Nthuav ib qho UART (Rx/Tx) chaw nres nkoj txuas mus rau yim qhov chaw nres nkoj ntxiv.
- Yooj yim khaws cov tab ntawm cov channel twg tau qhib los ntawm onboard LEDs ntawm Expander module.
- Ua haujlwm nrog Atlas Scientific's EZO sensors hauv qab no: pH, salinity, yaj cov pa (DO), kub, oxidation-txo peev xwm (ORP), CO2, peristaltic twj.
- Kev tso tawm lub sijhawm tiag tiag sensor
KHOOM:
- Arduino UAS
- Cov qhob cij
- Jumper xov hlau
- 1- EZO yaj cov pa oxygen thiab 1- yaj cov pa oxygen
- 1- EZO conductivity Circuit thiab 1- conductivity k1.0 sojntsuam
- 1- EZO pH Circuit thiab 1- pH sojntsuam
- 1- 8: 1 Serial Port Expander
- 2- Inline voltage rho tawm
- 3- Poj niam BNC txuas
Kauj Ruam 1: RAWS LI HARDWARE
Sib sau kho vajtse raws li qhia hauv schematic saum toj no.
Ua kom ntseeg tau tias cov ntsuas hluav taws xob nyob hauv hom UART ua ntej txuas lawv mus rau Expander. Txog cov ntaub ntawv yuav hloov pauv li cas ntawm cov txheej txheem xa mus rau LINK hauv qab no.
Qhov ua tau zoo ntawm cov ntsuas yog qhov ua rau lawv muaj qhov tseeb. Tab sis qhov no kuj txhais tau tias lawv raug cuam tshuam los ntawm lwm cov khoom siv hluav taws xob thiab raws li qhov xav tau kev rho tawm hluav taws xob. Kev rho tawm hluav taws xob tau siv los cais cov pa thiab cov pa pH los ntawm cov ntsuas ntsev. Yog tsis muaj kev cais, kev nyeem tsis raug. Yog xav paub ntxiv txog kev rho tawm xa mus rau LINK hauv qab no.
Cov ntaub ntawv:
- 8: 1 Serial Port Expander
- EZO UA
- EC ZOS
- EZO pH tau
- Voltage rho tawm
Kauj Ruam 2: LOAD PROGRAM ONTO ARDUINO
Cov cai rau qhov kev qhia no ua rau siv lub tsev qiv ntawv tshwj xeeb thiab cov ntaub ntawv header rau EZO circuits hauv UART hom. Koj yuav tau ntxiv lawv rau koj li Arduino IDE los siv cov cai. Cov theem hauv qab no suav nrog cov txheej txheem ntawm kev ntxiv rau IDE.
a) Rub tawm Ezo_uart_lib, zip zip los ntawm GitHub rau hauv koj lub computer.
b) Ntawm koj lub khoos phis tawj, qhib Arduino IDE (koj tuaj yeem rub tawm IDE los ntawm HERE yog tias koj tsis muaj nws).
c) Hauv IDE, mus rau Sketch -> Xws li Lub Tsev Qiv Ntawv -> Ntxiv. ZIP Library -> Xaiv Ezo_uart_lib nplaub tshev uas koj nyuam qhuav rub tawm. Cov ntaub ntawv tsim nyog tam sim no suav nrog.
d) Luam cov cai los ntawm Serial_port_expander_example mus rau koj li haujlwm IDE. Koj tseem tuaj yeem nkag nws los ntawm Ezo_uart_lib nplaub tshev rub tawm saum toj no.
e) Sau thiab xa Serial_port_expander_example code rau koj Arduino Uno.
f) Tus lej saib xyuas tau siv los ua txoj kab kev sib txuas lus. Txhawm rau qhib lub ntsuas saib, mus rau Cov Cuab Yeej -> Serial Monitor lossis nias Ctrl+Ua haujlwm+M ntawm cov keyboard. Teem tus nqi baud rau 9600 thiab xaiv "Carriage return." Kev nyeem ntawv ntawm lub ntsuas yuav tsum tam sim no tso tawm tas li, thiab tus neeg siv yuav tuaj yeem cuam tshuam nrog tus kheej lub ntsuas.
Kauj Ruam 3: MONITOR nyeem thiab cuam tshuam nrog SENSORS
Txhawm rau qhib cov channel qhia los ntawm P1- P8 ntawm Expander board, xa tus lej xov tooj tom qab los ntawm cov nyuv thiab cov lus txib (yog tias muaj). Xaus txoj hlua nrog lub tsheb rov qab (ENTER qhov tseem ceeb ntawm cov keyboard). Piv txwv li, 3: Kuv yuav qhib channel peb thiab thov cov ntaub ntawv ntaus ntawv.
Txhawm rau qhib cov channel thiab tsis xa cov lus txib tsuas yog nkag mus rau tus lej channel ua raws los ntawm cov nyuv. Xaus txoj hlua nrog lub tsheb rov qab (ENTER qhov tseem ceeb ntawm cov keyboard). Piv txwv li, 2: yuav qhib channel ob. Tam sim no koj tuaj yeem xa ib qho lus txib tshwj xeeb rau qhov ntsuas xws li cal,? uas yuav tshaj tawm cov ntaub ntawv ntsuas ntsuas. Xa mus rau cov ntaub ntawv ntsuas cov ntaub ntawv rau cov npe ntawm cov lus txib.
Kauj Ruam 4: Ua Nws Ntxiv Mus
Raws li tau qhia, peb tsuas yog siv peb tawm ntawm yim qhov chaw nres nkoj. Txhawm rau siv ntau qhov chaw nres nkoj, ua raws cov phiaj xwm thaiv kab ke qhia hauv qib 1 thiab nthuav dav mus rau chaw nres nkoj 4, chaw nres nkoj 5 thiab lwm yam. Koom nrog cov cais thaum tsim nyog. Tus qauv piv txwv, Serial_port_expander_example tseem yuav xav tau qee qhov kev hloov kho. Xa mus rau cov lus pom hauv kab lus rau kev taw qhia.
Pom zoo:
Yuav Ua Li Cas Tsim Lub Ntsej Muag Ntsej Muag Nrog Raspberry Pi 4: 10 Cov Kauj Ruam
Yuav Ua Li Cas Kom Ntsej Muag Ntsej Muag Nrog Raspberry Pi 4: Hauv phau ntawv qhia no peb yuav pom yuav tsim lub ntsej muag ntse li cas siv cov khoom siv rov ua dua tshiab xws li daim duab thav duab, lub qub saib thiab iav duab. .com
Lub Ntsej Muag Ntsej Muag Ntsej Muag => Covid Tiv Thaiv!: 5 Kauj Ruam
Lub Ntsej Muag Ntsej Muag Ntsej Muag => Covid Tiv Thaiv!: Tus naj npawb 1 yam uas cov neeg saib xyuas kev noj qab haus huv xav kom tib neeg ua thaum lub sijhawm muaj tus kabmob kis no yog hnav lub ntsej muag thaum tawm mus rau qhov chaw pej xeem, tab sis qee tus neeg tseem ua qhov muag tsis pom qhov lus ceeb toom. Nkag mus ….. COVID PrevEnter! Tus neeg hlau no siv lub koob yees duab Pixy2
Vortex Saib: lub ntsej muag Infinity Daim iav Lub Ntsej Muag: 10 Cov Kauj Ruam (nrog Duab)
Vortex Watch: Infinity Mirror Wristwatch: Lub hom phiaj ntawm txoj haujlwm no yog txhawm rau tsim qhov hnav tau ntawm lub iav tsom iav infinity. Nws siv nws cov RGB LEDs los qhia lub sijhawm los ntawm kev teev teev, feeb, thiab vib nas this rau Liab, Ntsuab, thiab Xiav teeb raws thiab sib tshooj cov xim no
Lub Xov Tooj Ntsej Muag Lub Ntsej Muag Nrog Tus Nqi: 4 Kauj Ruam
Smart Phone Wrist Mount With Charger: Ib lub dab teg yooj yim, uas tuaj yeem txuag tau lub xov tooj ntse thiab them nws nrog lub txhab nyiaj hluav taws xob.Lub caij no, muaj cov ntse ntse txias heev, tab sis lawv tseem muaj qhov txwv kev ua haujlwm thiab sau cov ntawv txuas los ntawm cov yeeb yaj kiab qub ntsia zoo li qhov no
OpenEyeTap: 3D Luam Ntawv & Lub Ntsej Muag Ntsej Muag iav: 12 Cov Kauj Ruam (nrog Duab)
OpenEyeTap: 3D Luam Ntawv & Lub Ntsej Muag Ntsej Muag iav: Zoo siab txais tos rau Qhib EyeTap's Cov Ntawv Qhia! Peb yog ob peb tus neeg mob siab rau nrog lub hom phiaj loj los tsim lub ntiaj teb kev ua haujlwm ntse tshaj plaws tsom iav thiab Hnav Hnav Augmented Reality Community. Peb xav kom nkag mus tau yooj yim lub moj khaum ntawm qhov augmented