Cov txheej txheem:

Lub xub ntiag Sensor: 12 Cov kauj ruam
Lub xub ntiag Sensor: 12 Cov kauj ruam

Video: Lub xub ntiag Sensor: 12 Cov kauj ruam

Video: Lub xub ntiag Sensor: 12 Cov kauj ruam
Video: Tus Neeg Ruam - R-Lin Thoj | New Song [ Official MV ] Nkauj Tawm Tshiab 2023 Hmong Song 2023 2024, Kaum ib hlis
Anonim
Lub xub ntiag Sensor
Lub xub ntiag Sensor

Wearables feem ntau yog BLE qhib cov cuab yeej. Nws yog ib txwm rau lawv tshaj tawm qee cov ntaub ntawv raws nws qhov chaw nyob MAC. Peb siv ESP los tshuaj xyuas cov ntaub ntawv no thiab ua rau muaj xwm txheej tshwm sim hauv internet thaum nws pom qhov tshwj xeeb MAC chaw nyob. Qhov kev siv tshwj xeeb no yog rau ib tus neeg siv ntawm lub ntse ntsaws txuas nrog lub teeb. Tab sis nws kuj tseem tuaj yeem siv nrog teeb tsa cov cuab yeej sau npe nrog txhua yam ntawm IOT qhib cov cuab yeej.

Khoom siv

  1. ESP32
  2. (xaiv tau) TECKIN WiFi Phab Ntsa Plug S10
  3. BLE qhib lub cuab yeej ntawm txhua yam

Kauj Ruam 1: Txheeb Koj Qhov Scenario

Txhais Koj Scenario
Txhais Koj Scenario

Rau qhov ntsuas, koj tuaj yeem siv feem ntau ntawm cov niaj hnub hnav. Qhov no tuaj yeem yog Apple Watch, pab pawg haum mi, xov tooj lossis txawm tias koj tus kheej DIY hnav raws li ESP32.

Tej zaum yog ib qib tseem ceeb tshaj plaws. Koj yuav tsum xav ua ntej hauv 3 yam:

1. Cov hnav lossis cov cuab yeej twg yog qhov ua rau lub sensor sib thooj.

2. Dab tsi yuav ua rau lub ntsuas ntsuas (qhov no ua tiav los ntawm IFTTT).

3. Thaum lub sensor yuav pib

Txog qhov ua piv txwv no, Kuv yuav siv kuv lub Apple Watch los ua lub ntse ntsaws kom tig lub teeb thaum kuv zaum ntawm kuv lub rooj.

Hauv qhov kev qhia no peb yuav saib lub ntsaws ntsaws los ntawm TECKIN. Koj tuaj yeem pom nws ntawm amazon ntawm tus nqi zoo. Nws kuj tseem sib xws nrog Alexa thiab google Tsev. Tus nqi zoo!

Kauj ruam 2: (Intro) Teeb tsa - Ntau tus neeg siv

Yog tias koj xav teeb tsa kom nws ua haujlwm rau ib tus neeg twg nrog BLE qhib lub cuab yeej kaw kom txaus rau koj lub ntsuas, tom qab ntawd hla cov kauj ruam tom ntej. Qhov no zoo nkauj heev, yog qhov teeb tsa kuv tus kheej siv. Nco ntsoov qhov ntsuas no tuaj yeem yooj yim raug nyiag lossis siv los ua kom yog li kuv yuav tsis ntseeg ntau los ntawm kev ruaj ntseg sawv pint; tsuas yog rau qhov ua tau zoo (piv txwv li, Kuv tsis xav kom nws tshwm sim los ntawm kuv lub PC txij li nws yuav ib txwm nyob ib sab ntawm lub ntsuas).

Kauj Ruam 3: (Intro) Teeb tsa - Cov neeg siv txwv

Cov kauj ruam no sib txawv heev ntawm koj teeb. Txhawm rau txwv cov cuab yeej twg tuaj yeem ua rau lub sensor koj muaj ntau txoj hauv kev txwv:

