Cov txheej txheem:
- Kauj ruam 1: Cov ntaub ntawv
- Kauj Ruam 2: Daim Kab Xev
- Kauj ruam 3: Upload Code rau Arduino Board
- Kauj Ruam 4: Muab BT Module rau AT MODE
- Kauj ruam 5: Xa AT Commands
Video: AT Cov Lus Hais rau Bluetooth Module (HC-05 W/ EN Pin thiab BUTTON) Siv Arduino Board!: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Los ntawm Jay Amiel AjocGensan PH
Cov lus qhia no yuav pab koj pib siv koj li HC05 bluetooth module. Ua qhov kawg ntawm cov lus qhia no, koj yuav tau kawm txog kev xa AT cov lus txib rau tus qauv txhawm rau teeb tsa/hloov kho nws (npe, tus lej cim, tus lej tus lej thiab lwm yam) siv koj li board.
Kauj ruam 1: Cov ntaub ntawv
1. Arduino UNO
2. HC05 Bluetooth Module
3. Jumper Wires
4. Cov qhob cij
5. Resistors (1k thiab 2k)
Qhov ntawd yog nws!
Kauj Ruam 2: Daim Kab Xev
Ua raws cov txheej txheem no yog tias koj xav pib AT comms nrog koj HC-05 (nrog EN tus pin thiab BUTTON ntawm sab xis-sab xis ntawm BT)
Ua cov kev sib txuas ff!
BT VCC rau Arduino 5V
BT GND rau Arduino GND
BT TX to Arduino D2
BT RX rau Arduino D3 (Siv VOLTAGE DIVIDER rau ntu no! BT Rx tswj tsis tau 5V teeb liab los ntawm arduino!)
Kauj ruam 3: Upload Code rau Arduino Board
NCO TSEG: Ua ntej rub tawm, tshem lub tx thiab rx wirings tawm hauv 5V thiab kev sib txuas hauv av nkaus xwb.
Tom qab qhov "Ua tiav qhov xa tawm", rov txuas BT TX rau ARDUINO D2 thiab BT RX rau ARDUINO D3 (tseem, nrog qhov faib hluav taws xob).
LED ntawm HC-05 yuav tsum ntsais muag sai li ntawm 5 zaug ib pliag.
#suav nrog
SoftwareSerial BTserial (2, 3); // RX | UA TX // Txuas HC-05 TX rau Arduino tus pin 2 RX.
// Txuas HC-05 RX rau Arduino tus pin 3 TX
char c = ``;
void teeb tsa () {
Serial.begin (9600);
Serial.println ("Arduino npaj tau lawm");
Serial.println ("Nco ntsoov xaiv Ob leeg NL & CR hauv cov ntawv saib xyuas");
// HC-05 default serial speed rau AT hom yog 38400
BTserial.begin (38400);
}
void voj () {
// Khaws nyeem los ntawm HC-05 thiab xa mus rau Arduino Serial Monitor
yog tias (BTserial.available ()) {
c = BTserial.read ();
Serial.write (c);
}
// Khaws nyeem los ntawm Arduino Serial Monitor thiab xa mus rau HC-05
yog (Serial.available ()) {
c = Serial.read ();
BTserial.write (c); }
}
Kauj Ruam 4: Muab BT Module rau AT MODE
Nrog Arduino ntawm, ua cov hauv qab no:
Tshem tawm 5V txuas rau BT VCC
Nias thiab tuav lub pob hloov ntawm BT module
Rov txuas BT VCC rau 5V (thaum tseem nias lub pob nyem), LED yuav tsum tuaj.
Tso lub khawm hloov thiab LED yuav tsum ntsais ntsais maj mam qhib/tawm ib zaug txhua ob peb feeb (kwv yees li 2 vib nas this).
Qhov no qhia AT hom.
Kauj ruam 5: Xa AT Commands
Tam sim no koj nyob hauv AT hom, tam sim no koj tuaj yeem pib AT comms.
Nov yog qee qhov piv txwv ntawm AT cov lus txib koj tuaj yeem siv lossis koj tuaj yeem tshawb hauv internet rau lwm AT lus txib.
Kom rov qab HC-05 rau mfg. default settings: "AT+ORGL"
Txhawm rau tau txais koj li HC-05 sau: "AT+VERSION?"
Txhawm rau hloov lub npe ntaus ntawv los ntawm lub neej ntawd HC-05 los hais tias MYBLUE sau: "AT+NAME = MYBLUE"
Txhawm rau hloov pauv txoj cai ruaj ntseg los ntawm 1234 txog 2987 sau: "AT+PSWD = 2987"
Txhawm rau hloov HC-05 baud tus nqi los ntawm lub neej ntawd 9600 rau 115200, 1 nres me ntsis, 0 sib npaug nkag: "AT+UART = 115200, 1, 0"
CEEB TOOM CEEB TOOM: Yog tias koj siv AT cov lus txib nrog "?", Ua qhov no, thaum nias lub pob ntawm BT pawg thawj coj, nyem nkag mus rau hauv lub computer. Qhov ntawd yuav tsum ua.
Pom zoo:
Cov Hais Lus Ua Los Ntawm Cov Khoom Siv Rov Los thiab Rov Siv Dua: 6 Cov Kauj Ruam
Cov Hais Lus Ua Los Ntawm Cov Khoom Siv Rov Los thiab Rov Los Siv Rov Los: " Suab paj nruag yog cov lus thoob ntiaj teb ntawm tib neeg. Thiab qhov zoo tshaj plaws-lawv tsis tau them kuv ib dime. Txhua yam nyob rau hauv no pr
Coco Tus Hais Lus - Siab Fidelity Hais Lus: 6 Cov Kauj Ruam
Coco Speaker - Cov Neeg Hais Lus Siab Zoo: Nyob Zoo Instructabler's, Siddhant ntawm no. Koj puas xav mloog lub suab zoo? Tej zaum koj yuav nyiam … Zoo … qhov tseeb txhua leej txhua tus nyiam. tsis tsuas yog muab HD suab zoo tab sis kuj " MUAJ TSHAJ Qhov muag
Tig Txhua Tus Hais Lus Rau Hauv Bluetooth Hais Lus: 4 Cov Kauj Ruam
Tig Ib Tus Neeg Hais Lus Rau Tus Hais Lus Bluetooth: Ntau xyoo dhau los nws yog ib qho rau cov neeg hais lus nqa tau kom muaj 3.5 hli nkaus thiab kom siv los ntawm AA roj teeb. Los ntawm cov qauv niaj hnub no, nws me ntsis dhau los tshwj xeeb tshaj yog lub roj teeb txij li txhua lub cuab yeej niaj hnub no muaj lub roj teeb rov tau. Lub mloog pob ntseg yog st
Txuas tus Ipod lossis Lwm Tus Neeg Siv Mp3 rau Cov Hais Lus Hauv Tsev Ib Yam Tsis Muaj Tus Nqi kim thiab Bulky Amplifier!: 4 Cov Kauj Ruam
Txuas tus Ipod lossis Lwm Tus Neeg Siv Mp3 rau Cov Hais Lus Hauv Tsev Ib Yam Tsis Muaj Tus Nqi kim thiab Bulky Amplifier!: Koj puas muaj cov hais lus tso suab ntxiv, uas yog tuaj nrog cheep stereos uas tawg lossis koj tsuas yog muaj yam tsis muaj laj thawj? Hauv Cov Lus Qhia Kuv yuav qhia koj yuav ua li cas koj tuaj yeem txuas lawv rau txhua tus neeg siv Mp3 lossis ib lub cuab yeej twg nrog lub suab nrov
Kaw Cov Suab rau Yeeb Yaj Kiab thiab Animations: Ob peb Cov Lus Qhia Ceev thiab Cov Lus Qhia: 8 Kauj Ruam
Kaw Cov Suab rau Yeeb Yaj Kiab thiab Animations: Ob peb Cov Lus Qhia Ceev thiab Ua Ntej: Yog tias koj yog tus kws kos duab, lossis tsuas yog menyuam yaus uas nyiam ua qee zaum ua cov yeeb yaj kiab rau youtube, tej zaum koj yuav muaj ob peb qhov teeb meem nrog kaw lub suab. Tsis muaj teeb meem li cas visually zoo cov vis dis aus lossis cov animation yuav yog, yog tias cov neeg saib nws tuaj yeem