Sie sind auf Seite 1von 8

Arduino BT (Bluetooth)

Overview
The Arduino BT is a microcontroller board originally was based on the ATmega168, but now is supplied with the 328. (datasheet) and the Bluegiga WT11 bluetooth module (details and datasheet [pdf]). It supports wireless serial communication over bluetooth (but is not compatible with Bluetooth headsets or other audio devices). It has 14 digital input/output pins (of which 6 can be used as PWM outputs and one can be used to reset the WT11 module), 6 analog inputs, a 16 MHz crystal oscillator, screw terminals for power, an ICSP header, and a reset button. It contains everything needed to support the microcontroller and can be programmed wirelessly over the Bluetooth connection. Instructions are available for getting started with the Arduino BT.

Summary
Microcontroller ATmega328 Operating Voltage 5V Input Voltage 1.2-5.5 V Digital I/O Pins 14 (of which 6 provide PWM output) Analog Input Pins 6 DC Current per I/O Pin 40 mA DC Current for 3.3V Pin 50 mA Flash Memory 32 KB (of which 2 KB used by bootloader) SRAM 2 KB EEPROM 1 KB

Clock Speed

16 MHz

Schematic & Reference Design


Reference Design: arduino-bt-reference-design.zip Schematic: arduino_bt06.pdf

Power
The Arduino BT can be powered via the V+ and GND screw terminals. The board contains a DC-DC convector that allows it to be powered with as little as 1.2V, but a maximum of 5.5V. Higher voltages or reversed polarity in the power supply can damage or destroy the board. The power pins are as follows:

9V. The input voltage to the Arduino board (i.e. the same as the V+ screw terminal). You can supply voltage through this pin, or, if supplying voltage via the screw terminals, access it through this pin. Warning: despite the label, do not attach 9V to this pin. It will damage the board. 5V. This pin outputs a regulated 5V from the regulator on the board. The board can be supplied with power either from the DC power jack (7 - 12V), the USB connector (5V), or the VIN pin of the board (7-12V). Supplying voltage via the 5V or 3.3V pins bypasses the regulator, and can damage your board. We don't advise it. GND. Ground pins.

Memory
The ATmega328 has 32 KB of flash memory for storing code (of which 2 KB is used for the bootloader). It has 1 KB of SRAM and 512 bytes of EEPROM (which can be read and written with the EEPROM library).

Input and Output


Each of the 14 digital pins on the BT can be used as an input or output, using pinMode(), digitalWrite(), and digitalRead() functions. They operate at 5 volts. Each pin can provide or receive a maximum of 40 mA and has an internal pull-up resistor (disconnected by default) of 20-50 kOhms. In addition, some pins have specialized functions:

Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data. These pins are connected to the corresponding pins of the Bluegiga WT11 module. External Interrupts: 2 and 3. These pins can be configured to trigger an interrupt on a low value, a rising or falling edge, or a change in value. See the attachInterrupt() function for details.

PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the analogWrite() function. SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI communication, which, although provided by the underlying hardware, is not currently included in the Arduino language. BT Reset: 7. Connected to the reset line of the Bluegiga WT11 module, which is active high. LED: 13. There is a built-in LED connected to digital pin 13. When the pin is HIGH value, the LED is on, when the pin is LOW, it's off.

The BT has 6 analog inputs, each of which provide 10 bits of resolution (i.e. 1024 different values). By default they measure from ground to 5 volts, though is it possible to change the upper end of their range using the AREF pin and some low-level code. Additionally, some pins have specialized functionality:

I2C: 4 (SDA) and 5 (SCL). Support I2C (TWI) communication using the Wire library (documentation on the Wiring website).

There are a couple of other pins on the board:

AREF. Reference voltage for the analog inputs. Used with analogReference().

See also the mapping between Arduino pins and ATmega168/328 ports.

Bluetooth Communication
The Bluegiga WT11 module on the Arduino BT provides Bluetooth communication with computers, phones, and other Bluetooth devices. The WT11 communicates with the ATmega328 via serial (shared with the RX and TX pins on the board). It comes configured for 115200 baud communication. The module should be configurable and detectable by your operating system's bluetooth drivers, which should then provide a virtual com port for use by other applications. The Arduino software includes a serial monitor which allows simple textual data to be sent to and from the Arduino board over this bluetooth connection. The board can also be reprogrammed using this same wireless connection. The WT11 is specially configured for use in the Arduino BT. Its name is set to ARDUINOBT and passcode to 12345. For details, see the complete initialization sketch.

