Professional Documents
Culture Documents
Introduction to BLE
System Design
BLE = Bluetooth Low Energy
PSoC = Programmable System-on-Chip
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop
Rev 0-PRERELEASE 1/9/15
Workshop Objectives
By the end of this workshop, you will
Learn how to create low-power, sensor-based systems for the Internet of Things (IoT)
Understand the BLE architecture
Understand the PSoC 4 BLE solution
Learn how to use PSoC 4 BLE and its development environment to implement:
BLE connections with PSoC 4 BLE
One-chip, sensor-based, system designs with BLE connectivity
One-chip, CapSense touch-sensing user interface designs with BLE connectivity
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 2
Rev 0 1/9/15
Workshop Agenda
Time Page Topic
0:15 (15 min) 4 Set Up and Install Software
0:30 (15 min) 5 BLE and PSoC Terms
1:15 (45 min) 9 PSoC 4 BLE Introduction
1:30 (15 min) 22 Lab #1: Blinking LED
2:15 (45 min) 24 BLE Architecture and Solution Overview
3:00 (45 min) 33 Lab #2: Setting Up a BLE Connection
3:15 (15 min) 35 Session Break
3:45 (30 min) 36 PSoC Programmable Technologies
4:15 (30 min) 45 Lab #3: Sensor-Based System Design with BLE Connectivity
4:30 (15 min) 47 User Interface
5:00 (30 min) 52 Lab #4: CapSense Design with BLE Connectivity
5:30 (30min) 54 PSoC 4 BLE Portfolio and Example Applications
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 3
Rev 0 1/9/15
Setup and Install Software
Required Software
Copy the contents of the provided USB drive onto your laptop and launch the following software installers.
Follow the on-screen instructions to complete the installation. This will take approximately 15 minutes.
Note
You can alternatively use the bundled installer, which includes three of the above software tools (PSoC Creator,
CySmart and BLE Pioneer Kit). This bundled installer file is named CY8CKIT042BLEKITSetup_RevSA.exe
Required Hardware:
BLE Pioneer Kit2 (CY8CKIT-042-BLE)
Bluetooth 4.0
An upgraded Bluetooth Classic specification that adds BLE
Bluetooth Smart Ready
Bluetooth 4.1 Product
An enhanced Bluetooth 4.0 specification, adopted in Dec. 2013
Includes improved security, lower power and higher throughput3 Bluetooth Classic
Product
Bluetooth Smart
Audio
A brand for Bluetooth 4.0/4.1 products that support only BLE Streaming
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 5
Rev 0 1/9/15
Terms You Will Hear Today
Analog Front End (AFE)
An analog signal conditioning circuit that uses opamps, filters and comparators to interface to an ADC
Balun
An electrical device that converts a differential RF signal to a single-ended signal or vice-versa
CySmart
A GUI-based software tool that installs on your PC to test and debug BLE functionality
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 6
Rev 0 1/9/15
PSoC Terms
75+ Components
PSoC Creator available
PSoC 3, PSoC 4 and PSoC 5LP Integrated Design Environment (IDE)
Software that installs on your PC that allows:
Concurrent hardware and firmware design of PSoC systems, or
Hardware design followed by export to popular IDEs
Components
Free embedded ICs represented by an icon in PSoC Creator software
Used to integrate multiple ICs and system interfaces into one PSoC
Dragged and dropped as icons to design systems in PSoC Creator
Inherently connected to the MCU via the main system bus
The BLE Component creates Bluetooth Smart products in minutes BLE Component creates Programmable Analog
Bluetooth Smart products Components create sensor
The Programmable Analog Components are used for sensors interfaces
Component Component Configuration Tool
Component Configuration Tools
Simple graphical user interfaces in PSoC Creator
Embedded in each Component
Used to customize Component parameters
Accessed by right-clicking a Component BLE Component Icon
PSoC 4 BLE
A PSoC 4 IC with an integrated BLE radio
BLE Component Configuration Tool
Includes a royalty-free BLE Protocol Stack compatible with Bluetooth 4.1
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 7
Rev 0 1/9/15
PSoC Terms
CapSense
Cypresss touch-sensing user interface solution
The industrys No. 1 solution in sales by 4x over No. 2
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 9
Rev 0 1/9/15
The Internet of Things Revolution
The Internet of Things (IoT) is now a commercial reality
The IoT is how everyday physical objects are connected to the Internet
e.g., a thermostat is adjusted by a cell phone
Six billion everyday physical objects will be connected to the IoT by 20201
1 Cisco CEO John Chambers speaking at the 2014 Mobile World Congress trade show
2 ABI Research
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 10
Rev 0 1/9/15
Design Problem 1
Designing systems with multiple ICs increases BOM cost
Sensor-based systems require sensor AFEs, digital control logic, a BLE radio and an MCU
Sophisticated user interfaces require additional touch or display ICs
1 Digikey 1ku cost as of June 2014. See Appendix slide #68 for details on part numbers for each IC in this example BOM.
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 11
Rev 0 1/9/15
Design Problem 2
Achieving low system power is difficult
Wireless systems often operate from coin cell or small LiPo1 batteries
Optimizing system power requires careful use of low-power modes
Battery Drain Is a Big Problem in Wearable Using Low-Power Modes and Configuring the BLE Connection Interval
Electronics Can Reduce System Power
D 20
18.7
16.5 18C
Average current Stage Power Mode Activity
16
consumption for
A Active Oscillator Startup
14 connection interval of
B Sleep Oscillator Startup
Current (mA)
12 1 sec = 18.9 A
C Sleep RF Transmit
10
D Sleep RF Receive
8
E Active BLE Stack
A 6 E Processing
4.8 B
4 F Deep-Sleep WCO On
2
F
~
~
0
0 1,000 2,000 3,000 4,000 999,000 1,000,000
Time (s)
Consumers demand IoT products with long Designing a BLE system with optimized sleep and active power modes to reduce system
battery life power consumption is difficult
1A rechargeable battery of lithium-ion polymer technology, nominally rated at 3.3 V and packaged in small, soft pouches
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 12
Rev 0 1/9/15
Design Problem 3
Designing wireless sensor-based systems for the IoT is difficult
RF board design is complicated
Designing wireless sensor-based systems requires engineers to work with design tools from multiple IC vendors
Wireless specs require complex firmware development (e.g., the BLE Protocol Stack)
L1
2 nH
C1 C2
18 pF 1 pF
L2 L3 To Antenna (50 )
Ant 2 or
Ant 1 1 nH 3 nH SMA (50 )
C3 L4
C5
1 pF
18 pF 2 nH
C4
1 pF
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 13
Rev 0 1/9/15
PSoC 4 BLE One-Chip Solution
PSoC 4 BLE solves these problems by:
1. Integrating programmable AFEs and digital logic, CapSense and an ARM Cortex-M0 CPU with a BLE radio
2. Delivering five flexible, easy-to-use, low-power modes
3a. Simplifying RF board design by integrating the Balun
3b. Enabling complete system design in PSoC Creator
3c. Simplifying the BLE Protocol Stack and BLE Profile configuration with the easy-to-use BLE Component
AFE ICs + BLE MCU + BLE Stack Complete BLE System Design in PSoC Creator PSoC 4 BLE One-Chip Solution
Instrumentation Dual-Channel
Amplifier Opamp
VREF_IN
SARADC
Opamp1 Opamp2 Opamp4
VREF
Electrode1
VREF_IN2
Integrate AFEs, digital logic, And complete your system design easily using To create your PSoC 4 BLE
CapSense and an ARM Cortex-M0 PSoC Creator and PSoC Components one-chip solution for the IoT
with a BLE radio
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 14
Rev 0 1/9/15
1. PSoC 4 BLE Integrates Programmable
AFEs, Digital Logic and CapSense
Applications Block Diagram
Sports and fitness monitors, wearable electronics, medical devices,
home automation solutions, game controllers, sensor-based PSoC 4 BLE
low-power systems for IoT MCU Subsystem Programmable Analog I/O Subsystem
Blocks
GPIO x8
Collateral Availability
Preliminary Datasheet: PSoC 4 BLE Datasheet Sampling: Now
Production: 128KB Now, 256KB Q2 2015
1 Successive approximation register 3 Timer, counter, pulse-width modulator; configurable as 16-bit timer, counter, pulse-width modulator blocks
2 Universal Digital Block 4 Serial communication block configurable as I2C/SPI/UART
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 15
Rev 0 1/9/15
2. PSoC 4 BLE Enables Low-Power
Wireless Systems
Digital Analog Clock
Current Code Wake-Up Wake-Up
Power Mode Peripherals Peripherals Sources
Consumption Execution Sources Time
Available Available Available
Active 1.7 mA @ 3 MHz Yes All All All - -
Sleep 1.3 mA No All All All Any interrupt source 0
1 2
WDT , LCD , Comparator,
WCO6, Comparator, GPIO8,
Deep-Sleep 1.3 A No I2C/SPI, Opamps, 25 s
32-kHz ILO7 WDT, SCB9
Link-Layer3 POR4, BOD5
Comparator,
Hibernate 150 nA No No No Comparator, GPIO 2 ms
POR, BOD
Wake-Up pin,
Stop 60 nA No No No No 2 ms
XRES10
PSoC 4 BLE Current Consumption
PSoC 4 BLE has best-in-class low-power modes
Consumes lowest current in Stop mode with I/O 20 C
retention 18 D
Average current
16 Stage Power Mode Activity
Retains SRAM data in Hibernate mode 14
consumption for
connection interval of
A Active Oscillator Startup
B Sleep Oscillator Startup
Current (mA)
1 sec = 18.9 A
Retains complete system status in Deep-Sleep mode 12
C Sleep RF Transmit
10
Provides APIs to switch easily between power modes 8
D Sleep RF Receive
E Active BLE Stack
Consumes avg. 18.9-A for a 1-sec connection interval 6 A
B
E Processing
4 F Deep-Sleep WCO On
2
F
~
~
0
0 1,000 2,000 3,000 4,000 999,000 1,000,000
Time (s)
C1 18 pF 1 pF
1.2 pF L1 C2 C4
RFP L2 L3
Ant 4.7 nH 1.0 pF 1.5 pF RFP
RFN
RFN 1 nH 3 nH
VDD_PA
L2 C3 L4
L1 10 nH C5
6.8 nH 18 pF 2 nH 1 pF
C1
2.2 nF C4
1 pF
The PSoC 4 BLE integrated Balun simplifies RF board design and reduces PCB footprint
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 17
Rev 0 1/9/15
3b. PSoC Creator Enables Complete
System Design
BLE Heart Rate Monitor (HRM) Example Project With a Custom AFE Shown in PSoC Creator
1. Explore the library of 75+
Components
3. Configure Components
using the Component
Configuration Tools
4. Access Component
datasheets directly from the
Component Configuration
Tools
The BLE Component Configuration Tool simplifies the BLE Protocol Stack and Profile configuration
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 19
Rev 0 1/9/15
BLE Pioneer Kit
The $49 BLE Pioneer Kit (CY8CKIT-042-BLE) contains: BLE Pioneer Kit Baseboard with
PSoC 4 BLE Module
BLE Pioneer Kit Baseboard
Provides access to all PSoC 4 BLE GPIOs
Is compatible with Arduino and Digilent Pmod hardware ecosystems
Features onboard CapSense slider, RGB LED, push buttons and Cypress F-RAM
Includes PSoC 5LP for program and debug
Supports 1.9 V, 3.3 V or 5 V, including coin cell battery operation
Enables a PC to act as the BLE host for developing and debugging BLE peripherals
Features an onboard LED, push button and PSoC 5LP for program and debug
Example Projects
Demonstrate how to use PSoC Creator to implement common BLE Profiles, such Example Android and iOS Apps
as Heart Rate Monitor (HRM), Glucose Meter and Human Interface Device (HID)
Include iOS and Android mobile apps with full source code
1 Electronicproducts manufactured or sold in the U.S. certifying that its electromagnetic interference
is under limits defined by the Federal Communications Commission (FCC)
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 20
Rev 0 1/9/15
BLE Pioneer Kit Baseboard and
PSoC 4 BLE Module
BLE Pioneer Kit Baseboard PSoC 4 BLE Module
USB BLE
Connector Reset
(J13) Button
Proximity
Header
(J14)
PSoC 5LP I/O Push
Header (J8) Button
Diligent
Pmod
Compatible I/O
Header
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 21
Rev 0 1/9/15
Introduction to BLE System Design
LAB 1: BLINKING LED
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 22
Rev 0 1/9/15
Lab 1: Blinking LED
Objectives
Learn how to use PSoC Creator to implement and debug PSoC designs
Implement a simple blinking LED design
Software tools
PSoC Creator
New Component
Pin (digital output)
Lab 1: Block Diagram
PSoC 4 BLE
U
PSoC 5LP S PSoC Creator
Serial Wire Debug (SWD) B Program and
Debug
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 24
Rev 0 1/9/15
BLE Software Architecture
Display
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 25
Rev 0 1/9/15
BLE Software Stack
The BLE software stack has three parts: APPLICATION Profile: HID, HRM, Glucose Meter, etc.
Application: Firmware for a functional use case utilizing Generic Attribute Profile (GATT)
the Host and the Controller to implement product-specific HOST Attribute Protocol (ATT) Security Manager (SM)
1 The BLE Architecture terms required for todays labs are explained in the following slides. Refer to the Appendix for definitions of all other BLE architecture terms.
2 Firmware implementing the Bluetooth 4.0/4.1 specification to provide BLE communication
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 26
Rev 0 1/9/15
PHY: Physical Layer
APPLICATION Profile: HID, HRM, Glucose Meter, etc.
2.4-GHz ISM band
Generic Access Profile (GAP)
1-Mbps data rate, GFSK modulation
Generic Attribute Profile (GATT)
40 RF channels (3 for advertising, 37 for data)
HOST Attribute Protocol (ATT) Security Manager (SM)
2-MHz channel spacing Logical Link Control and Adaption Protocol
Minimum output power: 0.01 mW (L2CAP)
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 27
Rev 0 1/9/15
LL: Link Layer
Establishes and maintains a reliable physical link APPLICATION Profile: HID, HRM, Glucose Meter, etc.
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 28
Rev 0 1/9/15
BLE Link Layer Topology
SLAVE
ADVERTISER
CONNECTION ADVERTISER
INITIATING
MASTER
ADVERTISING
SCANNER
SLAVE
ADVERTISER
ADVERTISER
STANDBY
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 29
Rev 0 1/9/15
LL: Link Layer
APPLICATION Profile: HID, HRM, Glucose Meter, etc.
By BLE spec, devices may have multiple link layer instances
Generic Access Profile (GAP)
Requires hardware support in specific BLE device silicon
Generic Attribute Profile (GATT)
BLE device can be master or slave but not both
HOST Attribute Protocol (ATT) Security Manager (SM)
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 30
Rev 0 1/9/15
Host Controller Interface Layer
APPLICATION Profile: HID, HRM, Glucose Meter, etc.
Packet based interface between host and controller
Generic Access Profile (GAP)
Three types of packets
Generic Attribute Profile (GATT)
Command: Host initiated. Handles setup, control,
HOST Attribute Protocol (ATT) Security Manager (SM)
configuration, discovery and security
Logical Link Control and Adaption Protocol
Event: Controller initiated. Reports events, status, errors (L2CAP)
Data: Host or controller initiated. Data for commands or Host Control Interface (HCI)
HOST
COMMAND
DATA
EVENT
DATA
CONTROLLER
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 31
Rev 0 1/9/15
L2CAP:
Logical Link Control and Adaption Protocol Layer
APPLICATION Profile: HID, HRM, Glucose Meter, etc.
Provides Logical channels to higher layer protocols
Generic Access Profile (GAP)
Protocol multiplexer
Generic Attribute Profile (GATT)
Fragmentation and reassembly
HOST Attribute Protocol (ATT) Security Manager (SM)
All host & application data is sent using L2CAP packets Logical Link Control and Adaption Protocol
CIDs identify logical channels (fixed and dynamic) (L2CAP)
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 32
Rev 0 1/9/15
SM: Security Manager Layer
APPLICATION Profile: HID, HRM, Glucose Meter, etc.
Security Manager Goals
Passive eavesdropping protection Generic Access Profile (GAP)
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 33
Rev 0 1/9/15
SM: Security Manager Layer
APPLICATION Profile: HID, HRM, Glucose Meter, etc.
RFC3610 based AES-128 encryption (in hardware on PSOC)
Generic Access Profile (GAP)
Counter mode cipher
Generic Attribute Profile (GATT)
Block chaining message authentication code
HOST Attribute Protocol (ATT) Security Manager (SM)
Each new data packet has Message Integrity Check (MIC) Logical Link Control and Adaption Protocol
MIC is separate from CRC (L2CAP)
Packet only sent to host after MIC is checked Host Control Interface (HCI)
LE Privacy Makes it difficult for an attacker to track a device over a period of time
Every 15 minutes, the device changes its address to a new random value
MAC = AES(CSRK, plaintext, 64), i.e. MAC is encrypted
Connection occurs with this resolvable private address
Requires key to generate / resolve address
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 34
Rev 0 1/9/15
ATT: Attribute Protocol Layer
Exposes data using typed, addressable attributes APPLICATION Profile: HID, HRM, Glucose Meter, etc.
Some devices have data, others want data Host Control Interface (HCI)
Example Attributes
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 35
Rev 0 1/9/15
ATT: Attribute Protocol Layer
BLE is CLIENT SERVER architecture at ATT protocol layer APPLICATION Profile: HID, HRM, Glucose Meter, etc.
REQUEST SERVER
RESPONSE
Client can only send one Request at a time
Request completes after client receives Response
ATTRIB 1
INDICATION (ATT CHANGE)
Server can only send one indication at a time
CLIENT CONFIRMATION
ATTRIB 2
Indication complete when server receives Confirmation
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 36
Rev 0 1/9/15
GATT: Generic Attribute Profile Layer
Implements Server Services and Client Use Cases APPLICATION Profile: HID, HRM, Glucose Meter, etc.
CONFIRMATION
SERVICE N
COMMAND (NO RESP)
CHAR 1
Characteristic Format Typical Characteristic
CHAR N
NOTIFICATION (NO CMD)
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 37
Rev 0 1/9/15
GAP: Generic Access Profile Layer
APPLICATION Profile: HID, HRM, Glucose Meter, etc.
GAP layer defines profile roles and procedures for
Generic Access Profile (GAP)
Bonding
Generic Attribute Profile (GATT)
Discovering capabilities
HOST Attribute Protocol (ATT) Security Manager (SM)
Exchanging security information
Logical Link Control and Adaption Protocol
Establishing connections (L2CAP)
Resolving addresses Host Control Interface (HCI)
Defines advertising and scan response data formats Link Layer (LL) Direct Test Mode (DM)
CONTROLLER
Physical Layer (PHY)
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 38
Rev 0 1/9/15
BLE Application
APPLICATION Profile: HID, HRM, Glucose Meter, etc.
BLE Application is defined as a set of Use Cases
Generic Access Profile (GAP)
Use Cases use Services on Server Generic Attribute Profile (GATT)
Services expose Characteristics HOST Attribute Protocol (ATT) Security Manager (SM)
CONFIRMATION
Use Case
2
SERVICE N
COMMAND (NO RESP)
APPLICATION CHAR 1
CHAR N
NOTIFICATION (NO CMD)
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 39
Rev 0 1/9/15
Example BLE Application
Heart Rate Monitor
A Bluetooth Smart-Ready mobile phone (supporting BLE + Bluetooth Classic) is paired with a Bluetooth Smart
fitness monitor (supporting BLE only)
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 40
Rev 0 1/9/15
BLE Component Overview
Open the BLE Component Configuration Tool to review1
Open Lab 1 and add the BLE Component to the design
Right-click the BLE Component and open the Component Configuration Tool
CySmart supports:
Scanning and connecting to advertising BLE devices
Pairing and bonding with connected BLE devices
Accessing the GATT database of the connected BLE device
Reading and writing to characteristics of connected BLE devices
PSoC 4 BLE Test and Debug Setup with CySmart and PSoC Creator
BLE Connection Between the BLE USB Dongle
and the BLE Pioneer Kit
PC
U U
CySmart
S PSoC Creator S
Software Tool
B B
BLE USB Dongle
Wiggle Antenna
PRoC BLE
CYBL10162-56LQXI
Reset Button
Programming Header
User Button
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 44
Rev 0 1/9/15
BLE Lab 2: Setup a BLE Connection
Objectives
BLE Component Icon
Learn how to use the BLE Component
Implement a standard Find Me Profile with the Immediate Alert Service (IAS)
Learn how to use the CySmart tool to debug BLE designs
Software tools
PSoC Creator
CySmart
New Components
BLE Lab 2: Block Diagram
TCPWM
BLE Pioneer Kit PC
PSoC 4 BLE
BLE BLE USB Dongle
ARM Connection
BLE
Cortex-M0
Pin CySmart
TCPWM Blue LED Software Tool
P3[7]1
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 46
Rev 0 1/9/15
Introduction to BLE System Design
PSoC PROGRAMMABLE TECHNOLOGIES
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 47
Rev 0 1/9/15
Programmable Analog Blocks
PSoC 4 BLE Programmable Analog Blocks consist of
One 12-bit 1-Msps SAR1 ADC
Two low-power comparators (operational in Deep-Sleep mode)
Four high-performance opamps (operational in Deep-Sleep mode)
Two IDACs
One on-chip temperature sensor
One 1- to 36-channel analog multiplexer (AMUX) that can be flexibly configured to create custom AFE designs
ADC + Opamps + AMUX ICs PSoC 4 BLE Programmable Analog Blocks Custom AFE Design in PSoC Creator
Programmable Analog Blocks
CTBm
Op Op AMUX
amp amp
AMUX
CapSense
CMP CMP 8-bit 7-bit
IDAC IDAC A Dynamic Gain Switching Amplifier implemented in
PSoC Creator using the PSoC 4 BLE opamp,
analog muxes and SAR1 ADC
Programmable Analog Blocks can be flexibly configured to create custom AFEs for sensor
interfaces
1 Successive approximation register
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 48
Rev 0 1/9/15
Sequencing SAR ADC Block
Sequencing SAR ADC PSoC 4 BLE SAR ADC Block As Viewed in PSoC Creator
12-bit successive approximation register (SAR) ADC
SARMUX
Sample rate up to 1-Msps
Wide operation from 1.71-5.5 V
Selectable SAR ADC input sources
External pins
Analog bus
Temperature sensor
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 49
Rev 0 1/9/15
Continuous Time Block (CTBm)
The PSoC 4 BLE CTBm consists of: PSoC 4 BLE Continuous Time Block (CTBm) As Viewed in PSoC Creator
CTBm
Port2 Port1
Four opamps
AMUXBUS A
User-programmed modes for speed and power AMUXBUS B
Port0
Functional in Deep-Sleep modes
Rail-to-rail inputs and output Comparator
1- or 10-mA output current drive
6-MHz gain bandwidth
6-V/s slew rate
The CTBm features flexible routing between the opamps, comparators and the
analog-mux bus
Two low-power comparators
User-programmed modes for speed and power
1 s at 250 A (typical)
400 ns at 300 A (typical)
150 ns at 1 mA (typical)
Functional in Deep Sleep and Hibernate modes
Available as wake-up source in either mode
Low input offset voltage < 4 mV
The PSoC 4 BLE CTBm enables the design of custom AFEs without requiring external ICs
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 50
Rev 0 1/9/15
Programmable Digital Blocks
Create custom digital peripherals for your application
PSoC Creator Components integrate 75+ digital functions into a one-chip PSoC solution
PSoC Creator digital Components are dragged and dropped as icons to create custom digital logic solutions
PSoC Creator provides Component Configuration Tools to simplify parameter configurations with a graphical
user interface
4 examples of
communication
interface
functions that
can be
7 examples of glue logic implemented in
functions that can be SCBs
implemented in UDBs
Programmable Digital Blocks can be configured flexibly for control and communication
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 51
Rev 0 1/9/15
Universal Digital Block
Four Universal Digital Blocks (UDB) Universal Digital Block (UDB)
PLD Chaining
Fully Programmable Digital Block PLD PLD
Two 12C4 PLDs and programmable data path Clock and 12C4 12C4
Reset (8 PTs) (8 PTs)
Digital routing connection to the systems Advanced High-Performance Control
Bus (AHB)
Create additional digital peripherals: Timer, PWM, I2C, SPI, I2S1, etc. Status and
Control Datapath
Datapath
Chaining
Build custom logic and non-standard interfaces
Custom communication protocols
Digital Routing to the System AHB
Patches to standard protocols
Example: Optical Audio Cable
Build unique and differentiated functions
S/PDIF, SGPIO controller, voltage sequencer, etc.
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 53
Rev 0 1/9/15
Timer/Counter/PWM Block
Four Timer/Counter/PWM Blocks (TCPWM)
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 54
Rev 0 1/9/15
Sensor-Based IoT System Design
Programmable architecture offers unique advantages for sensor-based IoT system design
Reduces power consumption for battery-operated applications by offloading CPU tasks to the UDBs
Creates custom digital peripherals using UDBs (e.g., below, a custom I2C wake-up from an accelerometer)
Reconfigures blocks during operation to create multiple functions
Allows any pin to be used as an analog or digital I/O with on-chip multiplexers
Actual PSoC Creator Complete IoT System Design (Complete Production Design) 1
HRM Input
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 56
Rev 0 1/9/15
Lab 3: Sensor-Based System Design
with BLE Connectivity
Objectives
SAR ADC Component
Measure simulated heart rate using the Programmable Analog Blocks
Implement a Heart Rate Monitor Profile and send the data over BLE
Optimize the design for low power consumption
Software tool
PSoC Creator
CySmart
New Components
SAR ADC
Opamp Lab 3: Block Diagram
BLE Pioneer Kit PC
PSoC 4 BLE
Pin Blue
P3[7]1 LED CySmart
Software Tool
Pin Green
P3[6]2 LED
1 Represents the logical pin placement at Port 3, Pin 7 in PSoC Creator 2 Represents the logical pin placement at Port 3, Pin 6 in PSoC Creator
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 57
Rev 0 1/9/15
Introduction to BLE System Design
USER INTERFACE
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 58
Rev 0 1/9/15
Segment LCD Control Block
Direct-drive Segment LCD Controller Segment LCD Component Configuration Tool
Up to 4 commons and 32 segments
LG Chocolate Mobile Phone Whirlpool Dishwasher HP TouchSmart Printer Microsoft Arc Touch Mouse Samsung Galaxy Note 3
Cypresss R&D delivers CapSense algorithms offer SmartSense Auto-tuning: no CapSense Express configurable One billionth CapSense
cellphone CapSense buttons water tolerance and proximity manual tuning, high noise solutions-no firmware chip with stylus-activated
sensing immunity buttons
CapSense is industrys No. 1 solution, 4x in sales over No. 2 CapSense Component Configuration Tool
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 60
Rev 0 1/9/15
CapSense Touch Sensing
CapSense replaces mechanical buttons
A capacitive sensor is used to measure the change in capacitance between a pin and ground
CapSense algorithms and analog circuitry convert the measured capacitance to a raw count
A finger touch increases the capacitance of the system, which in turn increases the raw count
An increase in the raw count above a user-defined threshold registers a touch
Refer to the Getting Started With CapSense Guide for details on CapSense algorithms
Capacitive Sensor Capacitive Sensor Raw Count Variation on Finger Touch
Without a Finger Touch With a Finger Touch
3660
1,700
3640
No Touch Touch No Touch
3620
1,650
3600
Threshold
Raw Count
3580
Signal
Overlay Overlay
1,600
CF 3560
1,550
CP CP CP CP 3520
Noise
PCB PCB 3500
1,500
3480
Time (ms)
CX = Total Capacitance measured by the CF = Capacitance added by a finger touch CapSense algorithms use analog circuits to
capacitive sensing system CF is dependent on the overlay material, overlay convert the capacitance to raw count, which is
CP = Parasitic capacitance thickness and the dimensions of the finger compared to the user-defined threshold to
(typical = 9mm) and sensor record a touch
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 61
Rev 0 1/9/15
SmartSense Auto-Tuning
SmartSense Auto-tuning sets, monitors and continuously maintains optimal capacitive
sensor performance
Reduces design effort by eliminating manual tuning after the design phase
Adapts to manufacturing variations in PCB, overlay and paint that degrade touch-sensing performance
Adapts to changes in system environment due to RF noise sources
Allows a platform design approach that uses different overlays, button shapes and trace lengths with the same
electronics
SmartSense Auto-tuning Cuts Design Cycle Time
Steps eliminated
through Auto-tuning
functionality
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 62
Rev 0 1/9/15
Introduction to BLE System Design
LAB 4: CapSense DESIGN WITH BLE
CONNECTIVITY
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 63
Rev 0 1/9/15
PSoC 4 BLE Lab 4:
CapSense Data Reporting Over BLE
Objectives
Drive RGB LED color and intensity using Precision Illumination Signal Modulation (PrISM)
Implement a Custom BLE Profile with a custom Service to send RGB LED color and intensity data over BLE
Implement a Custom Service to send CapSense slider data over BLE
CapSense CSD Component
Use CySmart or the iOS/Android app to validate the operation
Software tool
PSoC Creator
CySmart
New Components
PrISM
CapSense CSD Lab 4: Block Diagram
BLE Pioneer Kit PC
PSoC 4 BLE
BLE BLE BLE USB Dongle
Connection
ARM P3[6-7],
PrISM RGB LED
Cortex-M0 P2[6]
Linear CySmart
CapSense P2[1-5]
Slider Software Tool
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 64
Rev 0 1/9/15
Introduction to BLE System Design
PORTFOLIO AND EXAMPLE APPLICATIONS
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 65
Rev 0 1/9/15
PSoC 4 Portfolio
ARM Cortex-M0 | CapSense
Programmable
PSoC MCU Intelligent Analog Programmable Digital
Analog
PSoC 4000 PSoC 4100 PSoC 4200
PSoC 4400
NEW CY8C4128-BL Q115 NEW CY8C4248-BL Q115
24 MHz, 256K/32K1, 48 MHz, 256K/32K1,
CMP2, Opamp, ADC3, CMP2, Opamp, ADC3,
SCB4, IDAC5, TCPWM6, SCB4, IDAC5, TCPWM6,
BLE7 BLE7, UDB8
NEW NEW CY8C4127-BL NEW NEW NEW CY8C4247-BL
CY8C4127-M CY8C4247-M CY8C4247-L
24 MHz, 128K/16K1, 48 MHz, 128K/16K1,
24 MHz, 128K/16K1 48 MHz, 128K/16K1 48 MHz, 128K/16K1
CMP2, Opamp, ADC3, CMP2, Opamp, ADC3,
NDA Required NDA Required NDA Required
SCB4, IDAC5, TCPWM6, SCB4, IDAC5, TCPWM6,
Contact Sales Contact Sales Contact Sales
BLE7 BLE7, UDB8
CY8C4245
CY8C4125 CY8C44x5
48 MHz, 32K/4K1,
24 MHz, 32K/4K1, 48 MHz, 32K/8K1
CMP2, Opamp, ADC3,
CMP2, Opamp, ADC3, NDA Required
SCB4, IDAC5, TCPWM6,
SCB4, IDAC5, TCPWM6 Contact Sales
UDB8
CY8C4244
CY8C4014 CY8C4124
48 MHz, 16K/4K1,
16 MHz, 16K/2K1, 24 MHz, 16K/4K1,
CMP2, Opamp, ADC3,
CMP2, I2C, IDAC5, CMP2, Opamp, ADC3,
SCB4, IDAC5, TCPWM6,
TCPWM6 SCB4, IDAC5, TCPWM6
UDB8
CY8C4013
16 MHz, 8K/2K1,
CMP2, I2C, IDAC5,
TCPWM6
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 66
Rev 0 1/9/15
Wireless Portfolio
2.4-GHz RF Programmable Radio-on-Chip (PRoC) Programmable System-on-Chip (PSoC)
Transceiver MCU CapSense TrueTouch1 Intelligent Analog Programmable Digital
NEW NEW NEW NEW CY8C41x7-BL NEW CY8C42x7-BL
CYBL1016x CYBL1046x CYBL1056x
PSoC 4 BLE PSoC 4 BLE
PRoC BLE PRoC BLE PRoC BLE
CM03, 2 SCB4, 2-Finger1 CM03, 2 SCB4, 2-Finger1
CM03, 2 SCB4 CM03, 2 SCB4, CapSense CM03, 2 SCB4, 2-Finger1
CMP5, Opamp CMP5, Opamp, 4 UDBs6
36 GPIOs, 128KB Flash 36 GPIOs, 128KB Flash 36 GPIOs, 128KB Flash
BLE2
NEW Q115 NEW Q115 NEW Q115 NEW CY8C41x8-BL Q115 NEW CY8C42x8-BL Q115
CYBL1017x CYBL1047x CYBL1057x
PSoC 4 BLE PSoC 4 BLE
PRoC BLE PRoC BLE PRoC BLE
CM03, 2 SCB4, 2-Finger1 CM03, 2 SCB4, 2-Finger1
CM03, 2 SCB4 CM03, 2 SCB4, CapSense CM03, 2 SCB4, 2-Finger1
CMP5, Opamp CMP5, Opamp, 4 UDBs6
36 GPIOs, 256KB Flash 36 GPIOs, 256KB Flash 36 GPIOs, 256KB Flash
36 GPIOs, 256KB Flash 36 GPIOs, 256KB Flash
CYRF8935 CYRF89135
WUSB8-NL PRoC-Embedded
1 Mbps WUSB8-NL, M8C9
GFSK7
CYRF69103
PRoC-LP
WUSB8-LP, M8C9
CYRF6936 14 GPIOs, 8KB Flash
WUSB8-LP
1 Mbps
TX 26 mA, RX 21 mA CYRF69213
PRoC-LP
WUSB8-LP, M8C9, USB
14 GPIOs, 8KB Flash
1 Touch-sensing technology with 2-finger gestures 5 Comparator 9 Cypress proprietary 8-bit MCU
2 Bluetooth 6 Universal 10Direct Production Sampling Development Concept
Low Energy, also known as Bluetooth Smart Digital Block sequence spread spectrum
3 ARM Cortex-M0 7 Gaussian frequency shift keying Status
4 Serial communication block 8 WirelessUSB Availability QQYY QQYY
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 67
Rev 0 1/9/15
Product Overview: BLE Series
Feature PSoC 4 BLE Series PRoC BLE Series
CPU Core ARM Cortex-M0 ARM Cortex-M0
CPU Speed (MHz) 48 48
Flash Size/SRAM (KB) 256/32 256/32
ADC 12-bit SAR1 1 Msps 12-bit SAR 1 Msps
Opamps 4 -
Comparators 2 -
IDACs 2 2
UDBs 4 -
Timers, Counters, PWMs 4/4/8 4/4/8
CapSense Yes Yes
I2S Yes Yes
Serial Interfaces 4 SPI, 2 I2C, 4 UART 2 SPI/I2C/UART
I/Os (Capacitive Sensing I/Os) 36 36
Package 56-QFN, 68-CSP 56-QFN, 68-CSP
Applications General-purpose, such as PC peripherals, HID, remote control,
fitness monitors and wireless toys
wearable electronics
Two BLE product families, each optimized to help you build your low-power wireless IoT system
1 Successive approximation register
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 68
Rev 0 1/9/15
PSoC 4 BLE Solution vs. Competitions
1 Real-time clock 2 Serial Communication Block 3 Timer, counter, pulse-width modulator; configurable as 16-bit timer, counter pulse-width modulator blocks
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 70
Rev 0 1/9/15
PSoC 4 BLE Solution Example:
Heart Rate Monitor
PSoC 4 BLE Value Block Diagram
BLE
RF Link
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 71
Rev 0 1/9/15
PRoC BLE Solution Example:
Remote Control
PRoC BLE Value Block Diagram
Design Challenges
Advanced features: trackpad, voice, motion sensing BLE Remote Control
Very low cost
Seamless Touch Sensing and RF Digital 6-Axis Motion
Microphone Sensor
PRoC BLE Solution 4
I2 S I2 C 2
Provides support for advanced features:
Trackpad with two-finger gestures RF Link
Voice commands over BLE Debug SWD1 PRoC BLE Infrared LED
Six-axis motion sensing Header CYBL10563-56LQXI
Integrates BLE radio, microcontroller and Touch Sensing
Integrates Balun to reduce external RF ICs
GPIO 6 GPIO 16
Allows two-layer PCB design
DC-DC
Delivers high SNR with SmartSense Auto-tuning Converter Keyboard
Matrix Trackpad
Sensor
Battery
Application Notes:
Getting Started with PSoC 4 BLE (AN791267): www.cypress.com/go/AN91267
Getting Started with PRoC BLE (AN94020): www.cypress.com/go/AN94020
Available Q115: PSoC 4 BLE Measuring Power Consumption (AN92584)
Available Q115: Creating BLE Applications Using PSoC 4 BLE (AN91184)
Available Q115: Creating Custom Profiles Using PSoC 4 BLE (AN96112)
Design Guides:
PSoC 4 BLE Antenna Design Guide: www.cypress.com/go/AN91445
CapSense Design Guide: www.cypress.com/go/AN85951
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 73
Rev 0 1/9/15
General Online Resources
Cypress Resources Cypress BLE Solutions: www.cypress.com/BLE
PSoC: www.cypress.com/PSoC
Roadmap: www.cypress.com/PSoCRoadmap
Kits: www.cypress.com/kits
Support: www.cypress.com/support
Training: www.cypress.com/training
Cypress Store: www.cypress.com/store
Community & Forums: www.cypress.com/forums
App Notes: www.cypress.com/AppNotes
Bluetooth Resources
Bluetooth SIG website: www.bluetooth.org
BLE Profiles and Services: www.bluetooth.org/en-us/specification/adopted-specifications
Bluetooth Low Energy - The Developers Handbook by Robin Heydon (ISBN-10:013288836X)
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 74
Rev 0 1/9/15
Workshop Objectives Recap
You should now:
Know how to create low-power, sensor-based systems for the IoT
Understand the BLE architecture
Understand the PSoC 4 BLE architecture
Know how to use PSoC 4 BLE, with the PSoC Creator and the BLE Pioneer Kit, to implement
BLE connections with PSoC 4 BLE
One-chip, sensor-based, system designs with BLE connectivity
One-chip, CapSense touch-sensing user interface designs with BLE connectivity
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 75
Rev 0 1/9/15
Introduction to BLE System Design
APPENDIX
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 76
Rev 0 1/9/15
PSoC 4 BLE Product Selector Guide
Direct LCD
Part Number1 CPU Speed UDB2 SCB3 TCPWM4 SAR ADC IDAC5 Drive Opamps Comparators Package
CY8C4127LQI-BL473 24 MHz 0 2 4 806 ksps 0 2 2 56-QFN
CY8C4127LQI-BL453 24 MHz 0 2 4 806 ksps 2 2 2 56-QFN
CY8C4127LQI-BL483 24 MHz 0 2 4 806 ksps 2 2 2 56-QFN
CY8C4127FNI-BL483 24 MHz 0 2 4 806 ksps 2 2 2 68-CSP
CY8C4247LQI-BL473 48 MHz 4 2 4 1 Msps 0 4 2 56-QFN
CY8C4247LQI-BL453 48 MHz 4 2 4 1 Msps 2 4 2 56-QFN
CY8C4247LQI-BL463 48 MHz 4 2 4 1 Msps 2 4 2 56-QFN
CY8C4247FNI-BL483 48 MHz 4 2 4 1 Msps 2 4 2 68-CSP
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 78
Rev 0 1/9/15
PSoC 4 BLE Solution Value
Example: Heart Rate Monitor
Competitor $1.92
Competitor
BLE: Nordic nRF51822-QFAB-R7
Price: $1.921 Opamp $0.24
BOM Integration
Balun $0.33
Opamp: On Semi LM324DR2G (2 Qty)
Price: $0.241
Amplifier $1.02
Balun: ST Microelectronics BAL-NRF02D3
Price: $0.331 CapSense Controller $0.47
1800
1,800
RF Peak Current of Various BLE Radios
1600
1,600
CY (18.6mA) 15mA 12mA 9mA 6mA
1,400
1400
Average Current (A)
1,200
1200
1,000
1000
800
600
400
200
200
0
0
88ms 50ms
50 100ms
100 500ms
500 1000ms
1,000 2000ms
2,000 4000ms
4,000
Header
Length
Access Data Controller Link Layer (LL) Direct Test Mode (DM)
CRC
Address
Physical Layer (PHY)
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 81
Rev 0 1/9/15
BLE Architecture Overview: Host
Logical Link Control and Adaptation Protocol (L2CAP)
Provides protocol multiplexing, Segmentation, and Reassembly Services to the upper-layer protocols
Segmentation breaks the received data packets into smaller packets which the LL can transmit
Reassembly combines the smaller packets received from the LL into a meaningful data packet
Each L2CAP packet contains a 32-bit header followed by its payload, and packet length must be included
in the header assumed segmentation and reassembly is used
L2CAP has multiple channels and channel Identifier is included in packet header
Bluetooth 4.1 also allows direct data channels through L2CAP connection-oriented channels
Host
Attribute Protocol (ATT) Security Manager (SM)
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 83
Rev 0 1/9/15
BLE Profiles and Services Supported
Acronym Profile Acronym Profile
ANP Alert Notification Profile HRP Heart Rate Profile
ANS Alert Notification Service HRS Heart Rate Service
BAS Battery Service IAS Immediate Alert Service
BLP Blood Pressure Profile LLS Link Loss Service
BLS Blood Pressure Service LNP Location and Navigation Profile
CPP Cycling Power Profile LNS Location and Navigation Service
CPS Cycling Power Service NDCS Next DST Change Service
CSCP Cycling Speed and Cadence Profile PASP Phone Alert Status Profile
CSCS Cycling Speed and Cadence Service PASS Phone Alert Status Service
CTS Current Time Service PXP Proximity Profile
DIS Device Information Service RSCP Running Speed and Cadence Profile
FMP Find Me Profile RSCS Running Speed and Cadence Service
GLP Glucose Profile RTUS Reference Time Update Service
GLS Glucose Service ScPP Scan Parameters Profile
HOGP HID over GATT Profile ScPS Scan Parameters Service
HIDS Human Interface Device Service TIP Time Profile
HTP Health Thermometer Profile TPS TX Power Service
HTS Health Thermometer Service
Profile Mode
Enables selection of the target BLE Profile from a list of supported Profiles
Supports all Bluetooth SIG Profiles BLE Component Configuration Tool: General Tab
Supports creation of custom Profiles
GAP Roles
Supports Peripheral, Central, Broadcaster,
Observer, Peripheral and Central
Supported Services
Alert Notification Service BLE Component Configuration Tool: Profiles Tab
Battery Service
Blood Pressure Service
Cycling Power Service
Cycling Speed and Cadence Service
Current Time Service
Device Information Service
Glucose Service
Human Interface Device Service
Health Thermometer Service
Heart Rate Service
Immediate Alert Service
Link Loss Service
Location and Navigation Service
Next DST Change Service
Phone Alert Status Service
Running Speed and Cadence Service
Reference Time Update Service
Scan Parameters Service
TX Power Service Standard and custom BLE Profiles are easily implemented using the BLE Component
Configuration Tool
Custom Service
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 86
Rev 0 1/9/15
BLE Component: GAP Settings Tab
Allows you to use GAP parameters to configure:
Advertising settings and timing parameters
Advertisement packets
Scan response packets
BLE Component Configuration Tool: GAP Settings Tab
Enables configuration of:
General settings
Device name, device address and power level
Security requirements
Security modes and levels
I/O capabilities
Pairing and Bonding requirements
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 87
Rev 0 1/9/15
PRoC BLE Kits
Choose the right development kit or a reference design kit (RDK)
BLE Pioneer Kit PRoC BLE Module Remote Control RDK Touch Mouse RDK
Kit Number CY8CKIT-042-BLE CY5671 CY5672 CY5682
Key Features Arduino-compatible FCC1 certified Integrated trackpad 6 functional keys
CapSense slider 2.6 cm x 4.3 cm 2-finger gesture 1-finger gesture
Includes: Onboard antenna Voice commands HID Profile
Base board 3-axis accelerometer
PRoC BLE module 3-axis gyroscope
PSoC 4 BLE module HID Profile
Guard Shield electrodes are copper fills around sensors that offset
Sensor liquid droplets; guard sensors are
copper traces that offset streaming liquids
Shield
Sensor Sensor
Electrode
Raw Count1 Without a Shield Electrode Raw Count With a Shield Electrode CapSense Works Under Liquids
Touch Touch
Threshold Threshold
Water
Droplet
Noise Floor
Noise Floor
The raw count generated by a water droplet The raw count generated by a water droplet CapSense buttons even work under spaghetti
exceeds the touch threshold, causing a false is below the touch threshold; therefore, there sauce
touch is no false touch
1A raw count is a digitized value of the capacitance of a proximity sensor
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 90
Rev 0 1/9/15
CapSense Proximity Sensing
Capacitive proximity sensors sense an object without an actual touch
A capacitive proximity sensor is used to measure the change in capacitance between a pin and ground
A hand near a capacitive proximity sensor increases the measured capacitance
CapSense algorithms and analog circuitry convert the measured analog capacitance to a digital raw count1
A hand is detected when the raw count exceeds a user-defined proximity sensing threshold
Proximity Sensor Without Proximity Sensor With Raw Count Variation With
A Hand2 Nearby A Hand Nearby A Hand Nearby
3660
3640
No Hand Hand No Hand
40,600
3620
Signal
3600
Proximity Sensing
Threshold
40,400
Raw Count
3580
Overlay Overlay CFP
3560
40,200
Ground Sensor Ground Ground Sensor Ground 3540
CP CP CP CP 3520
40,000
3500
3480
Baseline
CX = 2CP CX = 2CP + CFP 3460
0 0 200 400
400 600 800
800 1000 1,200
1200 1400 1,600
1600
CX = Total capacitance measured by the CFP = Capacitance added to the system Time (ms)
capacitive proximity sensing system by a nearby hand The raw count increases when a hand
CP = Parasitic capacitance3 CFP is dependent on the overlay material, overlay approaches a proximity sensor
thickness, size of the sensor and the distance of
the hand from the sensor
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 91
Rev 0 1/9/15
Bluetooth Compliance and Listing
Cypresss BLE solutions are qualified by the Bluetooth SIG with modular certification for
the RF-PHY, Link Layer and BLE Stack allowing for greater flexibility.
QD ID Declaration ID Name Product Product Type Spec Date
CYBL10X6X,
63683 D025069 CSP package Bluetooth Smart device End Product 4.1 02-Dec-2014
PSoC 4XX7_BLE
CYBL10X6X,
62887 D024757 QFN package Bluetooth Smart device End Product 4.1 08-Nov-2014
PSoC 4XX7_BLE
PRoC BLE,
62245 D024754 CYBLE RF-PHY (QFN) Component (Tested) 4.1 07-Nov-2014
PSoC 4 BLE
PRoC BLE,
63368 D025068 CYBLE RF-PHY (CSP) Component (Tested) 4.1 02-Dec-2014
PSoC 4 BLE
PRoC BLE,
62243 D024755 CYBLE Link Layer Component (Tested) 4.1 07-Nov-2014
PSoC 4 BLE
PRoC BLE,
61908 D024756 CYBLE Host Component (Tested) 4.1 07-Nov-2014
PSoC 4 BLE
Bluetooth Adopter Membership (Free): Develop, Qualify, List and Sell Bluetooth Products
Free Membership; Product Listing Fee: $4,000 USD
Includes the license to build products using Bluetooth technology
Includes the license to use the Bluetooth trademarks in your products
Includes a license to the Profile Tuning Suite (PTS), a protocol and interoperability testing tool
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 92
Rev 0 1/9/15
BLE vs. Other RF
Type Data Rate Range Frequency Standard Solution Cost
Proprietary Low: 10s Kbps 10 m-1 km+ 433 kHz No $
Proprietary Low: 100 Kbps 3-100 m 900 MHz No $$
Proprietary Med: 1s Mbps 3-100 m 2.4 GHz No $$
NFC Low: 100s Kbps 4 cm 13.56 MHz Yes $
WiFi High: 100s Mbps 100 m-1 km+ 2.4/5 GHz Yes $$$
Bluetooth Med: 3 Mbps 10-100m 2.4 GHz Yes $$
BLE Med: 1 Mbps 10-50m 2.4 GHz Yes $
001-93534 Owner: GUL Introduction to BLE System Design Customer Training Workshop 93
Rev 0 1/9/15