(SKU:RB-03T008)RB Bluetooth Module

From ALSRobot-Wki
Jump to: navigation, search
Wtgd1.jpg

Contents

overview

RB Bluetooth Transceiver, as a Bluetooth wireless communication module, is easy to use. It is lightweight and has high price value. Compared with the same products abroad, it is smaller and more powerful and special designed. Features are as follows: First, sandwich plate design protect Bluetooth chip from being damaged by static electricity generated by users; second, it has wide power supply range: DC+3.3V/+5V-+12V and can be applied to various micro controller unit, such as Arduino, BS2 and other micro controllers; third, LED indicator, switched on by micro DIP (on for connect/off for power save mode), saves power. And clear search (Power)/Connect indicator makes it easy to judge the working state; fourth, two lines of pin ports provide convenience to secondary development. Straight and bend pin headers and jumper cables can be mounted. It also can be applied to development board, controller, etc.

Technical parameters and performance

  1. Bluetooth: CSR BC417143
  2. Bluetooth Protocol Specification: Bluetooth Specification v2.0+EDR
  3. Transmission frequency: 2.4—2.48GHz unlicensed ISM band
  4. USB protocol: USB v1.1/2.0
  5. Modulation system: GFSK(Gaussian Frequency Shift Keying)
  6. Transmission power: ≤4dBm, Class 2
  7. Transmission distance: 20—30m in free space
  8. Receiving sensitivity: ≤-84dBm at 0.1% BER
  9. Transmission rate: Asynchronous: 2.1Mbps(Max) / 160 kbps;Synchronous: 1Mbps/1Mbps
  10. Security feature: Authentication and encryption
  11. Support profiles: Bluetooth serial port
  12. Serial port default setting: 115200/N/ 8/1
  13. LED indicator: Search(Power)/Connect
  14. Input power: +5V — +12VDC/+3.3VDC 50mA
  15. Working temperature: -20°C — +55°C
  16. Dimensions: 30mm x 30mm
  17. Weight: 9g

Module setting

RB Bluetooth Bluetooth module supports AT instruction set the baud rate and master slave mode. Module has a 2 bit

Dial switch, switch 1 is the Connect switch, you can turn off the Connect power, dial to ON to open, dial To the 1 end of the switch is the AT command mode switch, dial the ON to enter the AT command mode, dial 2 to 2 AT command mode, the power is reset after the setting to take effect.

setting up the RB - Bluetooth Bluetooth module needs to use the USB TTL module or USB Mini download module,

Connect the Bluetooth module to the USB Mini download module, and then dial the number 2 to the ON side, using 38400 The baud rate in the AT state, and set the communication baud rate.

open the serial debugging assistant, select USB to Serial corresponding to COM port, set the baud rate is 38400, the

It defaults. Note: in AT mode the baud rate is 38400 by default, and set the communication baud rate.

Wtgd2.jpg
command structure: refers to the need to back CRLF as at the end of sixteen, it is the band

D 0X0, 0X0A, if the use of serial assistant, is the AT behind the ENTER button, and then send instructions. AT instruction set is as follows: (AT: instruction case insensitive, to enter, newline characters at the end: \r\n)

  1. test instruction:
Wtgd3.jpg
  1. module reset:
Wtgd4.jpg
  1. set and query module role:
Wtgd5.jpg
Module role description:
Slave (from the role) - passive connection, can be paired with any Bluetooth adapter;

Master (leading color) - the query is around from the device, and the initiative to initiate the connection, thus creating the master, from the Bluetooth device Transparent data transmission channel. Slave: Loop -- (loop role) -- passive connection, data receiving the remote Bluetooth equipment and data as is Back to the remote Bluetooth master device.

  1. set and query matching code:
Wtgd6.jpg

serial set and query parameters

Wtgd7.jpg
For example: set the serial baud rate: 115200, 2 stop, Even check
AT+UART=115200,1,2\r\n
OK
AT+UART?
+UART: 115200,1,2
OK


Test of Bluetooth module

we use the Arduino controller to do a test, to use the hardware device is as follows:
  1. controller Arduino * 1

The Arduino sensor # expansion board * 1

  1. Bluetooth module * 1
  2. Bluetooth adapter * 1
  3. USB data communication line x 2
Wtgd8.jpg

Download the program to the Arduino controller. After downloading the program in the Bluetooth module is inserted into the Arduino. The Bluetooth interface of the sensor board. If you insert the Bluetooth into the Bluetooth interface of the Arduino sensor board, an error occurred while downloading the program.

Sample code

char val;            
int ledpin=13;     
void setup() 
{ 
Serial.begin(11520 0);         
pinMode(ledpin,OUTPUT);   
} 
void loop() 
{ 
v al=Serial.read();            
if(val=='r') 
{ 
digitalWrite(ledpin,HIGH);  
d elay(500);                      
digitalWrite(ledpin,LOW);  
d elay(500);                 
Serial.println("www.robotbase.cn");    
} 
} 
When paired with a Bluetooth adapter and Bluetooth - RB, Bluetooth - RB must be set to the module, blue

The tooth adapter does not need a driver to be used directly with a laptop, PDA, Bluetooth and other devices, pairing password "1234".

RB - Bluetooth Bluetooth module based on Bluetooth 2 specification, compatible with Bluetooth 1.1, Bluetooth 1.2. Use the Bluetooth adapter to install a management software BlueSoleil IVT, after the installation, plug in the Bluetooth adapter will map out 2 COM, but not the port we need.
Wtgd9.jpg
RB - Bluetooth Bluetooth module is inserted into the steering gear controller or Arduino, and the Bluetooth adapter is plugged into the computer,

Open the BlueSoleil IVT software, the yellow ball is a Bluetooth adapter, double click on the Yellow sphere will automatically search Cable equipment, then there will be a question of a question mark of the blue sphere, this is our RB - Bluetooth Lan Yamo Block, double-click the serial icon will appear below the interface, and COM8 connection, COM8 is what we need Serial port, will soon pop up the pairing of the window, enter "1234" in the Bluetooth password, click OK, after pairing POWER Indicates the exhibit of lanterns flashing.

Wtgd10.jpg
Wtgd11.jpg
Wtgd12.jpg

In the transmission area: input "R" serial debugging assistant, Arduino digital port 13 LED flash exhibit of lanterns, After the reception area of the serial debugging assistant will show the www.robotbase.cn".

Wtgd13.jpg

The use of master slave module:

the 2 modules are used in pairs must be a master one from, can use the AT command to set the 2 modules to the host

And from machine. Master and slave in pairs do not need to use the driver, the power will be transmitted on the two modules. Power: light strobe state on the module that are paired, Connect always said the pairing is completed, this time Serial port function has been activated. A master is not extinguished when the lamp is used in pairs. Such as the main machine and the distance from the machine is too far apart, the host and Lights flashing from the machine, if they are close to the distance, they will find together and automatically connected. Host will remember it With a good machine, a power to the host will find its memory from the machine address. Use: Arduino test of master-slave communication, the Bluetooth module is inserted into the expansion board sensor on Arduino, As shown below:

Wtgd14.jpg

Host program code is as follows:

void setup() 
{ 
Serial.begin(115200); 
} 
void loop() 
{ 
Serial.println("www.robotbase.cn");
delay(1000);                                   
}
the machine program code is as follows:


char val;          
int ledpin=13;  
void setup() 
{ 
Serial.begin(115200);    
pinMode(ledpin,OUTPUT);  
} 
void loop() 
{ 
v al=Serial.read();     
if(val!=-1) 
{ 
digitalWrite(ledpin,HIGH);   
delay(500);                          
digitalWrite(ledpin,LOW);         
delay(500);                       
Serial.print(val);                   
} 
} 
Wtgd15.jpg

The observation results: the use of serial port, serial assistant set the serial number from the serial number, baud rate and program design Set the same as 115200, the other default, open the serial port can see the results. Simultaneously from the machine's digital mouth 13 The LED exhibit of lanterns flicker.

Product recommendation

Buy address:RB Bluetooth Module

Personal tools
Namespaces

Variants
Actions
Navigation
Tools