- BLE MAC chaw nyob (sib npaug rau IP chaw nyob ntawm wifi network. Yog vim li cas nws tsis tau lees tias muaj kev nyab xeeb txij li tsis yog MAC chaw nyob tiag ntawm tus qauv. Ntawm iOS cov cuab yeej nws hloov pauv txhua lub sijhawm koj rov qhib lub bluetooth, tsis yog kev lom zem)

- Cov Cai Tsim Khoom (xaiv zoo dua, tab sis tsis muaj txoj hauv kev txwv cov cuab yeej tshwj xeeb los ntawm tib lub chaw tsim khoom/qauv)

- Lub Npe, Kev Pabcuam UIDD (tsis tshua muaj tab sis qhov kev xaiv zoo tshaj, feem ntau yog DIY wearables lossis tej zaum ib qho hauv app)

Qee Cov Lus Cim:

1. Yog tias nws yog iOS ntaus ntawv:

- Koj muaj qee qhov zoo thiab qhov tsis zoo. Pro, lawv xa qib zog uas nws yog cov ntaub ntawv tshaj tawm. Qhov ntawd muaj txiaj ntsig ntawm theem ntsuas, koj yuav pom tias siv Apple Watch yog qhov muaj txiaj ntsig txij li nws tshaj tawm ntawm 24db, iPhones thiab feem ntau cov cuab yeej xa tawm ntawm 12db.

CON, koj yuav tsum nrhiav kev daws teeb meem. Kev tshaj tawm MAC chaw nyob (txoj hauv kev tseem ceeb ntawm kev txheeb xyuas) hloov pauv txhua lub sijhawm bluetooth teeb liab rov pib dua, txhais tau tias koj yuav tau xa cov cai txhua lub sijhawm… tsis lom zem. Koj tuaj yeem siv cov ntaub ntawv tsim khoom uas tuaj yeem sib txawv ntawm cov qauv. Qhov no txhais tau tias koj tuaj yeem txwv kom nws nkag siab "txhua lub iPhone 8".

2. Yog tias nws yog Android ntaus ntawv:

- Kuv tus kheej tsis muaj lub cuab yeej hauv. Tab sis tej zaum muaj ntau daim ntawv thov uas tuaj yeem txhim kho MAC chaw nyob lossis txawm tias ntxiv lub npe tus kheej (yog tias yog txoj hauv kev koj xav mus). Hauv iOS cov cuab yeej muaj ib qho app "nrf txuas" uas tuaj yeem ua qhov no. Tab sis tsis txuas ntxiv, lub ntsiab lus yog tias koj xauv lub vijtsam lossis hloov cov apps.. kev teeb tsa tawm hauv ob peb feeb.

3. Lwm ESP32. (koj thawj koom ruam zoo tshaj)

- Cov lej yooj yim zoo li no tuaj yeem ua tiav hauv cov cuab yeej zoo li no; esp32 powered smart band. Txoj cai yog qhov piv txwv los ntawm ESP BLE lub tsev qiv ntawv BLE_IBeacon.ino. Kuv tsis tau sim nws ntau vim tias kuv cov qhab ntse tab tom thauj khoom, tej zaum yuav tshaj tawm tshiab sai sai no.

Kauj Ruam 4: (Teeb) - IFTTT

(Teeb) - IFTTT
(Teeb) - IFTTT

Ok, yog li ntawm theem no koj yuav tsum tau ua txhua qhov kev xav tau ntawm koj txoj haujlwm. Koj muaj koj lub cuab yeej ua haujlwm, koj muaj qhov chaw tso ESP nrog kev sib txuas wireless rau hauv internet thiab koj muaj kev nqis tes ua hauv siab tias IFTTT tuaj yeem siv tau.

IFTTT yog qhov muaj zog; seb nws tsuas yog xa qhov ceeb toom yooj yim rau koj lub cuab yeej, koj xav kom tweet xa lossis qhib lub teeb nrig nrog lub ntse ntsaws. Hauv qhov kev qhia no peb yuav siv qhov kawg nrog TECKIN ntse ntsaws sib xws nrog IFTTT. Ua li cas los xij, rub tawm IFTTT app lossis mus rau lub vev xaib IFTTT.com thiab tsim tus account.

