Bluetooth Transceiver 6 pin
- Buy 2 for $8.50 each and save 5%
- Buy 4 for $7.95 each and save 11%
HC-06 Bluetooth module can be configured as master mode or slave mode using AT command in the configure mode
HC-06 Bluetooth module can be configured as master mode or slave mode using AT command in the configure mode
6 PIN version with push button.
,br>This module allows serial data transmission via Bluetooth. The HC-05 module is mounted to a breakout board that allows simple use of the module, this is the 6 pin version (we do have some 4 pin versions as well as others). A small switch on the PCB allows you to control Pin 34 state. Pressing and holding it while turning on the module puts it in 38400 baud command mode, pressing it while its already ON puts it in 9600 command mode.
Configure the Slave first:
Reset defaults: AT+ORGL
Clear paired device list: AT+RMAAD
Print serial parameters: AT+UART?
Set PIN: AT+PSWD=1234
Slave mode: AT+ROLE=0
Get the Bluetooth address the module for reference later: AT+ADDR?
Now configure the Master:
Reset defaults: AT+ORGL
Clear paired device list: AT+RMAAD
Print serial parameters: AT+UART?
Set Master mode: AT+ROLE=1
Need to restart after changing role: AT+RESET
Allow connecting to any address: AT+CMODE=1
Inquire mode Standard, stop after 5 devices found, (or) stop searching after 5 seconds: AT+INQM=0,6,9 ;search for up to 6 devices stop after 9 seconds
Start SPP Bluetooth transmitting/receiving serial protocol: AT+INIT
Note: If you get Error:(17) then its already loaded, you can carry on.
Start searching: AT+INQ
There is a good chance that if its the only device it will pair up. Each LED will flash once every second or 2.
The format of the data is +INQ:address,type,signal
The signal will be 7FFF with inquiry in standard mode, if your in RSSI mode you will get different signal levels which may be handy later on.
Copy the address of the devices found, for example 12:3:456789 and change the colons to commas 12,3,456789.
To find out which device is the slave module you will need to query each address for its name: AT+RNAME?
Replacewith address of device like 12,3,456789
Response should be +RNAME:HC05 if not try the next address in the list.
Now youve got the address of the slave module you need to pair with it: AT+PAIR=
, set enough time for you to enter your pin number if this is a phone or PC.
Bind address: AT+BIND=
Only allow connecting to the bound address: AT+CMODE=0
And now to actually connect: AT+LINK=
Hopefully this helps you get up and going. If you order 2 modules from us, possibly we can pair them, name them so all you have to do is apply power and go.
Validate your login
Sign In
Create New Account