Content

Serial Bluetooth RF Transceiver Module RS232

Description:
This small size Bluetooth TTL transceiver module allows your target device to both send or receive the TTL data via Bluetooth technology without connecting a serial cable to your computer. It's easy to use and completely encapsulated.
- Chipset CSR BC417143
- Bluetooth version V2.0+EDR (Enhanced Data Rate)
- Output power Class II (±2.5mW range ±10m)
- Flash 8Mbit
- Power Supply 3.3V (5VDC via breakout board)
- Interface UART
This configuration guide covers the displayed serial Bluetooth module. It's available in many different internet shops (e.g. Ebay, Goodluckbuy, BlueSkyRC or pre configured from the European OpenPilot store and uAViation) The boards ship mostly around 10$ - 20$. Although the hardware is the same, several software or firmware revisions exist.
| Different input voltage versions Please note: |

Configuration
The unit comes with a default baud rate of 9600, 8 data bits, 1 stop bit & no parity. It must be adapted to suit the needs of the GCS telemetry.
In order to reconfigure the Bluetooth adapter, one needs a standard TTL serial port and a terminal program such as Hyper Terminal. As an example, a Basic 5V Sparkfun FTDI breakout board will be used as a USB to serial port converter to configure the module. Any USB to serial TTL port should work.
| CopterControl as TTL converter If you don't have a dedicated USB to Serial converter needed to configure the adapter, don't worry. The OpenPilot team has developed a special CopterControl Firmware that turns the CopterControl into a converter. You can convert your CopterControl board to a TTL adapter, configure your Bluetooth module and then convert the CopterControl board right back to its original purpose. No settings will be lost so you don't need to configure your board again after you're done. Check this wiki page on how to convert your board into a Virtual Com Port adapter.
There's even better news, the next release of CopterControl firmware allows the use of the virtual com port without flashing new firmware. If you build your own version of the software you can already use this new feature. |
Alternative terminal programs for Hyper Terminal
|

Module configuration connection
Connect the serial Bluetooth module to your comm port as in the diagram below. Make sure the RX & TX lines are crossed between both devices.


Module configuration settings
A: Manual configuration
Open your terminal program and connect to the module with the default settings 9600,8,1,N
Check if the unit responds to the AT command (use capital letters). The unit should answer OK

The entered text is not visible in Hyper Terminal, if you are unable or unsure that you sent the right command, then copy the letters AT and use the paste to host function from the Edit menu. |
Bluetooth modules are sensitive to how quickly (or slowly) you enter AT commands. The best way to avoid problems is to type all of your commands into a simple text editor. Then copy the command you wish to run into the terminal emulator window as an entire string. |
When you established a connection with the module, use the following commands to configure the module:
Set the module speed with the command AT+BAUD8 The Bluetooth module is now configured to work on a serial speed of 115200kbps. This is the serial speed which you must set in the GCS telemetry panel as Telemetry speed.
- Optionally, set the module name with the command AT+NAMEOpenPilot
Note: The commands below can be used with the module but only with software version Linvor v1.5.
Command | Description | Options | Response |
|---|---|---|---|
AT+VERSION | Returns the software version of the module |
| OKlinvorV1.5 |
AT+BAUDx | Sets the baud rate of the module | 1 >> 1200 | OK115200 |
AT+NAMEOpenPilot | Sets the name of the module | Any name can be specified up to 20 characters | OKsetname |
AT+PINxxxx | Sets the pairing password of the device | Any 4 digit number can be used, the default | OKsetPIN |
AT+PN | Sets the parity of the module | AT+PN >> No parity check | OK None |
B: Using the configuration software
This Bluetooth configurator application enables you to quickly and easily configure a standard module. This handy app is written by PT_Dreamer (Forum Link)
Bluetooth configurator (download)
The application is not completely stand alone and it needs to be copied into the GCS station executable folder. This is the bin directory in your OpenPilot installation folder. (Hint: the openpilotgcs.exe executable file is also located in the bin directory.) |
- The app is very much self-explanatory; initially you must specify the connection settings and click on the Connect button. If you don't know the connection settings, you can use the find button. The program will then scan all your available serial ports at different speeds to find the module.
If you are successfully connected with the module, you can enter the new configuration settings and store the values with the button Write Values.
Speed: This is the serial speed which you must set in the GCS telemetry panel as Telemetry speed.
Name: Any module name can be specified up to 20 characters.
Pin: Sets the pairing password of the device; any 4 digit number can be used.
- In the event log area you can follow the connection & configuration changes.
C: Using an Arduino
Bluetooth programming sketch for Arduino enables you to quickly and easily configure bluetooth modules with your Arduino. No interaction is required it will do everything for you, this handy sketch is written by nayr (Forum Link)
Bluetooth Programming Sketch for Arduino (download)
| Optional Configuration Settings There is a configuration section at the top of the sketch if you wish to modify any of the default values.. This was tested/developed on an Arduino UNO |
This is a rundown on how it operates:
- Initializes the standard serial port for debug output.
- Initializes pins 10 & 11 as a serial port to connect to the Bluetooth Module.
- Turns LED on to signal programming has started.
- Sends all the commands needed in at a very specific rate while updating status.
- Verifies the output from the BT module matches what is expected.
- If Verification passes - enter a test mode where LED flashes and a string is sent to the BT module in an infinite loop.
- If Verification fails - LED is turned off & it shows the returned output before entering a command mode where you can attempt direct configuration.
- (optional) When done testing you can plugin another module then reset the Arduino to repeat the process.
Instructions:
- Open the included file with Arduino App
- Make any configuration changes you like
- Verify and upload to your device.
- Then hookup the module as shown below
- Power up or reset the Arduino.
- Wait for LED's to start flashing to indicate success. (L in the diagram below)

If you connect to the Debug Port (USB or Pins 0-1) with the Arduino Serial Monitor you can watch progress and program manually incase of failure.. Here is the expected output:
| Serial Monitor Output Configuring bluetooth module for use with OpenPilot, please wait. |

Module connection with CopterControl
The module is now set up and can be connected to the telemetry port of CopterControl.

The connection of the Bluetooth module with CopterControl is actually the same as the serial port module. Make sure that RX & TX are crossed and that Gnd & Pwr match.

If you want to extend the Bluetooth range by means of radio modules, such as the APC220 transceiver, you can connect the module like in the diagram below.

| Disconnect USB when using your Bluetooth connection When the USB port is connected, all the telemetry is routed through the USB port. You must disconnect the USB cable in order to use your telemetry. |

Step by step video by Dacat & Tom.
The video guides you through a complete configuration of a Bluetooth module. The configuration is done on a Macintosh.
CopterControl is used as a TTL converter; the firmware used and referred to in the video can be downloaded on the bottom of the Virtual Com Port page (NO_FSM_USB_To_Serial.bin).
The video is made by Dacat & Tom, more info can be found in the forums here & here.

FAQ's





