Ks0144 keyestudio XBee Bluetooth Wireless Module HC-06

From Keyestudio Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Keystudio XBee Bluetooth Wireless Module HC-06


thumb


Introduction

Keyestudio Bluetooth XBee Bluetooth wireless module HC-06 adopts XBEE design.
It has features of compact size, compatible with XBEE shield, and suitable for various 3.3V MCU systems.
The module can use AT command to set baud rate and master/slave mode. The default settings are baud rate 9600, paring password 1234, slave mode. It comes with efficient on-board antenna. The exposed antenna ensures better signal quality and longer transmitting distance. Transparent serial port can be used to pair up with various Bluetooth adapters, Bluetooth phones.
The humanized design offers convenience for secondary development.
After testing, the module is known to be suitable in using with all Bluetooth adapters on the market (PC and phones with Bluetooth).


Specification

  • Supply voltage: 3.3V (voltage above 3.3V is forbidden. It will damage the module)
  • Bluetooth paring user name: HC-06
  • Bluetooth paring password: 1234
  • Default baud rate: 9600
  • Modified baud rate takes effect after module reboot


Connection

Stack it onto the board
thumb


Sample Code

int val; 
int ledpin=13; 
void setup() 
{ 
Serial.begin(9600);
 pinMode(ledpin,OUTPUT); 
} void loop()
{ val=Serial.read(); 
if(val=='a')
 { 
digitalWrite(ledpin,HIGH); 
delay(250); 
digitalWrite(ledpin,LOW); 
delay(250);
 Serial.println("keyestudio");
}
}


Test Result

Connect the 3 wire jumpers of the shield to APC ports; enter cell phone “settings”; pair up the Bluetooth; device name is HC-06; pairing PIN No. is 1234.
After device is paired, open APP “BTClient”; click search for device, pair up the Bluetooth.
After successful connection, enter “a” in BTClient and click send, the BTClient APP page will display keyestudio. And Pin13 LED will blink once.

thumb

thumb



Resources

  • Video

http://video.keyestudio.com/wp/ks0144/

  • Code

https://fs.keyestudio.com/KS0144



Get One Now

You can get one now from below link: