Last active
March 7, 2023 12:25
-
-
Save iceberg1369/dfdf44dc5cf6d31e3189ab27d96fb2e0 to your computer and use it in GitHub Desktop.
HC05 in master m,ode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defualt data mode baud rate is 9600 or 4800 | |
first enable AT command mode | |
pull up EN(KEY) to VCC and then turn on device | |
# some times you have to keep button pushed so that AT commands works in AT mode! | |
the device should blink every 2 second | |
in arduino IDE | |
baud rate 38400 | |
both NL CR | |
AT | |
AT+UART? | |
AT+ROLE? | |
AT+ADDR? | |
AT+CMODE? | |
AT+NAME=TIVAN-BT | |
AT+UART=19200,1,0 | |
#after this command the module will not respond to at commands anymore! | |
set device to master mode | |
AT+ROLE=1 // set master roll | |
AT+CMODE=0 // fixed connection | |
AT+BIND=2018,03,051690 // remote bluetooth (slave) address | |
AT+RESET |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment