Cov txheej txheem:

Hloov Baud Tus Nqi ntawm HC-05 (Bluetooth): 3 Cov Kauj Ruam
Hloov Baud Tus Nqi ntawm HC-05 (Bluetooth): 3 Cov Kauj Ruam

Video: Hloov Baud Tus Nqi ntawm HC-05 (Bluetooth): 3 Cov Kauj Ruam

Video: Hloov Baud Tus Nqi ntawm HC-05 (Bluetooth): 3 Cov Kauj Ruam
Video: Начало → Изучайте английский → Освойте ВСЕ ОСНОВЫ АНГЛИЙСКОГО ЯЗЫКА, которые вам НУЖНО знать! 2024, Hlis ntuj nqeg
Anonim
Hloov Baud Tus Nqi ntawm HC-05 (Bluetooth)
Hloov Baud Tus Nqi ntawm HC-05 (Bluetooth)
Hloov Baud Tus Nqi ntawm HC-05 (Bluetooth)
Hloov Baud Tus Nqi ntawm HC-05 (Bluetooth)

Tsis ntev los no kuv yuav HC-05 tus qauv tshiab, tab sis thaum kuv txuas mus rau arduino thiab kuv tau txais cov ntaub ntawv pov tseg hauv computer thiab xov tooj. Tom qab ntawd kuv pom tias nws ua haujlwm tau zoo ntawm 38400 baud tus nqi, yog li nws muaj 38400 los ntawm lub neej ntawd. Hauv cov qauv dhau los baud tus nqi yog 9600.so kuv tau txais kev daws teeb meem los hloov tus nqi baud.

Kauj ruam 1: HARDWARE CONNECTION

HARDWARE CONNECTION
HARDWARE CONNECTION
HARDWARE CONNECTION
HARDWARE CONNECTION

Kuv tsis muaj tus lej pin yog li kuv rub daim ntawv cov ntaub ntawv. Qhov tseem ceeb yog 34 tus pin.i muab 3.3v muab rau nws.

Tom qab ntawd txuas rau arduino raws li qhia hauv daim duab.

qib kev xav ntawm Arduino yog 5v tab sis qib kev xav ntawm bluetooth module yog 3.3 v Yog li koj tuaj yeem txuas rau nws ntawm kev tiv thaiv thiab tsim hluav taws xob sib txawv.

Kauj ruam 2: SOFTWARE SETUP

Qhib arduino thiab tom qab ntawd koj tau txais nplooj ntawv tshiab uas tsuas yog teeb tsa qhov khoob thiab khoob khoob. Upload nws mus raws li nws yog.

Tom qab ntawd qhib lub ntsuas saib thiab teeb tsa baud tus nqi rau 38400 tsis yog 9600.

Kuj tseem hloov ob qho Tsis muaj kab xaus rau Ob NL thiab CR

Kauj Ruam 3: AT COMMANDS

Tom qab ntawd xa AT ntu thiab nws yuav muab cov lus teb OK

AT+UART? qhia koj tus nqi baud default

AT+UART = 9600 teev tus nqi baud rau 9600.

AT+RESET pib dua thiab txuag kev hloov pauv.

NCO TSEG:

Raws li cov ntaub ntawv cov ntaub ntawv thaum koj txuas 3.3v rau tus yuam sij ces LED ntawm Module ntsais muag mus rau 2 ntu thib ob.

Tab sis hauv kuv qhov xwm txheej nws tsis hloov.so thaum koj txuas 3.3v rau qhov tseem ceeb nws nkag mus rau AT hom kev hais kom ua, LED ntsais muag tuaj yeem hloov lossis tsis hloov pauv.

Pom zoo: