Grove - Serial Bluetooth v3.0
Grove - Serial Bluetooth is an easy to use module compatible with the existing Grove Base Shield, and designed for transparent wireless serial connection setup. The serial port Bluetooth module is fully qualified Bluetooth V2.0+EDR(Enhanced Data Rate) 2Mbps Modulation with complete 2.4GHz radio transceiver and baseband. It uses CSR Bluecore 04-External single chip Bluetooth system with CMOS technology and with AFH(Adaptive Frequency Hopping Feature).It has the smallest footprint of 12.7mm x 27mm. Hope it will simplify your overall design/development cycle.
- Operating Voltage: 5.0VDC
- Data Rate: 2Mbps
- RF Transmit Power (Max)：+4dBm
- Fully Qualified Bluetooth V2.0+EDR 3Mbps Modulation
- Selectable baud rate
- Auto-reconnect in 30 min when disconnected as a result of beyond the range of connection
More details about Grove modules please refer to Grove System
Two Bluethooth modules work as shown below:
Download Code and Upload¶
- You can download the code in github, click here,then extract it to libraries folder of Arduino.
- Open Arduino IDE, open File -> Examples -> Bluetooth_Shield_V2_Demo_Code -> Master_Button, then you open the code of Master,modify the code as follows:
- Open Arduino IDE, open File -> Examples -> Bluetooth_Shield_V2_Demo_Code -> Slave_led, then you open the code of Slave and modify the code as well like above.
- Save the modification and click Upload to Upload the code, if you have any problem about how to start Arduino, please click here for some help.
Check The Result¶
- After finish Uploading the code to both Master and Slave, reset the two devices meanwhile
- You can see the led blink, indicate that devices was initializing and connecting.
- After about servel seconds, led on, indicate that Master and Slave had connected.
NoteIf the phenomenon is not observed above, try unplugging the power and re-plug in again.
Commands to change default configuration¶
1. Set working MODE
|AT+ROLES||Set device working mode as client (slave).|
|AT+ROLEM||Set device working mode as server (master).|
|AT+BAUD4||Set baudrate 9600. Save and Reset.|
|AT+BAUD5||Set baudrate 19200. Save and Reset.|
|AT+BAUD6||Set baudrate 38400. Save and Reset.|
|AT+BAUD7||Set baudrate 57600. Save and Reset.|
|AT+BAUD8||Set baudrate 115200. Save and Reset.|
|AT+BAUD9||Set baudrate 230400. Save and Reset.|
|AT+BAUDA||Set baudrate 460800. Save and Reset.|
3. Set Device NAME
|AT+NMAEabcdefg||Set device name as “abcdefg”.Max length is 12.|
4. Set PINCODE
|AT+PIN2222||Set pincode “2222”,Max length is 12.|
5.Restore all setup value to factory setup
|AT+DEFAULT||Restore all setup value to factory setup|
6. Query module address
|AT+ADDR||Query module address|
7. Query Last Connected Device Address
|AT+RADD||Query module address|