Qhov ntawd yog rau tam sim no!

Yog tias koj tsuas xav xa daim ntawv ceeb toom lossis lwm yam tshaj li Smart Life plug koj tuaj yeem hla cov kauj ruam tom ntej.

Kauj Ruam 5: (Teeb) IOT Device *yeem *

Rub tawm "Smart Life" app los ntawm PlayStore (Android) lossis AppStore (iOS). Cov lus qhia zoo nkauj ncaj nraim rau pem hauv ntej, txawm hais tias cov txheej txheem me ntsis lo qhia. Kuv pom tawm ntawm theem ntawm kev tshuaj xyuas (thaum khawm xiav tau ntsais muag) nws nres ntawm qee kis, tom qab ntawd kuv tau nias nws tus kheej kom qhib thiab tua ob peb zaug. Qhov ntawd pab kuv. Xijpeem; teeb tsa ntawm qhov ntsaws no tsis muaj dab tsi txawv nrog peb daim ntawv thov yog tias koj twb muaj ib tus thiab muaj nws txuas nrog koj li app koj yuav tsum tau npaj mus.

NCO TSEG: Koj yuav tsum muaj peev xwm tig lub pob qhib thiab tawm ntawm lub app ua ntej koj txav mus los ntawm cov kauj ruam no. Qhov ntawd yuav txhais tau tias koj tau teeb tsa kom raug lub ntsaws ntse.

IFTTT app yuav tsum sib koom ua ke nrog "Ntse Lub Neej" app tsis ua haujlwm, tej zaum ua rau muaj kev lees paub tseeb thaum tsim qhov xwm txheej ntawm cov kauj ruam tom ntej.

Kauj Ruam 6: (Teeb) IFTTT Webhook Api *Cov neeg siv paub dhau los *

(Teeb) IFTTT Webhook Api *Cov neeg siv paub dhau los *
(Teeb) IFTTT Webhook Api *Cov neeg siv paub dhau los *

Yog tias koj tsis tau siv ua ntej IFTTT app thiab tsis yooj yim nrog qee cov ntsiab lus hais txog hla cov kauj ruam no rau Cov Lus Qhia Kom Paub (nrog duab) ntawm kauj ruam tom ntej.

1. Tsim kom muaj kev tshwm sim tshiab.

2. Teeb "qhov no" los ua webhook api. Sau lub npe koj teev rau qhov kev tshwm sim.

3. Teeb "qhov" ntawd rau koj tus cwj pwm xav tau. Rau cov ntse ntsaws tshawb nrhiav lub neej ntse thiab xaiv 'tig rau'.

4. Xaiv koj lub ntse ntsaws thiab nias qhov ua tiav.

5. Ntawm lub vijtsam hauv tsev saib rau 'webhooks' daim npav. Tom qab koj nias nws, nyem "tau ntau dua" hauv qab.

6. Nias cov ntaub ntawv. Qhov no yuav qhia koj tus yuam sij api nrog rau tus tsim URL & ntsuas.

7. Siv de URL tus tsim nrog lub npe koj sau ntawm #2. Luam qhov ntawd thiab sau tseg.

8. Rov ua dua yog tias koj xav kom coj tus cwj pwm thaum lub ntsuas lub ntsej muag tsis ua haujlwm ntxiv lawm. Hauv peb rooj plaub rov ua dua #3 tab sis xaiv 'tua'. Tsis tas li, ntawm #2 lub npe yuav tsum sib txawv lub sijhawm no ib puag ncig.

Yog tias koj ua tiav hla cov kauj ruam tom ntej.

Kauj Ruam 7: (Teeb) IFTTT Webhook Api *Rau Cov Pib Nrog Cov Duab *

