Cov txheej txheem:

RYB080l Bluetooth Tutorial rau Wearable Device: 8 Kauj Ruam
RYB080l Bluetooth Tutorial rau Wearable Device: 8 Kauj Ruam

Video: RYB080l Bluetooth Tutorial rau Wearable Device: 8 Kauj Ruam

Video: RYB080l Bluetooth Tutorial rau Wearable Device: 8 Kauj Ruam
Video: Учебное пособие по модулю Bluetooth RYB080l | Модуль Bluetooth размером с кончик пальца для носимых устройств | ЭСП8266 2024, Lub Xya hli ntuj
Anonim
Image
Image

Hav, ua li cas, Cov Menyuam! Akarsh nov los ntawm CETech.

Qhov haujlwm no ntawm kuv yog qhov kev kawm nkhaus kom nkag siab txog kev ua haujlwm ntawm Bluetooth me me los ntawm Reyax.

Ua ntej, peb yuav nkag siab qhov qauv ib leeg thiab sim siv nws ncaj qha, tom qab ntawd peb yuav txuas nws mus rau ESP8266 thiab ua qhov project yooj yim tswj LED.

Thaum kawg ntawm qhov kev qhia, peb yuav tuaj yeem siv RYB080l module ib leeg thiab nrog micro zoo li esp8266.

Cia peb pib nrog kev lom zem tam sim no

Kauj Ruam 1: Qhov Chaw

Qhov
Qhov
Qhov
Qhov

Bluetooth modules kuv tau siv yog los ntawm Reyax.

Ua ntej tshaj qhov tseem ceeb Bluetooth module yog RYB080l NTAWM NO.

Peb siv qhov kev tawm tsam ntawm Bluetooth module uas hu ua lite version uas koj tuaj yeem pom ntawm no.

Thaum kawg, peb siv ESP8266 tus qauv los ntawm DFRobot uas koj tuaj yeem yuav los ntawm NO.

Kauj Ruam 2: Tau PCBs rau Koj Txoj Haujlwm Tsim

Tau PCBs rau Koj Txoj Haujlwm Tsim
Tau PCBs rau Koj Txoj Haujlwm Tsim

Koj yuav tsum txheeb xyuas PCBGOGO rau xaj PCBs online kom pheej yig!

Koj tau txais 10 qhov zoo PCBs tsim thiab xa mus rau koj lub qhov rooj rau 5 $ thiab qee qhov xa khoom. Koj tseem yuav tau txais luv nqi ntawm kev xa khoom ntawm koj thawj daim ntawv xaj.

PCBGOGO muaj peev xwm ntawm PCB los ua ke thiab tsim khoom stencil nrog rau ua kom tau cov qauv zoo.

Txheeb xyuas lawv yog tias koj xav tau PCBs tsim lossis sib sau ua ke.

Kauj Ruam 3: Saib Tus Qauv thiab Nws Cov Ntaub Ntawv

Ua tibzoo saib ntawm Module thiab Nws Cov Ntaub Ntawv
Ua tibzoo saib ntawm Module thiab Nws Cov Ntaub Ntawv

Cov yam ntxwv ntawm tus qauv:

• Bluetooth v4.2 & v5.0 nrog Bluetooth Tsawg Zog

• TI CC2640R2F ARM® Cortex®-M3 kev lag luam-tus qauv nti

• Muaj peev xwm txuas ob lub cuab yeej Bluetooth tib lub sijhawm

• Txhawb nqa tus tswv tsev lub luag haujlwm.

• Tsim los nrog PCB sib txuas xov tooj cua, Haum rau SMD. Loj: 115.94mm^2

• Hlau npog tiv thaiv EMI cuam tshuam

• Kev xa tawm, Txais, Tsaug los ntawm tsuas yog 2 UART pins

• Tswj tau yooj yim los ntawm AT cov lus txib

Peb pom cov ntsiab lus hauv qab no hauv daim duab.

Kauj ruam 4: AT Commands

Peb pom cov lus txib AT hauv qab no:

1. AT mus kuaj yog tias tus qauv teb

2. Software RESET

3. AT+NAME los teeb lub npe tshaj tawm

4. AT+ATTR los teeb lub npe ntaus ntawv

5. AT+CRFOP txhawm rau teeb tsa RF tshaj tawm hauv xov hluav taws xob

6. AT+CNE los teeb tsa BLE tuaj yeem txuas nrog lossis tsis tau

7. AT+PERIOD Teeb tsa lub sijhawm BLE tshaj tawm

8. AT+PWMODE los teeb lub zog txuag hom

9. AT+CFUN los teeb tsa BLE tshaj tawm (Tshaj Tawm) ON/OFF

10. AT+IPR los teeb tsa UART baud tus nqi

Thiab qee qhov ntxiv ib yam, tshawb xyuas cov vis dis aus thiab cov ntawv teev cov ncauj lus kom ntxaws ntawm tib yam.

Kauj Ruam 5: Siv Module Standalone

Siv Module Standalone
Siv Module Standalone
Siv Module Standalone
Siv Module Standalone
Siv Module Standalone
Siv Module Standalone
Siv Module Standalone
Siv Module Standalone

Peb yuav tsum txuas Reyax module rau FTDI pawg thawj coj, kev sib txuas:

FTDI - RYB080l

Rx - Txi

Txx - Rx

Vcc - Vcc

Gnd - Yog

Nruab lub app raws li tau hais hauv GitHub chaw cia khoom ntawm koj lub xov tooj los tham nrog tus qauv.

Thaum txhua qhov kev sib txuas tau teeb tsa koj tuaj yeem tham ntawm koj lub khoos phis tawj thiab koj lub xov tooj/ntsiav tshuaj nrog lub app teeb tsa dhau Bluetooth, raws li peb pom hauv daim duab txuas.

Kauj Ruam 6: Teeb ESP8266

Teeb tsa ESP8266
Teeb tsa ESP8266
Teeb tsa ESP8266
Teeb tsa ESP8266

Txuas ESP8266 mus rau Bluetooth module raws li daim duab saum toj no.

Thaum txuas nrog siv cov cai los ntawm GitHub thiab xa nws mus rau ESP8266. Github:

Kauj Ruam 7: Xeem Nws

Kuaj Nws Tawm
Kuaj Nws Tawm

Txuas rau bluetooth module siv koj lub smartphone.

Thaum txuas nrog, xa lo lus "LED" lossis "coj" los hloov lub LED.

Voila! yog qhov yooj yim nws yog.

Kauj Ruam 8: Tawm Cov Khoom Txee

Tawm ntawm Cov Khoom Txee
Tawm ntawm Cov Khoom Txee

Koj kuj tseem tuaj yeem pom cov khoom siv tswj tau npaj ua uas tau siv cov qauv no los ntawm Reyax uas koj tuaj yeem yuav ncaj qha rau kev tso koj tus lej rau nws.

Pom zoo: