Cov txheej txheem:
- Kauj Ruam 1: Teeb Teeb
- Kauj ruam 2: Software Teeb: Arduino
- Kauj Ruam 3: Software Teeb: Python
- Kauj Ruam 4: Yuav Tsum Debugging Teeb Meem
- Kauj Ruam 5: Demoing the Complete Device
Video: Kev Ruaj Ntseg Hauv Tsev Siv Sensor Fusion: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Lub tswv yim tom qab txoj haujlwm no yog tsim kom pheej yig thiab yooj yim los ua kom muaj kev ruaj ntseg uas tuaj yeem siv los ceeb toom koj thaum ib tus neeg hla nws. Lub hom phiaj tseem ceeb yog tsim kom muaj qee yam uas tuaj yeem ceeb toom rau kuv thaum ib tus neeg taug kev nce ntaiv tab sis kuv kuj siv nws ua lub ntsuas kev ruaj ntseg rau lub qhov rooj. Cov software muab hauv cov lus qhia no yog sib xws nrog macOS. Kev hloov pauv me ntsis yuav tsum tau ua rau nws ua haujlwm nrog Windows. Txog tag nrho cov cai rau ib qho ntawm cov ntawv sau no, xa mus rau GitHub repo no.
Khoom siv:
- Arduino Nano* Cov
- Ultrasonic HC-SR04 Sensor
- Bluetooth HC-05 Module
- OMRON Tactile Hloov
- 10 k Resistor
- Breadboard Hlau Khoom
- Cov qhob cij
- Fais fab txhab nyiaj
*Uno lossis mega kuj tseem tuaj yeem siv qhov chaw ntawm nano.
Kauj Ruam 1: Teeb Teeb
Ua raws cov phiaj xwm hluav taws xob raws li qhia saum toj no. Thaum koj xa daim duab Arduino mus rau nano, nco ntsoov tshem cov xov hlau los ntawm RX thiab TX pins ntawm nano. Nws tau pom tias kev xa mus rau Arduino tuaj yeem ua rau yuam kev yog tias cov pins txuas nrog lub bluetooth module. Rub tawm daim duab kos ua ntej thiab tom qab ntawd txuas cov pins mus rau bluetooth module.
Cov Cheeb Tsam Loj
- Arduino Nano - Microcontroller
- HC -SR04 - Ultrasonic Sensor
- HC -05 Module - Bluetooth Module
- OMRON Hloov - Khawm Siv Hloov Sensor On/Off
Kauj ruam 2: Software Teeb: Arduino
- Rub tawm Software Serial rau koj lub tsev qiv ntawv Arduino
- Nco ntsoov xaiv qhov chaw nres nkoj thiab pawg thawj coj saib uas haum koj li Arduino
- Rub tawm cov ntaub ntawv xov xwm muab thiab xa daim duab kos ib zaug koj paub tseeb tias RX/TX pins ntawm Arduino raug txiav tawm ntawm lub tshuab bluetooth.
Kauj Ruam 3: Software Teeb: Python
Txhawm rau ceeb toom koj ntawm koj lub khoos phis tawj kom zoo, koj yuav tsum tau khiav kab ntawv nab hab sej. Txog kev pab rub tawm nab hab sej thiab cov tsev qiv ntawv xav tau thov xa mus rau qhov qhia tau qhia los ntawm TalalKhalil.
Qhov muab cov ntawv nyeemValuesV2.py nyeem hauv qhov tseem ceeb xa los ntawm bluetooth module, txiav txim siab yog tias nws qhia tau tias ib tus neeg tau hla lub sensor thiab tsim kev ceeb toom ntawm koj lub laptop. Nws tseem tsim thiab khaws cov ntawv tais ceev tseg hauv phau ntawv teev npe nrog txhua qhov kev ntsuas nws nyeem txij li tsab ntawv pib nrog lub sijhawm thwj cim.
Ua:
- Rub tawm Python thiab txhua qhov kev cia siab. (Kuv siv pip nruab)
- Nco ntsoov qhib lub bluetooth ntawm koj lub laptop thiab txuas rau lub cuab yeej uas muaj npe hu ua HC-06. Koj yuav tsum pom nws tau teev tseg hauv qab lwm cov npe khoom hauv bluetooth ib feem ntawm koj li kev teeb tsa. Tus passcode rau tus qauv yog '1234'.
- Qhov sib txawv hu ua distance_wall yog qhov uas txiav txim siab thaum lub sensor tawm mus. Yog li nyob ntawm qhov chaw sensor, nco ntsoov hloov tus nqi no uas sawv cev hauv cms rau koj ib puag ncig.
- Txuas tus pin RX/TX ntawm tus qauv bluetooth thiab tam sim no khiav cov ntawv nyeemValuesV2. Nws yuav nug koj txog tus lej sau cia kom nws tuaj yeem tsim lub npe kom raug cov ntaub ntawv nws tsim tawm.
Nws zoo li koj yuav tsum tau ua ntau qhov debugging yog li xa mus rau ntu kawg hauv Cov Lus Qhia no rau kev pab ntxiv.
Kauj Ruam 4: Yuav Tsum Debugging Teeb Meem
Arduino
1) avrdude: stk500_getsync (): tsis sib xws: resp = 0x0: Qhov no feem ntau tshwm sim nrog thaum sim xa cov duab kos rau Arduino.
- Xyuas kom tseeb tias qhov chaw nres nkoj COM raug thiab xaiv tau xaiv
- Yog tias koj tab tom siv 'ATmega328P' sim 'ATmega328P (Old Bootloader)'
- Nco ntsoov tias RX/TX tus pin ntawm Arduino raug kaw
2) Busy Comport yuam kev
Xyuas kom meej tias qhov chaw nres nkoj COM raug xaiv. Txij li koj tau sim xa cov duab kos mus rau Arduino, nco ntsoov tias tsab ntawv nab nab tsis ua haujlwm
Nab hab sej
1) [Errno 16] Cov khoom siv tsis khoom: '/dev/tty. HC-06-DevB': Qhov no tshwm sim thaum koj tsis txuas koj lub khoos phis tawj rau lub tshuab bluetooth
Txhawm rau daws qhov no koj yuav tsum ua kom ntseeg tau tias koj tau txuas HC tus qauv rau koj lub khoos phis tawj kom raug. Koj kuj yuav tsum xyuas kom meej tias cov qauv no tseem txuas nrog, nws yuav dhau los ua kev sib txuas tom qab koj ua tiav tsab ntawv
2) Qhov Tsis Zoo: Lub bluetooth module tsis txuas nrog
Nov yog qhov yuam kev pov tseg ntawm tus kheej yog tias Serial Port Connection nrog bluetooth module tsis txuas nrog
3) Python Packages Dependencies yuam kev
Kuv siv pip nruab los rub cov pob khoom xav tau rau nab hab sej. Xa mus rau pawg hla rau txhua qhov ua yuam kev uas tshwm tuaj ntawm qhov kawg
4) Ua yuam kev Vim OS
Kuv cia siab tias qee qhov yuam kev yuav tshwm tuaj yog tias os tau siv yog Windows. Qee qhov chaw uas yuav muaj teeb meem yog kev sau cov ntaub ntawv kaw thiab ceeb toom system ntawm koj lub laptop
5) serial.serialutil. SerialException: ntaus ntawv ceeb toom npaj kom nyeem tab sis rov qab tsis muaj cov ntaub ntawv
Qhov no qee zaum tshwm sim yog tias lub hwj chim raug muab tua. Qhov no tshwm sim rau kuv thaum kuv toggled lub cuab yeej tawm siv qhov hloov pauv
Kho vajtse
1) Ua kom ntseeg tau tias qhov hloov pauv tau zoo ntawm txoj kab sib faib ntawm lub khob cij kom tsis txhob sib txuas.
Kauj Ruam 5: Demoing the Complete Device
Thov ua siab zoo los tshawb xyuas cov vis dis aus kom pom lub cuab yeej ua haujlwm siv qhov txuas txuas lossis qhov txuas YouTube no: https://www.youtube.com/embed/Ab1wKr2ORbM. Zuag qhia tag nrho, qhov no yog qee yam uas kuv siv tsis tu ncua tam sim no thiab tau pom tias nws tsis tso lub zog hluav taws xob nrawm dhau lossis nyuaj siab kuv lub khoos phis tawj qub hais txog kev ua lub zog. Yog tias koj muaj teeb meem, xav tias tsim qhov teeb meem tshaj tawm ntawm qhov cuam tshuam GitHub repo rau txoj haujlwm no!
Pom zoo:
IOT Kev Ruaj Ntseg Tsev Ruaj Ntseg: 3 Kauj Ruam
IOT Kev Ruaj Ntseg Hauv Tsev: Ib qho ntawm cov ntawv thov IoT uas muaj txiaj ntsig tshaj plaws yog kev nyab xeeb hauv tsev. Xav txog ib tus tub sab txiav koj lub koob yees duab kev ruaj ntseg xaim thaum sim tsoo rau hauv koj lub tsev, qhov no yuav tsis tshwm sim yog tias koj lub kaw lus kev nyab xeeb mus wireless thiab ntse
DIY Cheep/Cov Dej Ruaj Ruaj Ruaj Ruaj Ruaj Ruaj Ruaj Ruaj Zoo rau Tsiaj: 7 Kauj Ruam
DIY Cheep/Cov Dej Rhaub Dej Zoo rau Cov Tsiaj Tsiaj: Yog li koj tab tom khaws aub/luav/miv/… sab nraum thiab lawv cov dej ua kom khov thaum lub caij ntuj no. Tam sim no ib txwm koj yuav coj lawv mus sab hauv lossis yuav cov tais diav ua kom sov, tab sis cov tsiaj no tej zaum muaj ntxhiab tsw, koj tsis muaj chav nyob, thiab koj tsis tuaj yeem them $ 4
Nab hab sej Kev Ruaj Ntseg Kev Ruaj Ntseg/Kev Txiav Txim Siab Software: 3 Kauj Ruam
Python Kev Nyab Xeeb Kev Nyab Xeeb/Kev Nyab Xeeb Kev Nyab Xeeb Software: Hauv Cov Lus Qhia Kuv yuav qhia koj li cas nrog qee qhov Python yooj yim, koj tuaj yeem khaws koj cov ntaub ntawv ruaj ntseg siv kev lag luam tus qauv AES.Requirements:- Python 3.7- PyAesCrypt library- hashlib libraryIf koj tsis muaj cov tsev qiv ntawv no, koj tuaj yeem teeb tsa tau yooj yim los ntawm
Tsho Ruaj Ntseg Ruaj Ntseg: Kev Ruaj Ntseg Ris Tsho LED Tsho: 11 Cov Kauj Ruam (nrog Duab)
Ris tsho Ruaj Ntseg Ruaj Ntseg: Kev Ruaj Ntseg Zoo LED Jacket: Txhim kho lub teeb yuag thiab siv tau cov khoom siv hluav taws xob tau qhib qhov muaj peev xwm tshiab rau kev siv thev naus laus zis mus rau hauv lub tebchaws thiab siv nws los ua kom muaj kev nyab xeeb ntawm cov neeg tshawb nrhiav. Txog rau qhov haujlwm no, Kuv kos kuv tus kheej kev paub nrog kev tawm sab nraud
$ 10 Tej thaj chaw deb Ruaj Ntseg Hauv Tsev Ruaj Ntseg: 7 Kauj Ruam
$ 10 Kev Ruaj Ntseg Hauv Tsev Ruaj Ntseg Ruaj Ntseg: Hloov qhov webcam pheej yig pheej yig mus rau hauv qhov system ruaj ntseg hauv tsev uas pom tau nyob txhua qhov chaw hauv ntiaj teb los ntawm koj lub xov tooj ntawm tes! Kuv vam tias koj nyiam qhov no thiab yog tias koj xav tau qhov kev xav zoo dua ntawm txoj haujlwm koj tuaj yeem saib kuv cov vis dis aus