(Teeb) IFTTT Webhook Api *Rau Cov Pib Nrog Cov Duab *
(Teeb) IFTTT Webhook Api *Rau Cov Pib Nrog Cov Duab *
(Teeb) IFTTT Webhook Api *Rau Cov Pib Nrog Cov Duab *
(Teeb) IFTTT Webhook Api *Rau Cov Pib Nrog Cov Duab *
(Teeb) IFTTT Webhook Api *Rau Cov Pib Nrog Cov Duab *
(Teeb) IFTTT Webhook Api *Rau Cov Pib Nrog Cov Duab *

Cov ncauj lus kom ntxaws *phau ntawv qhia yuav tsum zoo ib yam nrog Android thiab hauv web *

IFTTT yog txoj haujlwm yooj yim, yog tias "qhov no tshwm sim" ces "uas tshwm sim". Koj yuav tsum tsim qhov tshiab, 1. ntawm app nyem "tau ntau dua" thiab cov npe yuav qhia.

2. Txoj cai hauv qab ntawm kab ntawv tshawb fawb hais tias "ua rau koj tus kheej applets los ntawm kos", nias lub cim Ntxiv.

3. Nias "qhov no" ntxiv rau kos npe

Hauv peb qhov xwm txheej "qhov no" yuav yog api hu los ntawm is taws nem. Kev hu xov tooj api yog kev sab laj rau URL, zoo li thaum koj ntaus google tshawb thiab qhov url yog google.com/ (ib txoj kab ntev ntawm cov cim). Txhawm rau tsim api: (tom qab nias "qhov no")

4. Tshawb nrhiav "webhooks"

5. Xaiv qhov kev xaiv nkaus xwb

6. Npe koj qhov kev tshwm sim (hauv qhov piv txwv no peb yuav siv "Zaum"). Sau lub npe no, tseem ceeb heev.

7. Nias Create Trigger

Ok! peb nyob ze dua, Tam sim no mus rau ntu "ntawd". Txog qhov kev qhia no peb yuav teeb "ntawd" kom qhib lub Ntse ntsaws. Tab sis koj tuaj yeem xaiv ib yam dab tsi los ntawm IFTTT. Ib txoj hauv kev zoo ntawm kev sim teeb tsa yog xaiv "ntawv ceeb toom" uas yuav xa ntawv ceeb toom rau koj lub xov tooj txhua lub sijhawm ntsuas lub ntsuas (lossis api hu ua, txawm tias los ntawm lub vev xaib: muaj txiaj ntsig rau kev sim!)

8. Nias "ntawd" ntxiv rau kos npe

9. Tshawb nrhiav "Lub Neej Ntse" (lossis "kev ceeb toom")

10. Nias 'tig rau' (koj yuav tsum rov ua cov kauj ruam no los tsim lwm qhov xwm txheej kom tua rau thaum koj tawm mus)

11. Yog tias koj muaj ob lub apps thiab ntsaws teeb tsa kom raug, koj yuav tsum pom koj lub ntsaws ntawm qhov nco cia 'cov cuab yeej/pab pawg twg.

12. Xaiv Create Action thiab tom qab ntawd ua tiav.

Tam sim no koj yuav tsum pom qhov xwm txheej txuas nrog. Tam sim no peb yuav tsum tau txais api URL. Rau qhov no:

13. Mus rau IFTTT Homescreen

14. Nrhiav daim npav Webhooks

15. Xaiv "Tau Txais Ntxiv"

16. Coj mus rhaub ntawm cov ntaub ntawv khawm. Koj yuav tsum pom lub vev xaib nrog koj tus yuam sij.

17. Ntawm qhov chaw "{kev tshwm sim}" sau lub npe ntawm koj qhov kev tshwm sim (nco Ntu 6)

18. Mus rau hauv qab ntawm nplooj ntawv thiab coj mus rhaub "Xeem nws"

Dab tsi koj yuav tsum pom yog lub chij ntsuab "kev tshwm sim tau tshwm sim" thiab koj yuav tsum pom tias nws ua haujlwm lossis tsis yog. Hauv peb qhov teeb meem yuav tsum qhib. Lossis koj yuav tsum pom daim ntawv ceeb toom yog tias koj txiav txim siab mus rau txoj kev ntawd. Nws yuav siv sijhawm me ntsis, tab sis tsis pub ntev tshaj ib feeb los saib seb koj puas tau ua nws. Nco ntsoov nws yog rooj plaub rhiab.

19. Thaum kawg. Luam qhov url qhov twg koj hloov lub npe ntawm koj qhov kev tshwm sim (ntawm 17) thiab txuag nws qhov chaw nyab xeeb. Koj yuav xav tau qhov no sai sai.

20. Rov ua dua 1-12. Thaum 6 peb yuav siv "Sawv" lub sijhawm no nyob ib puag ncig. Ntawm 10 xaiv 'tua tawm' xwb.

21. Rov ua dua 13-18 yog tias koj xav tau, tab sis koj tuaj yeem tawm ntawm qhov url koj tau theej ntawm 19, tab sis tam sim no hloov qhov chaw uas koj sau "Zaum" thiab hloov nrog "Sawv". Koj tuaj yeem sim qhov no ntawm lub web browser. Nws yuav tsum hais tias 'Zoo siab! Koj tau raug rho tawm qhov Stand event '. Tom qab ntawd lub ntsaws yuav tsum tau muab tua.

Kauj Ruam 8: (Txoj Cai) Ua Haujlwm ESP32

(Txoj Cai) Ua Haujlwm ESP32
(Txoj Cai) Ua Haujlwm ESP32

Koj tuaj yeem hla cov kauj ruam no yog tias koj xis nyob xa cov duab kos los ntawm Arduino IDE rau koj li ESP32 Board. Tsuas yog nco ntsoov teeb tsa qhov faib ntawm 2mb rau lub app tsawg kawg txij li cov duab kos hnyav me ntsis ntau dua 1.2mb ib txwm txwv.

Muaj ntau qhov kev qhia zoo nyob rau ntawd, ntawm no yog qee qhov uas kuv pom zoo:

circuitdigest.com/microcontroller-projects…

Tab sis tseem, yog li koj tsis poob zoo li ntawd kuv yuav ua ob peb lub ntsiab lus tseem ceeb.

- ESP32 tsis yog pawg thawj coj saib Arduino tseem nws tseem tuaj yeem tsim los ntawm Arduino IDE. Nrog cov lej yooj yim Arduino. Tab sis, koj tseem yuav tsum teeb tsa IDE kom ua haujlwm nrog ESP32.

- Koj yuav tsum tau teeb tsa qee lub tsev qiv ntawv los ntawm 'Tus thawj tswj hwm ntxiv' ntawm qhov nyiam. Nov yog qhov URL koj yuav tsum muab tshuaj txhuam:

-(xaiv tau, tuaj yeem pab tau) Ntawm Cov Cuab Yeej-> Tswj Cov Tsev Qiv Ntawv … -> (nrhiav cov tsev qiv ntawv tshwj xeeb BLE)

- ntawm Cov Cuab Yeej, koj yuav tsum tam sim no muaj cov npe ntev ntawm ESP cov cuab yeej, Kuv pom zoo ESP32 dev module

- (Tseem ceeb) Xaiv (tsis muaj Ota 2mb app/2mb spifs) ntawm tus thawj coj faib. Cov kauj ruam no yog qhov tseem ceeb vim tias lub app ua hnyav heev raws li cov khoom lag luam ntawm kev siv ob qho wifi/http txuas nrog rau BLE scanner.

Yog tias koj ua txhua yam kom raug koj yuav tsum muaj peev xwm ua haujlwm rau ESP32. Tam sim no cov txheej txheem ua yog zoo ib yam li arduino hauv qee cov laug cam. Txuas nws, xaiv pawg sib dhos, USB chaw nres nkoj thiab koj ua tiav. Tab sis, hauv ntau qhov xwm txheej koj yuav tsum tau ua mus ntxiv

Kauj Ruam 9: (Txoj Cai) Xa Cov Cai rau ESP32

(Txoj Cai) Tshaj Tawm Txoj Cai rau ESP32
(Txoj Cai) Tshaj Tawm Txoj Cai rau ESP32

Ok, yog tias koj nyob ntawm no, qhov ntawd txhais tau tias koj tau ua tiav daim duab kos rau ESP32 pawg thawj coj, nyiam dua qhov blink.ino kos duab.

Tam sim no, ntawm no yog cov cai tseem ceeb txuas, koj tseem tuaj yeem pom nws ntawm GitHub repo. Koj yuav tsum hloov cov hauv qab no:

SSID - Koj lub npe wifi

PSK - Koj tus password wifi

zaum - Qhov URL nrog "Zaum" los ntawm IFTTT api koj tau sau ua ntej

sawv ntsug - URL nrog "Sawv" Los ntawm IFTTT api koj tau sau ua ntej

Tam sim no tau txais koj lub cuab yeej ua kom ze rau ntawm lub rooj tsavxwm thiab tom qab ntawd xa cov cai. Tom qab ntawd qhib Serial Monitor (baud 115200) tom qab ua tiav thauj cov cai.

Yog tias koj npaj yuav siv qhov no nrog txhua yam ntawm BLE cov cuab yeej siv tau hla cov kauj ruam tom ntej.

NCO TSEG: yog tias koj tau txais cov lus yuam kev yuam kev nws vim hais tias lub chaw teeb tsa tsuas yog tso 1mB ntawm lub cim xeeb (tawm ntawm 4mB tam sim no) rau ESP cov cai nyoos. Nws tawm ib feem rau ob peb yam uas yog qhov kev xaiv rau kev tshaj tawm huab cua. Feem ntau kuv ua cov hauv qab no:

- ntawm Cov Cuab Yeej, tam sim no koj yuav tsum muaj daim ntawv teev npe ntev ntawm ESP cov cuab yeej, Kuv pom zoo ESP32 dev module-Xaiv 'tsis muaj Ota 2mb app/2mb spifs' ntawm tus thawj coj faib.

Qhov no ua rau kuv nco ob qhov chaw, xav tau rau daim ntawv thov no.

Kauj Ruam 10: (Txoj Cai) Tshaj Tawm Txoj Cai rau ESP32 *xaiv tau *

(Txoj Cai) Tshaj Tawm Txoj Cai rau ESP32 *xaiv tau *
(Txoj Cai) Tshaj Tawm Txoj Cai rau ESP32 *xaiv tau *

