Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Arduino Circuit
- Kauj ruam 2: Arduino Code
- Kauj Ruam 3: Raspberry Pi Circuit
- Kauj Ruam 4: Raspberry Pi Code
- Kauj Ruam 5: Txhim Kho Qhov Teeb Meem thiab Ruaj Khov
- Kauj Ruam 6: Qhov kawg
Video: Airduino: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Ob peb lo lus ua ntej kuv piav qhia tias kuv tsim kuv li Airduino li cas. Tag nrho txoj haujlwm yog qhov haujlwm raws tsev kawm ntawv thiab vim tias peb muaj lub sijhawm nruj txwv ntau yam uas tsis zoo tab sis kev ua haujlwm yooj yim ua haujlwm.
Yog li Airduino yog dab tsi? Luv luv: nws yog qhov zoo nkauj wireless saib xyuas huab cua. Ntev: Arduino ntsuas huab cua zoo, xa tag nrho cov ntaub ntawv mus rau Raspberry Pi ntawm Bluetooth thiab khaws nws hauv cov ntaub ntawv khaws tseg. Kuv tau ua lub vev xaib yooj yim kom pom cov ntaub ntawv. Tab sis qhov tseem ceeb tshaj plaws, nws muaj lub zog tswj tau RGB coj!
Nws ntsuas pes tsawg? Zoo, Kuv tau xaiv los ntsuas qhov ntsuas kub, av noo, huab cua siab, CO2 thiab CO. Koj tuaj yeem ntsuas txhua yam koj xav tau, tsuav yog muaj lub sensor sib xws rau nws.
Kuv tau suav nrog cov npe ntxaws ntawm cov khoom siv nrog txuas rau qee yam khoom kuv tau yuav.
Khoom siv
Nov yog tag nrho cov khoom kuv siv:
Arduino
Raspberry Pi
LCD zaub
HC-05, ib qho qauv Bluetooth yuav ua haujlwm
BMP-180 (huab cua siab sensor)
DHT-11 (huab cua ntsuas pa)
MQ-7 (CO sensor)
MQ-135 (CO2 sensor)
9W RGB coj (3x3W)
XL4015 Kauj ruam nqis buck hloov (txuas) (2x)
XL6009E1 Step-up boost converter (txuas)
MH CD42 roj teeb lub rooj tsavxwm (txuas)
18650 Roj teeb ntawm tes (4x)
4 Bay 18650 tus tuav lub roj teeb
BC337 transistors (5x)
Resistors (1 Kohm (5x), 10 Kohm)
Hloov
Khawm
Micro USB rau DIP adapter
Hlau
Perfboard
Heatsink (los ntawm lub khoos phis tawj qub)
Kauj Ruam 1: Arduino Circuit
Qhov nyuaj tshaj plaws yog ib feem ntawm Arduino vim nws ua haujlwm yooj yim txhua yam.
Hauv cov txheej txheem suav nrog koj tuaj yeem pom, zoo, cov phiaj xwm. Nws yuav zoo li nyuaj thiab nyuaj thaum xub thawj tab sis nws yooj yim heev. Kuv xub tsim tag nrho cov kab hluav taws xob yam tsis muaj cov khoom siv hluav taws xob rau coj, ntawm lub khob cij kom pom tias txhua yam ua haujlwm. Afterwords Kuv soldered txhua yam ntawm perfboard, Kuv sim tsawg kawg.
Feem ntau ntawm cov ntsuas tau ncaj ncaj rau tom ntej tshwj tsis yog MQ-7. Qhov ntsuas no yog, rau kuv kev nyuaj rau koom nrog hauv txoj haujlwm. Kuv ua raws ib qho ntawm cov lus qhia zoo xwb kuv tuaj yeem pom thiab nws zoo li ua haujlwm yog tias kuv tsuas txuas nrog lub sensor ntawd. Yog tias kuv txuas nrog lwm qhov ntsuas nws ua qhov txawv yog li kuv yuav tsum tau ua qee qhov kev tswj hwm ntawm cov cai, ntau ntxiv tom qab ntawd.
Kauj ruam 2: Arduino Code
Yog tias koj tau tsim koj lub Circuit Court ntawm daim ntawv qhia zaub mov ces koj tuaj yeem sim nws feem ntau. Txuas koj Arduino rau lub PC thiab xa cov lej suav nrog. Yog tias koj txuas tus tx thiab rx pins koj tuaj yeem xa lus txib ntawm Arduino IDE Monitor. Yog tias koj xa 'BMPTemp' koj yuav tsum tau txais lus teb yog tias koj ua txhua yam raug.
Kauj Ruam 3: Raspberry Pi Circuit
Kuv tau ntxiv cov zaub rau kuv Pi los tso saib IP-chaw nyob qhov chaw tau teeb tsa. qhov nyuaj tshaj plaws yog xam cov pins raug.
Kauj Ruam 4: Raspberry Pi Code
Thawj qhov koj yuav tsum tau ua yog teeb tsa lub onboard Bluetooth. Kuv tau ua txhua yam siv kab hais kom ua, nws tuaj yeem ua tiav siv GUI tab sis kuv yuav tsis npog qhov ntawd. Kuv xav tias koj paub qhov pib ntawm Raspberry PI thiab Rasbian, kev ua haujlwm.
Nws mus raws li hauv qab no:
Kauj ruam 1: txuas rau koj Pi ntawm SSH, Kuv siv Putty.
Kauj ruam 2: Ntaus cov lus txib hauv qab no hauv lub davhlau ya nyob twg:
- 'sudo bluetoothctl'
- 'zog'
- 'tus neeg sawv cev'
- 'scan rau'
Kauj Ruam 3: Tam sim no tos kom txog thaum pom HC-05, koj yuav tsum qhib lub zog.
Kauj Ruam 4: Tam sim no yuav tsum tau ua khub thiab ntseeg lub cuab yeej, ntaus cov lus txib hauv qab no:
- 'khub xx: xx: xx: xx: xx: xx', nrog mac chaw nyob ntawm HC-05 module nyob rau hauv qhov chaw ntawm x'es.
- 'txuas xx: xx: xx: xx: xx: xx', tab sis qhov no feem ntau yuav muab qhov yuam kev.
- 'ntseeg xx: xx: xx: xx: xx: xx'
Kauj Ruam 5: Tam sim no tus qauv tau ua khub thiab ntseeg tau peb yuav tsum khi nws mus rau qhov chaw nres nkoj txuas. Qhov no tuaj yeem ua tiav nrog cov lus txib hauv qab no: 'sudo rfcomm khi 0 xx: xx: xx: xx: xx: xx', dua nrog x'es sawv cev rau mac-address ntawm HC-05 module. Feem ntau yog tias koj saib hauv '/dev' koj yuav tsum pom 'rfcomm0', yog tias koj tsis sim rov pib dua.
Qhov teeb meem yog tam sim no uas koj yuav tsum ua tiav qhov kev hais kom ua txhua yam uas koj khau raj Pi. Txhawm rau ua qhov ntawd kuv tau ntxiv cov lus txib rau '/etc/rc.local' ua ntej 'tawm 0'. Tam sim no nws yuav cia li khi tus qauv.
Tam sim no koj tau teeb tsa Bluetooth koj tuaj yeem ua tus lej kuv suav nrog. Ceev faj tias kuv tau muab MariaDB cov ntaub ntawv khaws cia rau kuv Pi, Kuv yuav tsis npog yuav teeb tsa li cas, Kuv tsuas yog suav nrog tus qauv ntawm kuv cov ntaub ntawv khaws tseg thiab dumbfile. Yog tias koj xav khiav cov cai yam tsis muaj database thiab lub vev xaib Kuv suav nrog cov haujlwm yooj yim los ua li ntawd.
Luam cov ntsiab lus ntawm cov ntawv zip rau koj Pi thiab khiav lawv nrog cov lus txib hauv qab no: 'python3 airduino.py', xav tias koj nyob hauv tib lub nplaub tshev. Yog tias koj Arduino tau siv hluav taws xob thiab tx thiab rx pins txuas nrog koj yuav tsum pom qee cov lus hais txog kev ntxig cov ntaub ntawv rau hauv database. Yog tias koj xav kom lub tshuab ua haujlwm pib lub program ntxiv kab no rau '/etc/rc.local': 'python3 //arduino.py', hloov nrog txoj hauv kev tiag.
Txog rau lub vev xaib, Kuv tau teeb tsa appache server los tuav lub vev xaib. Luam cov ntaub ntawv los ntawm zipfile rau '/var/www/html/'. Tam sim no yog tias koj mus rau IP-chaw nyob ntawm koj tus PI koj yuav tsum pom lub vev xaib thiab cov ntaub ntawv yog tias txhua yam ua haujlwm raug.
Kauj Ruam 5: Txhim Kho Qhov Teeb Meem thiab Ruaj Khov
Arduino
Tam sim no txhua yam ua haujlwm, tsuas yog coj, nws yog lub sijhawm los tso txhua yam rau hauv rooj plaub zoo. Kuv txiav txim siab ua tus pej thuam uas txhua qhov khoom siv txuas nrog, thiab puag ncig qhov ntawd los ntawm cov ntaub ntawv yooj yim.
Tab sis ua ntej kuv tau siv tag nrho cov khoom siv rau perfboard thiab txuas qee cov xov hlau rau hauv av thiab Vcc. Kuv muab feem ntau ib lossis ob ntu ntawm ib qho thiab tso lawv ncig lub pej thuam.
Lub roj teeb tuav muaj cov xov hlau ntev dua thiab tsis kho nyob rau hauv qhov chaw, nws tuaj yeem swb hauv thiab tawm los hloov cov cell.
Txij ntawm no kuv tso cov tsav tsheb rau tus coj ntawm qib kawg ntawm kuv tus pej thuam. Kuv tso tseg qhov tso zis hluav taws xob ntawm cov tsav tsheb mus rau 2.2 rau coj liab thiab 3.2 rau ntsuab thiab xiav coj. Kuv txuas tus coj mus rau kuv lub dab dej sov thiab kuv tus kiv cua nrog zip-ties. Tom qab ntawd kuv tau siv ntoo los tuav nws hauv qhov chaw.
Kuv txuas feem ntau ntawm Cov Xov Tooj Hauv av thiab Vcc xov hlau siv cov ntsia hlau txuas.
Xyuas kom tseeb tias koj ua rau koj lub hauv paus phaj loj txaus yog li cov txheej txheej sab nrauv zoo. Cov ntaub ntawv sab nraud tsuas yog lub thawv ntoo tawm ntawm ntoo. Nyob rau sab saum toj kuv muab qee tus yas yas pob tshab kuv tau xuab zeb me ntsis kom lub teeb softer. Kuv kuj ntxiv lub hwj huam khawm.
Raspberry Pi
Txog Raspberry Pi Kuv tsuas yog ua lub thawv ntoo yooj yim nrog LCD nyob rau sab saum toj thiab khawm nyob ntawm ib sab.
Kauj Ruam 6: Qhov kawg
Tom qab koj muag txhua yam thiab tsim koj lub thaiv nws yog lub sijhawm los ua qhov kev sim zaum kawg. Fais fab txhua yam ntawm thiab mus saib lub vev xaib, yog tias txhua yam mus zoo koj yuav tsum pom qee cov ntaub ntawv nyob.
Txog cov roj teeb:
Yog tias koj siv ntau dua 1 lub roj teeb ua ke koj yuav tsum paub tseeb tias lawv cov qib hluav taws xob zoo ib yam, lossis ze rau.
Github:
Nov yog qhov txuas rau kuv Github chaw cia khoom uas txhua qhov ntaub ntawv hloov kho tshiab nyob.
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
Airduino: Mobile Air Quality Monitor: 5 Kauj Ruam
Airduino: Mobile Air Quality Monitor: Zoo siab txais tos rau kuv qhov project, Airduino. Kuv lub npe yog Robbe Breens. Kuv tab tom kawm ntau yam xov xwm thiab kev sib txuas lus thev naus laus zis ntawm Howest hauv Kortrijk, Belgium. Thaum kawg ntawm lub semester thib ob, peb yuav tsum ua IoT cov cuab yeej, uas yog txoj hauv kev zoo los nqa tag nrho
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