[vc_row][vc_column width=”1/1″][vc_tour interval=”0″][vc_tab title=”Introduction and Features” tab_id=”1388383169790-2-7″][vc_column_text]Bluetooth is a wireless technology standard for exchanging data over short distances from fixed and mobile devices, creating personal area networks (PANs) with high levels of security. It can connect several devices, overcoming problems of synchronization.
The Bluetooth Shield integrates a Serial Bluetooth module. It can be easily used with Arduino for transparent wireless serial communication. You can choose two pins from Arduino D0 to D7 as Software Serial Ports to communicate with Bluetooth Shield (D0 and D1 is Hardware Serial Port). The shield also has two Grove connectors (one is Digital, the other is Analog) for you to install Grove modules.
Features:
- Arduino compatible
- Up to 10m communication distance for line-of-sight communication
- UART interface (TTL) with programmable baud rate (SPP firmware installed)
- Default Baud rate: 38400, Data bits: 8, Stop bit: 1, Parity: No parity
- Default PINCODE:”0000”
- A full set of configuration commands
- On board PCB Antenna
[/vc_column_text][/vc_tab][vc_tab title=”Wire Diagram” tab_id=”1388124424215-2-8″][vc_column_text]
Parts List:
1 x pcDuino V2
1 x Bluetooth Shield
Now let us do the test with pcDuino.
The code and tools can be downloaded at the end.
- Connect BT_TX to DIGITAL0, BT_RX to DIGITAL1. And push the switch to A1, then plug in pcDuino, like the picture shows.
2. Open Arduino IDE and input the test code
3. Download the code, then test the Bluetooth Shield is in AT command mode or not. If yes, the LED D1 will blink about 2 seconds.
AT command show as below:
“AT+NAME=pcDuino” named BT shield to pcDuino
“AT+ROLE=0” set up BT shield as a slave (parameter=1, host)
“AT+CMODE=1” any Bluetooth address connection mode (parameter=0, the binding Bluetooth address connection mode)
“AT+PSWD=1234”set the PIN code as ‘1234’
“AT+UART=38400,0,0” Baud rate is 38400, 0 stop, 0 verification
4. Push the Bluetooth’s switch to NC, and terminal input ‘s’ enter. pcDuino will send a reboot command to Bluetooth shield, and then go into slave mode. The green LED D1 will blink fast, waiting for the connection from the host.
5. Install a serial port Bluetooth APP to an Android phone. Open the APP and search the Bluetooth device around. The picture shows that we found the Bluetooth shield (named pcDuino).
6. Connect to pcDuino, send the PIN code ‘1234’ which we set before, then connected.
7. After connected, the red LED D2 of Bluetooth shield will on. Now you can communicate with pcDuino via Bluetooth.
[/vc_column_text][/vc_tab][vc_tab title=”Download” tab_id=”1388121648-2-97″][vc_column_text]
Test code: bluetooth
AT Command: AT Command
Bluetooth serial port APP(Android): bluetoothSPP
[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]
Comments are closed.