Nov yog qhov tsis yooj yim uas tau hais los ntawm "Teeb tus txhais" Kauj Ruam. Tus saib xyuas yuav tso tawm MAC chaw nyob (yuav tsum zoo li ##: ##: ##: ##: ## qhov twg#yog tus lej lossis tsab ntawv los ntawm a mus f), Cov Chaw Tsim Khoom Code thiab RSSI (tus lej tsis zoo)). Ntawm no koj yuav tsum ua si ib puag ncig me ntsis kom pom qhov twg yog koj lub cuab yeej. Kuv feem ntau muab nws tso rau ntawm lub rooj tsav xwm kom kuv tuaj yeem pom meej uas yog tus lej tsawg tshaj plaws. Kuv uncheck lub thawv 'autoscroll' yog li kuv tuaj yeem luam qhov tseem ceeb.

  • Yog tias nws yog Mac Chaw nyob sau 'myDevice' nrog nws. Tom qab ntawv tsis pom zoo kab #96 thiab kab lus #95
  • Yog tias nws yog Lub Npe sau 'myDevice' nrog nws. Tom qab ntawv tsis pom zoo kab #97 thiab kab lus #95
  • Yog tias nws yog MaufactureData koj tsis muaj hmoo rau tam sim no, Kuv tseem tab tom txhim kho qhov ntawd.

Txhawm rau ntxiv kev txhawb nqa rau cov cuab yeej koj yuav tsum tuaj yeem luam theej tawm nqe lus ntawm #96 lossis #97 thiab tso lawv ib sab ntawm ib leeg hauv cov kab lus no:

yog ((condition1) || (condition2) || (condition3)) {

Ntxiv ntau qhov sib txawv (myDevice1, myDevice2, myDevice3) raws li.

Kauj Ruam 11: Tso ESP thiab Calibrate

Muab ESP thiab Calibrate
Muab ESP thiab Calibrate

Nov yog qhov tseem ceeb tshaj plaws ntawm kev teeb tsa. Ua tib zoo ua los ntawm cov txheej txheem no yuav muaj qhov sib txawv hauv nws ua haujlwm zoo li khawv koob lossis tsuas yog ua rau koj mob taub hau.

Txog tam sim no tus lej koj tau tshaj tawm ua haujlwm nrog cov ntsuas uas kuv tau ntsuas tus kheej thiab siv txhua hnub nrog kuv lub xov tooj ntawm kuv lub rooj; nws tsis txhais tau tias nws yuav ua haujlwm rau koj ib yam. Yog li koj yuav tsum ua qhov ntsuas tus kheej.

1. Muab ESP32 Pawg Thawj Coj ntawm nws qhov chaw zaum kawg. Yog tias koj tsiv mus rau qee qhov laj thawj ntawm koj li ESP32, koj yuav tsum zaum ua qhov no dua. Qhov no yuav ua kom koj muaj kev paub zoo tag nrho.

1. (ntxiv) nco ntsoov koj yuav tsum muaj peev xwm txuas rau koj lub pc thaum ua qhov no. Yog tias koj ua tsis tau vim tias koj nyob ntawm lub desktop koj yuav tsum tau sim thiab ua yuam kev kom nco ntsoov tias txhua qhov kev sim yuav tsum zoo ib yam nyob hauv qhov chaw, ua rau ntaus ntawv thiab lwm yam uas tuaj yeem suav tau.

2. Qhib Serial Monitor nrog cov cai ua haujlwm.

Txoj cai los ntawm lub hauv paus yuav tshaj tawm los ntawm Serial Monitor RSSI (Tau txais lub teeb liab qhia tau zoo) ntawm txhua qhov pom bluetooth ntaus ntawv (lossis tsuas yog lub cuab yeej (piv rau koj cov kev ntsuas)). Ua si ib puag ncig me ntsis nrog koj lub cuab yeej tseem ceeb ntawm kev nqis tes ua (ua kom ntaus ntawv). Koj yuav tsum txiav txim siab dab tsi yog qhov pib uas koj xav siv. Ua tib zoo kho qhov teeb tsa no yuav

3. Thaum koj txiav txim siab qhov pib pib hloov lawv ntawm no:

  • nyob ze_thrsh
  • far_thrsh

4. Rov xa cov cai, sim thiab rov ua dua kom txog thaum koj pom qhov ua tau zoo.

Ob peb yam los xav txog:

1. Koj xav tau txog 20db qhov sib txawv ntawm qhov pib. Yog tias nyob ze_thrsh tau teeb tsa 50 ces nws xav tau tias far_thrsh yog 70 lossis ntau dua. Yog tias qhov sib txawv luv dhau, tom qab ntawv koj yuav pom qee qhov kev ncua lossis qhov chaw uas pawg thawj coj tau ua rau thiab tawm tsis nres. Kev nce qhov sib txawv no yuav ua rau koj zam qhov kev coj ua tsis xav tau no. Kuv pom tus kheej tias 20db ntawm cov paj tau zoo txaus.

2. Ntawm kev ntsuas ntsuas qhov xwm txheej ntawm lub neej tiag tiag ntau li ntau tau, qhov no yuav pab txiav txim siab qhov ua tau zoo tshaj plaws.

3. Kawm chav kawm ntawm kab 82 ntawm txoj cai; nov yog qhov uas txhua qhov kev xav ua tiav. Txoj cai tau hais tawm zoo txawm hais tias. Ua siab dawb nug ntawm GitHub!

Kauj ruam 12: Ua tsaug! Koj Ua Tiav lawm

Qhia rau kuv paub hauv cov lus ntawm cov lus pom lossis yog tias koj tab tom ntsib teeb meem. Nco ntsoov xyuas GitHub yog tias koj qhov teeb meem twb tau daws lawm!

Pom zoo: