Cov txheej txheem:
- Kauj ruam 1: Txuas Dongle
- Kauj Ruam 2: Kev Sib Txuas Lus
- Kauj ruam 3: Khiav Python Script
- Kauj ruam 4: Luam theej duab koj lub cuab yeej
Video: Tig Raspberry Pi rau hauv Bluetooth Beacon: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Bluetooth yog ib lub thev naus laus zis tshiab los hloov cov ntaub ntawv wirelessly, tsim kev siv tshuab hauv tsev, tswj hwm lwm yam khoom siv thiab lwm yam.
Hauv cov lus qhia no, Kuv yuav sim tig Raspberry Pi rau hauv Bluetooth Beacon.
Yuav tsum muaj
- Raspberry Pi
- BleuIO (Bluetooth tsawg zog USB Dongle)
- Lub Xov Tooj Ntawm Tes nrog Bluetooth thiab App xws li BLE Scanner, LightBlue lossis DSPS los ntawm Dialog Semiconductor.
Kauj ruam 1: Txuas Dongle
Txuas BleuIO dongle rau koj li Raspberry Pi.
Txhawm rau txheeb xyuas lub npe khoom twg lub dongle txuas nrog, koj yuav tsum tau khiav:
ls /dev
Koj yuav xav tau ua ob zaug, ib zaug ua ntej koj txuas lub dongle thiab ib zaug tom qab tuaj yeem txheeb xyuas qhov twg yog lub npe ntaus ntawv. Thaum pib ua haujlwm, lub dongle yuav qhib qhov chaw nres nkoj COM rau lub bootloader rau 10 vib nas this kom tso cai rau koj hloov kho lub firmware (lossis nyem koj tus kheej daim ntawv thov).
Tom qab ntawd nws yuav kaw qhov chaw nres nkoj ntawd thiab qhib qhov chaw nres nkoj tshiab rau BleuIO daim ntawv thov uas yog qhov peb xav tau ntawm no. Koj tuaj yeem khiav:
lsusb
Kauj Ruam 2: Kev Sib Txuas Lus
Koj yuav xav tau cov phiaj xwm kev sib txuas lus sib txuas lus nrog dongle. Rau qhov kev qhia no peb yuav siv Minicom. Koj tuaj yeem tau txais Minicom los ntawm kev khiav:
sudo apt-tau nruab minicom
Tam sim no, kom pib siv dongle khiav cov lus txib hauv qab no yog tias, piv txwv li, koj lub dongle txuas nrog lub cuab yeej lub npe ttyACM0:
minicom -b 9600 -o -D /dev /ttyACM0
Tam sim no sim ntaus AT-Command. Piv txwv
AT
Yog tias koj tau txais cov lus teb OK uas txhais tau tias dongle ua haujlwm.
Kauj ruam 3: Khiav Python Script
Peb muaj tsab ntawv nab nab npaj los pab tig Raspberry Pi no rau hauv Bluetooth Beacon.
Txhawm rau siv cov ntawv no koj yuav tsum muaj Python teeb tsa.
koj tseem yuav xav tau teeb tsa tus qauv pySerial. Txoj hauv kev yooj yim tshaj plaws los teeb tsa nws yog los ntawm pip (uas koj yuav tsum muaj tom qab txhim kho Python) los ntawm kev khiav:
Nab hab sej 2:
pip nruab pyserial
Nab hab sej 3:
python3 -m pip nruab pyserial
Tom qab txuas, koj tuaj yeem siv tus piv txwv piv txwv li ntawv nab npawb los teeb tsa koj tus kheej iBeacon.the qhov chaws tuaj yeem pom ntawm GitHub.
Txuag tsab ntawv no rau hauv cov ntawv hu ua ibeacon.py lossis koj tuaj yeem tso npe txhua yam uas koj nyiam.
Tam sim no qhib cov ntawv siv qhov hais kom ua los ntawm kev ntaus ntawv
nab hab sej ibeacon.py
Kauj ruam 4: Luam theej duab koj lub cuab yeej
Thaum koj pib Python tsab ntawv, koj yuav tsum tuaj yeem pom koj li iBeacon siv lub tshuab luam ntawv App tsim rau Bluetooth Tsawg Zog (BLE).
Piv txwv ntawm scanner App tuaj yeem yog BLE Scanner los ntawm Bluepixel Technologies.
Ntawm no koj tuaj yeem pom, koj lub cuab yeej tau pib tshaj tawm.
Koj kuj tseem tuaj yeem siv tsab ntawv Eddystone. Source code muaj nyob ntawm no.
Pom zoo:
Kev Nkag Mus Rau Cov Hauv Paus Cov Hauv Paus Cov Ntaub Ntawv Siv DB410 Raws Li Ethernet Dongle: 6 Cov Kauj Ruam
Kev Nkag Mus Rau Cov Hauv Paus Cov Hauv Paus Cov Ntaub Ntawv Siv DB410 Raws Li Ethernet Dongle: Lub Hom Phiaj: Txhim kho cov cuab yeej cuab tam thiab rov ua dua cov ntsiav kom ntxig USB Ethernet CDC Gadget txhawb nqa; Rov tsim boot.img los ntawm Linaro rau khau raj USB Ethernet CDC; Tsim NFS server los tuav lub hauv paus cov ntaub ntawv system; IP teeb tsa hauv DEVICE thiab HOST
Tig lub DVD Player tawg rau hauv Cov Khoom Siv Txuas rau Koj Lub Tsev Theatre PC: 10 Kauj Ruam
Tig Lub DVD Player tawg rau hauv Cov Khoom Siv Txuas rau Koj Lub Tsev Theatre PC: Txog li $ 30 (Piv txwv tias koj twb muaj DVD-RW tsav thiab chaw nruab nrab tswj chaw taws teeb) koj tuaj yeem tig lub qub DVD player uas tawg mus rau hauv qhov thaiv rau koj qhov tsis zoo/ nyuaj kom mus txog HTPC cov khoom siv ntxiv. Ua tibzoo saib cov kauj ruam 2 rau tus nqi poob qis.Backgrou
Tsom iav Mounted Video Zaub rau Ib Lub Qhov Muag - Tig Koj Tus Kheej Rau Hauv Borg: 12 Cov Kauj Ruam
Tsom iav Mounted Video Zaub rau Ib Lub Qhov Muag-Tig Koj Tus Kheej Rau Hauv Borg: Hloov Kho 15th Lub Peb Hlis 2013: Kuv muaj qhov tshiab dua qhov zoo dua ntawm qhov no tam sim no hauv lwm Cov Lus Qhia: https: //www.instructables.com/id/DIY-Google-Glasses .. Ntseeg nws lossis tsis yog lub hom phiaj tiag tiag ntawm txoj haujlwm no tsis yog ua si ntawm kev ua Borg.I yuav tsum tau ua qee yam
Tig Mac Qub Rau Hauv Tsev Cov Ntaub Ntawv Hauv Tsev!: 3 Cov Kauj Ruam
Tig Mac qub rau hauv Cov Ntaub Ntawv Hauv Tsev!: Yog tias koj mob siab rau Mac siv zoo li kuv, yuav muaj, koj yuav muaj Mac qub zaum ib puag ncig ib puag ncig, khaws cov hmoov av. Tsis txhob muab nws tam sim lossis xa nws tawm kom raug tua, rov siv nws los siv ua cov ntaub ntawv hauv tsev! Nrog kev teeb tsa yooj yim, koj yuav yog
Hack Koj Tus Neeg Sawv Cev V1.00 - Tig Koj Cov Servo Rau Hauv Cov Hwj Huam Tawm Tawm: 7 Cov Kauj Ruam
Hack Koj Tus Neeg Sawv Cev V1.00 - Tig Koj Cov Servo rau hauv Qhov Ua Haujlwm Zoo Tshaj Tawm: Muab koj muaj cov cuab yeej thiab cov servo koj tuaj yeem tsim qhov no rau hauv ob peb daus las. Tus actuator txuas nrog tus nqi kwv yees li 50mm/min. Nws yog qhov qeeb tab sis muaj zog heev. Saib kuv cov vis dis aus tom kawg ntawm kab ntawv uas tus actuator me me