Cov txheej txheem:
- Kauj Ruam 1: Yam Koj Yuav Tsum Tau
- Kauj Ruam 2: Cov Tshuaj
- Kauj Ruam 3: Tom Qab Scenes …
- Kauj Ruam 4: Kev Nyeem Ntawv Ntxiv/ Txhim Kho Cov Neeg Muaj Peev Xwm
Video: Rov Qab Ua Tsis Tau Zoo HC-06 Bluetooth Module: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Tawm ntawm qhov kev ntseeg siab tshaj plaws, Kuv teeb tsa kuv li HC-06 Bluetooth (qhev) tus qauv rau tus nqi baud ntawm 1, 382, 400 baud nrog AT+BAUDC hais kom ua. Puas tau txij li Arduino txuas nrog nws tsis muaj peev xwm siv tus qauv nrog SoftwareSerial lub tsev qiv ntawv. Kuv sim rov kho tus nqi baud nrog Arduino cov khoom siv kho vajtse (pins 0 & 1) tsis muaj hmoo.
Kuv kuj tau sim Google lub ncauj lus yam tsis pom kev daws teeb meem yooj yim. Tej zaum siv lub khoos phis tawj tsim ua hauv qhov chaw nres nkoj tuaj yeem yog qhov kev daws teeb meem (nrog 12V mus rau 3V3 qib kev hloov pauv), tab sis kuv lub khoos phis tawj tsis muaj qhov chaw nres nkoj uas tsis siv lawm, yog li kuv yuav tsum los nrog lwm qhov kev daws teeb meem.
Kauj Ruam 1: Yam Koj Yuav Tsum Tau
- Arudino/Genuino board nrog lub neej ntawd Atmel ATMEGA328P-PU MCU (@16MHz).
- HC-06 Bluetooth module mloog ntawm 1, 382, 400 baud
- Basic arduino IDE los ntawm
Kauj Ruam 2: Cov Tshuaj
Thov nco ntsoov tias Cov Lus Qhia thiab kev daws teeb meem yog ua rau 1, 382, 400 baud (AT+BAUDC) qhov xwm txheej. Kev daws teeb meem yuav tsis ua haujlwm rau lwm tus nqi baud. Txhawm rau daws lwm qhov xwm txheej thov mus saib cov theem pib los ntawm Kauj Ruam 3.
Kev daws yog yooj yim heev.
- Txuas HC-06's VCC tus pin rau 5V tus pin ntawm Arduino.
- Txuas HC-06's GND tus pin rau GND tus pin ntawm Arduino.
- Txuas HC-06's RXD tus pin rau tus pin 2 ntawm Arduino.
- Tawm HC-06's TXD tus pin tsis txuas nrog (lossis txuas rau tus pin 8).
- Upload hc06reset.ino kos duab.
- Txoj haujlwm yuav teeb tsa HC-06 mus rau 115, 200 baud hom (AT+BAUD8).
- Siv koj tus qauv HC-06 zoo ib yam li ua ntej.
Kauj Ruam 3: Tom Qab Scenes …
Lub tsev qiv ntawv SoftwareSerial uas los nrog Arduino IDE muaj peev xwm kis tau ntau tshaj 115, 200 khoom/thib ob, yog li nws tsis nrawm txaus los sib txuas lus ntawm qhov xav tau 1, 382, 400 baud tus nqi. Muab hais tias lub hauv paus Arduino lub rooj tsav xwm khiav ntawm 16MHz, theoretical uncompressed siab tshaj bitrate yog 16, 000, 000 bits/sec. Peb nyob nraum zoo tam sim no!
Raws li kuv nkag siab txog SoftwareSerial.cpp, kev sib txuas lus ntsaws ntsaws yog ua los ntawm teeb tsa tus pin tso zis siab (= 1) lossis Tsawg (= 0) nrog kev hwm rau ncua (uas los ntawm tus nqi baud) ntawm qhov kev hloov pauv.
- Tus pin tso tawm yog siab los ntawm lub neej ntawd (txhais tau tias tsis muaj cov ntaub ntawv), tom qab ntawd
- Pib me ntsis yog kis (uas rub tus pin qis), tom qab ntawd
- 8 khoom ntawm cov ntaub ntawv xa los ntawm LSB mus rau MSB, (+5V thaum me ntsis 1 thiab 0 txwv tsis pub) ces
- Nres me ntsis yog kis (uas rub tus pin siab)
Txoj kev no 1 byte raug xa mus siv 10 khoom.
Cov lus peb yuav tsum xa yog AT+BAUD8 (tsis muaj / n, / r kawg). Cov lus txib no teeb tsa HC-06 rov qab rau 115, 200 baud tus nqi uas tuaj yeem ua los ntawm cov tsev qiv ntawv ib txwm muaj.
Txhawm rau xa cov khoom nrog 1, 382, 400 bits/sec nrawm, rau txhua qhov me peb muaj 1/1, 382, 400 vib nas this lub sijhawm (uas yog kwv yees li 723.38 ns) rau txhua qhov me ntsis. Arduino khiav ntawm 16, 000, 000 Mhz, yog li txhua lub voj voog kav 1/16, 000, 000 vib nas this - uas yog 62.5 ns toj ib lub hlis.
Siv tus lej AVR sib dhos peb tuaj yeem siv OUT hais kom teeb tsa tus pin tawm los siab lossis qis thiab NOP tos kom raws nraim ib lub CPU. Ob qho lus txib tau noj raws nraim 1 cpu voj voog. Txoj kev no 723.38 ns lub sijhawm me ntsis tuaj yeem npog los ntawm 11 txog 12 arduino cov lus qhia ib kis me ntsis. Ib yam uas yuav tau xav txog: OUT cov lus txib teeb tsa tag nrho byte ib zaug, yog li peb yuav tsum xaiv PORTx qhov twg qhov no tsis yog teeb meem. Siv ATMEGA328P-PU piv txwv PORTD (arduino pins 0-7) zoo meej rau qhov xwm txheej no. Tom qab teeb tsa me ntsis, tsuas yog lub sijhawm tsim nyog yuav tsum dhau mus uas ua tiav los ntawm 10 txog 11 NOPs thiab qhov ntawd yog nws.
Koj tuaj yeem pom cov ntsiab lus suav hauv Excel cov ntaub ntawv hauv qab no. Cov ntaub ntawv no tau tsim cov lus qhia uas xav tau rau txoj haujlwm. Tsuas yog ob peb qhov hloov pauv yuav tsum tau ua tom qab muab cov cai tsim tawm.
Kauj Ruam 4: Kev Nyeem Ntawv Ntxiv/ Txhim Kho Cov Neeg Muaj Peev Xwm
- Tej zaum lub tsev qiv ntawv SoftwareSerial nrawm tuaj yeem ua los ntawm kev siv cov txheej txheem piav qhia hauv Kauj Ruam dhau los.
- FedericoK2 tau ua ib qho cuab yeej zoo uas tsim HC-06 txoj cai rov qab rau txhua qhov muaj peev xwm ua tau. Nkag mus rau lub xaib ntawm no: https://tools.krum.com.ar/save_your_hc-06/ Ua tsaug FedericoK2
Pom zoo:
Rov Qab Rov Qab PC Cov Khoom Siv Hluav Taws Xob: 12 Cov Kauj Ruam (nrog Duab)
Rov Qab Rov Qab PC Cov Khoom Siv Hluav Taws Xob: Txij li xyoo 1990, lub ntiaj teb tau raug ntxeem los ntawm PCs. Qhov xwm txheej tseem niaj hnub no. Cov khoos phis tawj qub, txog xyoo 2014 … 2015, feem ntau tsis siv lawm. Raws li txhua lub khoos phis tawj muaj lub zog siv, muaj ntau ntawm lawv tso tseg hauv daim ntawv pov tseg.Li
YUAV UA LI CAS ROV QAB ROV QAB NYOB RAU HAUV QAB NTUJ NTUJ Siv MS Lo Lus YOOJ YIM: 12 Kauj Ruam
YUAV UA LI CAS ROV QAB ROV QAB NYOB RAU HAUV NTUJ NTAWV Siv MS Lo Lus YOOJ YIM: nyob zoo cov phooj ywg !! kuv rov !!!!! Kuv nco koj txhua tus :) kuv muaj cov lus qhia tshiab uas yooj yim heev !!! koj puas paub koj tuaj yeem kho cov duab hauv microsoft lo lus ?? yog koj tuaj yeem tshem rov qab lossis txhim kho daim duab ,,, yog tias koj tsis tau sim lwm cov apps koj tuaj yeem siv
Rov Qab/Rov Rov Los Li-Poob (Lithium Polymer) Roj Teeb!: 6 Cov Kauj Ruam
Rov Qab/Rov Rov Los Li-Poob (Lithium Polymer) Roj Teeb!: Roj teeb LiPo yuav tsum tsis txhob tso qis dua 3.0V/cell, lossis nws yuav ua rau lawv puas tas mus li. Ntau tus neeg them nyiaj tsis txawm tso cai rau koj them lub roj teeb LiPo qis dua 2.5V/cell. Yog li, yog tias koj yuam kev khiav koj lub dav hlau/tsheb ntev dhau, koj tsis muaj koj qhov qis
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Info: 4 Cov Kauj Ruam
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws … Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Cov Lus Qhia: yog tias koj tau mus rau lub vev xaib thiab nws ua nkauj nkauj uas koj nyiam thiab xav tau nws ntawm no yog cov lus qhia rau koj tsis yog kuv qhov txhaum yog tias koj cuam tshuam qee yam (tsuas yog txoj hauv kev nws yuav tshwm sim yog tias koj pib tshem cov khoom yam tsis muaj laj thawj. ) Kuv tuaj yeem tau txais cov nkauj rau
Yuav Ua Li Cas Rov Qhib Cov Ntawv Thaum Koj Rov Nkag Nkag Rov Los Tom Qab Koj Logoff: 5 Kauj Ruam
Yuav Ua Li Cas Rov Qhib Cov Ntawv Thaum Koj Rov Nkag Los Tom Qab Koj Logoff: Okay yog li qhov xwm txheej no, koj tab tom siv lub khoos phis tawj nrog ntau thiab ntau ntawm koj cov ntawv qhib tau qhib … Tom qab ntawd, koj niam tuaj txog tsev ntxov dua qhov xav tau! Koj paub zoo tias yog nws ntes koj siv lub khoos phis tawj, qhov twg koj yuav tsum tau pw hauv txaj vim yog