Laird BL652 User Manual

A
User Guide
BL652 Development Kit
Version 1.4
User Guide
Embedded Wireless Solutions Support Center: http://ews-support.lairdtech.com www.lairdtech.com/bluetooth
2
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
REVISION HISTORY
Version
Date
Notes
Approver
1.0
12 Aug 2016
Initial Release
Jonathan Kaye
1.1
19 Aug 2016
Updates to J12 and J6 pins
Raj Khatri
1.2
6 Sept 2016
Updates to nAutorun settings
Raj Khatri
1.3
14 Oct 2016
Updates to JTAG Signals and wiring
Raj Khatri
1.4
15 Nov 2016
Fixes to vSP (Virtual Serial Port) Modes and OTA
(Over the Air) smart BASIC Application Download
section.
Raj Khatri
User Guide
Embedded Wireless Solutions Support Center: http://ews-support.lairdtech.com www.lairdtech.com/bluetooth
3
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
CONTENTS
1 Overview ..............................................................................................................................................................5
2 Laird BL652 Development Kit Part Numbers .......................................................................................................5
3 Package Contents .................................................................................................................................................5
4 BL652 Development Kit – Main Development Board ..........................................................................................6
4.1 Key Features ............................................................................................................................................6
5 Understanding the Development Board ..............................................................................................................8
5.1 BL652 Default Configuration and Jumper Settings .............................................................................. 10
6 Functional Blocks .............................................................................................................................................. 11
6.1 Power Supply ....................................................................................................................................... 12
6.1.1 Additional Power Option (for BL652 only) – Coin Cell ......................................................... 13
6.2 Reset Button ........................................................................................................................................ 14
6.3 SWD (JTAG) Interface ........................................................................................................................... 14
6.4 Four-wire UART Serial Interface .......................................................................................................... 15
6.5 UART Mapping ..................................................................................................................................... 16
6.5.1 UART Interface Driven by USB ............................................................................................. 16
6.5.2 UART Interface Driven by External Source .......................................................................... 16
6.6 nAutoRUN Pin and Operating Modes .................................................................................................. 18
6.7 vSP (Virtual Serial Port) Modes and OTA (Over the Air) smart BASIC Application Download ............. 19
7 Software ............................................................................................................................................................ 20
8 Breakout Connector Pinouts ............................................................................................................................. 21
8.1 J40, J44, J29, J41, J1, J5 SIO (Special Input/Output Sockets) Breakout Connectors ............................ 21
8.2 Arduino Connector for Plugging in an Arduino Shields ....................................................................... 24
8.2.1 Analog Input Buffer and Attenuator Circuit (U3) ................................................................ 26
8.3 Additional Peripherals/Sensors ........................................................................................................... 27
8.3.1 Temperature Sensor ............................................................................................................ 27
8.3.2 I2C Sensor (RTC Chip) .......................................................................................................... 28
8.3.3 SPI Device EEPROM ............................................................................................................. 29
8.3.4 Push Button and LED Connected to BL652 .......................................................................... 30
8.3.5 NFC External Antenna Connector and NFC Antenna RF Matching Circuit .......................... 31
8.3.6 Optional External Serial SPI Flash IC .................................................................................... 32
8.3.7 Optional 32.76 kHz Crystal .................................................................................................. 33
9 Other Features .................................................................................................................................................. 34
User Guide
Embedded Wireless Solutions Support Center: http://ews-support.lairdtech.com www.lairdtech.com/bluetooth
4
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
9.1 Current Consumption Measurement ................................................................................................... 34
10 Appendix ........................................................................................................................................................... 36
10.1 Coin Cell Insertion ................................................................................................................................ 36
10.2 Coin Cell Removal ................................................................................................................................ 36
11 Additional Documentation ................................................................................................................................ 37
User Guide
Embedded Wireless Solutions Support Center: http://ews-support.lairdtech.com www.lairdtech.com/bluetooth
5
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
1 OVERVIEW
The Laird DVK-BL652 development kit provides a platform for rapid wireless connectivity prototyping, providing multiple options for the development of Bluetooth Low Energy (BLE) plus Near Field Communication (NFC) applications.
The Laird BLE development kit is designed to support the rapid development of applications and software for
the BL652 series of BLE modules featuring Laird’s innovative event driven programming language – smartBASIC. More information regarding this product series including a detailed module user’s guide and smartBASIC user
guides are available on Laird’s BL652 product page: http://www.lairdtech.com/products/bl652-ble-module
2 LAIRD BL652 DEVELOPMENT KIT PART NUMBERS
Part number: DVK-BL652-SA/DVK-BL652-SC
Applicable to the following BL652 module part numbers:
BL652-SA-xx Bluetooth Smart v4.2 + NFC module – integrated antenna featuring smartBASIC BL652-SC-xx Bluetooth Smart v4.2 + NFC module – external antenna featuring smartBASIC (FCC)
3 PACKAGE CONTENTS
All kits contain the following items:
Development Board
The development board has the required BL652 module soldered onto it and exposes all available hardware interfaces.
Power Options
USB cable – Type A to micro type B.
The cable also provides serial communications via the FTDI USB – RS232 converter chip on the development board.
DC barrel plug with clips for connection to external power supply (7-12Vdc) 3x AAA battery holder fitted on underside of development board Coin-cell holder (for powering BL652 module only, not the development
board) fitted on underside of development board
Two-pin jumpers for pin headers (5)
Five jumpers for 2.54 mm pitch headers used on DVK-BL652 development board.
Fly leads (6)
Supplied to allow simple connection of any BL652 module pin (available on Plated Though Holes on J29, J40, J41, J44, and headers J5, J36 to any Arduino pin (available on Plated Though Holes on J15, J16, J22, J23)
External BLE dipole antenna
External dipole antenna, 2 dBi, 2.4-2.5 GHz (Laird part #0600-00057) with integral RF coaxial cable with 100 mm length and IPEX-4 compatible RF connector.
NFC antenna
Supplied with the DVK-BL652-SC development board only. Laird NFC flexi-PCB antenna.
Web link card
Provides links to additional information including the BL652 user guide, firmware, terminal utilities, schematics, quick start guides, firmware release notes and more.
Note: Sample smartBASIC applications are available to download from the Laird
BL652 applications GitHub webpage
User Guide
Embedded Wireless Solutions Support Center: http://ews-support.lairdtech.com www.lairdtech.com/bluetooth
6
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
4 BL652 DEVELOPMENT KIT MAIN DEVELOPMENT BOARD
This section describes the BL652 development board hardware. The BL652 development board is delivered with the BL652 series module loaded with integrated smartBASIC runtime engine firmware. The development board comes with a preloaded sample smartBASIC application – $autorun$.devkit.sample.app.sb. This app can be accessed at the Laird GitHub repository at https://github.com/LairdCP/BL652-Applications. Use the BL652 Quick Start Guide for additional information. The guide is accessible from the following link:
www.lairdtech.com/BL652-Quick-Start
Note: By default, the module starts running the preloaded development board sample application
($autorun$.devkit.sample.app.sb) at power-up.
Applications in smartBASIC are simple and easy to develop for any BLE application. Sample smartBASIC applications scripts are available to download from the Laird GitHub repository on the BL652 product page at
https://github.com/LairdCP/BL652-Applications.
The BL652 development board is a universal development tool that highlights the capabilities of the BL652 module. The development kit is supplied in a default configuration which should be suitable for multiple experimentation options. It also offers a number of header connectors that help isolate on-board sensors and UART from the BL652 module to create different configurations. This allows you to test different operating scenarios. The development board also has support for plugging in 3rd party Arduino Shield boards.
The development board allows the BL652 series module to physically connect to a PC via the supplied USB cable for development purposes. The development board provides USB-to-Virtual COM port conversion through a FTDI chip – part number FT232R. Any Windows PC (XP or later) should auto-install the necessary drivers; if your PC cannot locate the drivers, you can download them from http://www.ftdichip.com/Drivers/VCP.htm
4.1 Key Features
The BL652 development board has the following features:
BL652 series module soldered onto the development board The following power supply options for powering the development board:
USB (micro-USB, type B) External DC supply (7-12V) AAA batteries (three AAA battery holder fitted on underside of development board)
Regulated 3.3V for powering the BL652 module. Optional regulated 1.8V for powering the BL652 module
via selection switch
Power supply option for coin-cell (CR2032) operation of the BL652 module ONLY (not development board) USB to UART bridge (FTDI chip) BL652 UART can be interfaced to:
USB (PC) using the USB-UART bridge (FTDI chip) External UART source (using IO break-out connectors J1 when the development board is powered
from a DC jack or AAA batteries)
Arduino connector by use of an analog switch to route the BL652 UART
Current measuring options (BL652 module only):
Pin header (Ammeter) Current shunt monitor IC (volt meter or oscilloscope) Series resistor for differential measurement (oscilloscope)
User Guide
Embedded Wireless Solutions Support Center: http://ews-support.lairdtech.com www.lairdtech.com/bluetooth
7
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
IO break-out 2.54 mm pitch pin header connectors (plated through-holes) that bring out all interfaces of
the BL652 module – UART, SPI, I2C, SIO [DIO or AIN (ADCs)], PWM, FREQ, NFC – and allow for plugging in external modules/sensors.
Pin headers jumpers that allow the on-board sensors(I2C sensor, LEDs, Arduino SPI interface, etc.; and the
USB UART FTDI bridge) to be disconnected from BL652 module (by removing jumpers).
Three on-board sensors:
Analog output temperature sensor I2C device (RTC chip) SPI device (EEPROM)
Two buttons and two LEDs for user interaction NFC antenna connector on-board development board for use with supplied flexi-PCB NFC antenna Optional external 32.768 kHz crystal oscillator. Not required for operation of the BL652; is disconnected by
open solder-bridges by default.
Optional external serial (SPI) flash IC. Not required for operation of the BL652; is disconnected by open
solder-bridges by default.
One analog buffer (provides a 3.3:1 attenuation) used when an analog source is at 5 volts into development
board.
Arduino connectors – Allow for plugging of Arduino shield boards.
Note: The DVK-BL652 development board is not an Arduino shield, but is an Arduino base board (similar to
the Arduino UNO).
Arduino connector test points – All Arduino connector signals brought out to plated through-holes (2.54
mm pitch). Allow any Arduino connector signal (D0-D13 or A0-A5) to be connected to any BL652 module using fly leads for maximum flexibility
Arduino connector signals wired to BL652 via headers or series resistors Arduino connectors orientation at 90 degrees to the development board long dimension, allowing larger
Arduino shields to hang off the side of development board so not interfering with the mounted external antenna or the BL652 module (the BLE chip antenna).
Access to BL652 JTAG – also known as Serial Wire Debug (SWD) Interface On-board SWD (JTAG) programmer circuitry smartBASIC runtime engine FW upgrade capability:
Via UART (using the FTDI USB-UART) Via SWD (JTAG) using on-board JTAG programmer circuitry on the DVK-BL652
smartBASIC application upgrade capability:
Via UART (using the FTDI USB-UART) Via OTA (Over-the-Air)
User Guide
Embedded Wireless Solutions Support Center: http://ews-support.lairdtech.com www.lairdtech.com/bluetooth
8
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
5 UNDERSTANDING THE DEVELOPMENT BOARD
Figure 1: Dev board contents and locations
J13 and J14
NFC Antenna
Connector CON2
J36
Optional Serial
SPI flash
DC Jack 7-12V Input CON1
Arduino connecters PTH Test Points J23 J16
Arduino connecters J33 J31
Arduino connecters J32 J30
Arduino connectors PTH Test Points J22
J14
SPI EEPROM
device
USB2 connector
USB-SWD interface
On-board SWD interface and programmer circuitry
J3 and J4
I2C device
U16
TP6 Current Measurement output of Current Shunt Monitor U7
J29 PTH
FTDI-FT232R
DC/USB
Power
Source
Switch
SW4
Header J12 for nAutoRUN
J35
J1 Header Plated
Through Holes
(PTH) for UART
J6
Temperature
Sensor
TP14 GND
Hook
SW3 nReset
Button
LED2 (J37)
LED1 (J26)
J11 Current
Measurement
J5 (VSP)
Optional
32.768 kHz
Crystal
J41 PTH
User Guide
Embedded Wireless Solutions Support Center: http://ews-support.lairdtech.com www.lairdtech.com/bluetooth
9
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
Figure 2: Development board DVK- BL652 (fitted with BL652-SA module for example)
User Guide
Embedded Wireless Solutions Support Center: http://ews-support.lairdtech.com www.lairdtech.com/bluetooth
10
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
5.1 BL652 Default Configuration and Jumper Settings
Important! To ensure correct out-of-the-box configuration, the BL652 development board must be set
according to Figure 3.
Figure 3: Correct DVK- BL652 development board jumper and switch settings
J12 Fit Jumper on Pins 2 & 3
SW5 Switch to 3v3
SW6 Switch to 3v3
TP14 Black Test Hook
J37 Fit Jumper
J26 Fit Jumper
J6 Jumper on Pins 1 & 2
J7 Fit
Jumper
J13 Fit
Jumper on
pins 2 &3
J14 Fit
Jumper on
pins 2 &3
J3 Fit
Jumper on
pins 1 & 2
J4 Fit
Jumper on
pins 1 & 2
SW4 Switch to USB
User Guide
Embedded Wireless Solutions Support Center: http://ews-support.lairdtech.com www.lairdtech.com/bluetooth
11
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
6 FUNCTIONAL BLOCKS
The BL652 development board is formed by the major functional blocks shown in Figure 4.
PSU Block and Current Measurement Block
Figure 4: DVK- BL652 block diagram
User Guide
Embedded Wireless Solutions Support Center: http://ews-support.lairdtech.com www.lairdtech.com/bluetooth
12
© Copyright 2016 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
6.1 Power Supply
Figure 5 shows the DVK- BL652 development board Power Supply block.
Figure 5: DVK-BL652 power supply
There are three options for powering the development board:
USB type micro-B connector (USB1) External DC supply (7-12V), into DC jack connector (CON1), AAA batteries – Three AAA battery holder (J25) fitted on underside of development board
The power source fed into the DC jack (CON1) (which is then regulated by a DCDC to 5V) or three AAA batteries (J25) is combined together through diodes (diode-OR) and fed to the selection switch SW4. SW4 selects the power source between either the USB or the DC jack (5V-regulated)/AAA.
The 5V from the USB or the 5V from DCDC output/AAA batteries is regulated down to 3.3 V with an on-board regulator (U6) on the development board.
The development board also has a 1.8V regulator allowing for the possibility to power the BL652 module from a
1.8V rail.
Switch SW5 selects between the regulated 3.3V and regulated 1.8V. Default position of SW5 is to select regulated 3.3V.
Table 1: Dev board power source and switch positions
Development Board Power Source
Switch Positions
SW4
SW5
SW6
USB (USB1)
Position USB
Position 3V3 always
Position 3V3/1V8 always
DC jack (CON1) or AAA battery (J7)
Position DC
Position 3V3 always
Position 3V3/1V8 always
USB (USB2) (Note 1)
Position USB
Position 3V3 always
Position 3V3/1V8 always
Note: The development board DVK-BL652 has on-board circuitry to allow access to BL652 SWD interface (via
USB connector USB2). Use USB2 only to power the development board when BL652 SWD interface is needed. Refer to SWD Interface. When USB2 is used, USB1 does not need to be used for DC power.
Loading...
+ 26 hidden pages