-
نقد و بررسی اجمالی
ماژول بلوتوث سریال HC-05 همراه با برد کمکی
ماژول بلوتوث HC-05
به همراه برد کمکی با پشتیبانی از پروتکل SPP (Serial Port Protocol)
برای ارتباط بیسیم سریال طراحی شده است. تقریباً در تمامی پروژههایی که در آنها
نیاز هست که توسط میکروکنترلر اطلاعات بهصورت بلوتوث ارسال شوند از این ماژول
استفاده میگردد. احتیاجی به لحیمکاری SMD نبوده و میتوان مستقیم ماژول را روی بردبرد
استفاده کرد. به دلیل وجود رگولاتور داخلی احتیاجی به تأمین تغذیه 3.3 ولت نبود و
میتوان همزمان با دیگر قطعات و میکروکنترلرها مستقیماً به ولتاژ 5 ولت متصل کرد.
با پشتیبانی برد از پروتکل سریال تمامی دستورات و کامنت ها توسط این رابط بهسادگی
انجامپذیر هستند.
کاربردها
- ولتاژ: 3.6-6 ولت
- حداکثر
جریان: 50ma - فرکانس: 2.4GHz
- کارکرد: در دو حالت
master & slave - نوع ارتباط با
میکروکنترلر UART: - بادریت های مورد پوشش:
9600,19200, 38400,57600,115200,230400,460800 - نوع ارتباط بلوتوث:
SPP serial protocol - ورژن بلوتوث:
V2.0+EDR
نحوه استفاده
برای تغییر در تنظیمات و
همچنین دریافت اطلاعات خود ماژول می بایست وارد حالت AT COMMAND شوید.
برای این کار می توانید مراحل زیر را دنبال کنید.
1- پایه
KEY-1 (پایه 34) را به 3.3 ولت وصل کنید
2- پایه های سریال RX و TX خود را بصورت ضربدری به برد متصل کنید.
(RX به TX )
3- تغذیه مدار را متصل کنید. توجه داشته باشید که در صورتی
که این مراحل را به درتس انجام داده باشید، چشمک زن (پایه 31) بصورت یک ثانیه ای
چشمک خواهد زد، در حالت عادی بسیار تندتر این چشمک زدن انجام می شود.
4- پایه KEY-1 را قطع کنید.
5- در قسمت تنظیمات سریال ترمینال خود، بودریت بر
روی 38400 تنظیم شود. نکته بسیار مهم فعال بودن دو گزینه
CF و LR در تنظیمات سریال
می باشد.
6- در صورت درست بودن تمامی مراحل، با ارسال دستور
AT پاسخ OK را دریافت خواهید
کرد.
*** نکاتی مهم در
زمینه ایرادیابی
- از مبدل مناسب استفاده کنید
- پایه EN را به مثبت 5
ولت وصل کنید - در بیشتر مواقع، اشکالات پورت سریال
باعث می شود که دیتایی ارسال نشود، پایه هیا RX و
TX را اتصال کوتاه کنید، در صورت درست بودن، هر
کاراکتری که ارسال می کنید می بایست باز گردد - برای راحتی یکبار با ارسال دستور AT+ORGL
ماژول را به تنظیمات کارخانه بازگردانده، سپس با ارسال
دستور AT+ROLE=0 در حالت SLAVE
قرار دهید - امکان دارد در صورتی که قبلا از این
ماژول استفاد کرده باشید، با ذخیره شدن اطلاعات قبلی نتوانید مجدد به ماژول
کانکت شوید، می توانید از طریق دستور AT+NAME=ECA نام دلخواه خود را (جایگزین کلمه
ECA ) برای ماژول قرار دهید.
introduction
the core module HC-05 from the module, leads to the interface includes VCC,
GND, TXD, RXD, KEY pin, Bluetooth connection status pinout (STATE), not
connected to the output low, output high after the connection
connectivity, slow flash that enter the AT mode, double flash indicates
Bluetooth is connected and turned on port
When unpaired current of about 30mA, paired about 10mA, the input voltage must
not exceed 7V!
PIC, ARM, MSP430, etc.), 5V microcontroller can also be connected directly,
without MAX232 MAX232 can not go through!
more than 10 meters are possible, but do not do this to ensure the quality of
the connection distance of
any Bluetooth protocol, supports 8 data bits, 1 stop bit , you can set the
parity communication format, which is the most commonly used communication
format does not support other formats.
information
quality. And sets of transparent heat shrink tubing, dust and beautiful, and
there is a certain degree of anti-static capabilities.
via AT command specifies the device
same, so long as it is “fixed baud, 8 data bits, no parity”
communication format serial devices can be directly replace the original wired
serial port without the need to modify the program. Such as data acquisition,
intelligent car, serial printers, and other outdoor dot matrix screen control.
Paired with a computer: fit between computers via Bluetooth serial
communication with the device, use the same serial port paired with your phone:
for between your phone via Bluetooth serial communication with the device, use
the same serial port paired with a Bluetooth host: for two devices directly via
Bluetooth serial communication, such as between the microcontroller and
microcontroller serial cable with microchips, etc., use the same serial port
GND, TXD, RXD, KEY pin, Bluetooth connection status pinout (STATE), not
connected to the output low, output high after the connection
connectivity, slow flash that enter the AT mode, double flash indicates
Bluetooth is connected and turned on port
When unpaired current of about 30mA, paired about 10mA, the input voltage must
not exceed 7V!
PIC, ARM, MSP430, etc.), 5V microcontroller can also be connected directly,
without MAX232 MAX232 can not go through!
more than 10 meters are possible, but do not do this to ensure the quality of
the connection distance of
any Bluetooth protocol, supports 8 data bits, 1 stop bit , you can set the
parity communication format, which is the most commonly used communication
format does not support other formats.
information
quality. And sets of transparent heat shrink tubing, dust and beautiful, and
there is a certain degree of anti-static capabilities.
via AT command specifies the device
(very important):
RXD must be connected to another device.
normal communication TXD must be connected to another device.
devices TXD, so if you want to receive data sent by itself as the name
suggests, it is their own to receive data transmitted, namely own TXD directly
connected to RXD, used to transmit and receive test itself It is normal, is the
quickest and easiest way to test when a problem occurs first do this test to
determine whether a product failure . Also known as the loopback test.
Logic:
to a logical “1”, 0V is equivalent to a logical “0”, known
as TTL signal system, is positive logic
+ 12V logic level, equivalent to a logical “1” is a negative logic
Use:
baud rate, in a small amount of data when you can use as a device baud rate
conversion.
Bluetooth module connected to a computer how (from mode)
example:
“My bluetooth location”, click “Search for equipment
“within the effective range,
“linvor” (as modified name was modified name, such as
“jiayuanelectron”), double-click or right click and select “Add
a Bluetooth device”
transparent transmission module will est
-
توضیحات کوتاه
ماژول بلوتوث سریال HC-05 همراه با برد کمکی