Communication
The Arduino BT has a number of other facilities for communicating. The ATmega328's UART TTL (5V) serial communication is available on digital pins 0 (RX) and 1 (TX) as well as being connected to the WT11 module. A SoftwareSerial library allows for serial communication on any of the BT's digital pins.

The ATmega328 also supports I2C (TWI) and SPI communication. The Arduino software includes a Wire library to simplify use of the I2C bus; see the documentation on the Wiring website for details. To use the SPI communication, please see the ATmega328 datasheet.

Programming
The Arduino BT can be programmed with the Arduino software (download). For details, see the reference and tutorials. The ATmega328 on the Arduino BT comes preburned with a bootloader that allows you to upload new code to it without the use of an external hardware programmer. It communicates using the original STK500 protocol (reference, C header files). You can also bypass the bootloader and program the ATmega328 through the ICSP (InCircuit Serial Programming) header; see these instructions for details.

Physical Characteristics
The maximum length and width of the BT are approximately 3.2 and 2.1 inches respectively. Three screw holes allow the board to be attached to a surface or case. Note that the distance between digital pins 7 and 8 is 160 mil (0.16"), not an even multiple of the 100 mil spacing of the other pins.

14/07/11

WT11i Bluetooth Class 1 Module

Key Features
Bluetooth v.2.1 + EDR, class 1 Radio performance - Transmit power : +17 dBm - Receiver sensitivity: -86 dBm Integrated iWRAP Bluetooth stack - 14 integrated Bluetooth profiles - Simple ASCII based host protocol Standard HCI over UART or USB Industrial temperature range: -40C to +85C Bluetooth end product, CE, FCC and IC qualified

Description
WT11i is a fully integrated Bluetooth 2.1 + EDR, class 1 module combining antenna, Bluetooth radio and an on-board Bluetooth stack. The WT11i module utilizes Bluegigas latest generation RF technology and provides better performance than Bluegigas previous class 1 Bluetooth module WT11. For OEMs WT11i offers trouble free Bluetooth integration for applications where the best performance is needed and it is a drop-in performance upgrade for designs where WT11 is already used. WT11i comes with Bluegigas iWRAP firmware offering the users simple software integration without the need of Bluetooth protocol or profile development.

WT11i with integrated chip antenna and HCI USB 2.0 + EDR WT11i-A-HCI

Target Markets
M2M Industrial Healthcare and medical Point-of-sale Automotive

Benefits
Fully integrated solution - Lower cost - Faster time to market Good radio performance - Long range and robust connections - Programmable TX power Bluetooth qualified - Proven interoperability - No qualification costs WT11 compatible - Drop-in upgrade for WT11 based designs Information subject to changes

Target Applications
RFID and bar code scanners Point-of-sale terminals Industrial PCs and PDAs Medical device gateways Industrial sensors and collectors

14/07/11

TECHNICAL DATA Hardware


Interfaces - 1 x UART, flow control, 3Mbps (host interface) - 1 x USB 2.0 device (host interface) - 1 x SPI (Programming/debugging interface) - 1 x 8-bit AIO - 6 x GPIO - 1 x PCM (audio interface) Power supply: 3.3V Internal antenna or 50 OHM RF pin Dimensions: 35.8 x 14.5 x 2.3mm Surface mount Processor core: 16-bit XAP2

Product Codes
WT11i with integrated chip antenna and iWRAP4 WT11i-A-AI4 WT11i with USB and HCI 2.1 + EDR WT11i-A-HCI21 WT11i with integrated chip antenna and iWRAP HDP WT11i-A-eHealth WT11i with integrated chip antenna and IEEE manager WT11i-A-mgr 2738

Evaluation Tools
WT11i Evaluation Board EBWT11i

Certifications
Bluetooth 2.1 + EDR CE (EN300328, EN300489) FCC Industry Canada

Firmware
iWRAP firmware includes all relevant Bluetooth profiles and simple control interface to access the Bluetooth functionality Standard HCI over UART/USB available Possibility to develop custom firmware

Information subject to changes

For more information about Bluegiga Technologies, please contact: Bluegiga Technologies Oy Sinikalliontie 5 A 02630 Espoo, Finland Phone: +358 9 435 50 60 Fax: +358 9 435 50 660 www.bluegiga.com sales@bluegiga.com

Bluegiga Technologies 2000-2011. Bluegiga Technologies takes no responsibility for any mistakes that might appear in this document. It reserves the right to change devices, software or specifications detailed here at any time without notice, and does not make any commitment to update the information contained here. Bluegiga products are not authorised for any use as critical components in life support devices or systems. Bluegiga Access Server, Access Point, AX4, BSM, iWRAP and WRAP THOR are trademarks of Bluegiga Technologies. The Bluetooth trademark and logo are registered trademarks and are owned by the Bluetooth SIG, Inc.

Bluetooth

BR/EDR module comparison chart


WT12 WT11i WT41 WT21 WT32

Bluetooth Version Low energy support BR/EDR support Radio Typical TX power Typical RX sensitivity Class Typical range Antenna options Integrated chip Integrated meander line U.FL 50ohm pin Interfaces UART USB SPI (debugging) GPIO AIO Audio Interfaces PCM I2S SPDIF Analogue Microcontroller Architecture RAM Flash Current consumption TX RX Deep Sleep Operating voltage Operating voltage Copper plated edges No

Bluetooth 2.1 + EDR Yes +3 dBm -83 dBm 2 30-50m Yes Yes 1 2.0 device 1 6 configurable 1 16-bit RISC (XAP2) 48 kB 8 Mbit 2.6 - 3.6V Yes

Bluetooth 2.1 + EDR Yes +17 dBm -85 dBm 1 200-400m Yes Yes Yes 1 2.0 device 1 6 configurable 1 x 8-bit 1 16-bit RISC (XAP2) 48 kB 8 Mbit 2.6 - 3.6V Yes

Bluetooth 2.1 + EDR Yes + 19 dBm -93 dBm 1 500-1000m Yes Yes Yes 1 2.0 device 1 6 configurable 1 x 8-bit 1 16-bit RISC (XAP2) 48 kB 8 Mbit 2.6 - 3.6V Yes

Bluetooth 2.1 + EDR Yes + 7 dBm -88 dBm 1.5 100-200m Yes Yes 1 1 7 1 1 1 16-bit RISC (XAP2) 48 kB 1.8 - 3.6V Yes

Bluetooth 2.1 + EDR Yes +7 dBm - 88 dBm 1.5 30-60m Yes Yes (W.FL) Yes 1 2.0 device 1 10 configurable 2 x 10-bit 1 1 1 2 inputs/outputs
02 / 2012 - Information subject to changes

16-bit RISC (XAP2) 48 kB 8 Mbit 1.8 - 3.6V Yes

Bluetooth

BR/EDR module comparison chart


WT12
2.1 + EDR Yes Yes 1-7 ASCII commands / HCI Over UART/USB Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes CSR BlueLab Available Mass Production

Bluetooth stack features

WT11i
2.1 + EDR Yes Yes 1-7 ASCII commands / HCI Over UART/USB Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes CSR BlueLab Available Mass Production WT11i-E sampling Yes Yes Yes Yes 35,8 x 14,5 x 2,3 mm

WT41
2.1 + EDR Yes Yes 1-7 ASCII commands / HCI Over UART/USB Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes CSR BlueLab Available Mass Production

WT21
2.1 + EDR HCI only Stack dependent 1-7 HCI Over UART/SDIO/CSPI Available Mass Production

WT32
2.1 + EDR Yes Yes 1-7 ASCII commands Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes CSR BlueLab Available Mass Production

Version Integrated Bluetooth stack Security Simple Pairing Connections Host API HCI interface Supported profiles SPP OBEX OPP OBEX FTP DUN HID A2DP AVRCP HFP v.1.5 HSP PBAP HDP DI Apple iAP support Over-the-Air configuration* BGIO* Software development On-board applications Software development service SDK/IDE Evaluation kits Availability Production Status WT11i-E sampling Certifications Bluetooth CE FCC IC Dimensions Dimensions (W x L) Bluetooth branding *) Bluegiga proprietary

Yes Yes Yes Yes 26 x 14 x 2,4 mm

Yes Yes Yes Yes 35 x 14 x 3,5 mm

Yes Yes Yes Yes 17,1 x 11,6 x 2,6 mm

Yes Yes Yes Yes 24 x 16 x 0,3 mm