Editor’s Note: In this Product How-To design article, Richa Dham and Pushek Madaan of Cypress Semiconductor explain why the Bluetooth Low Energy (BLE) specification is emerging as the best wireless protocol for use in wearable Internet of Things devices and how to use the company’s newest PSoC 4 BLE PSoC with its PRoC BLE Programmable Radio-on-Chip building block to develop designs for this fast moving consumer market.
The high penetration of smart phones in many mature markets, combined with the wide availability of lower cost MEMS sensors, has lead to the rise of new category of electronics known as wearable devices. A wearable device is a highly portable device that is worn or otherwise attached to the body, and is capable of measuring/capturing information via one or more sensors. Figure 1 shows a generic information flow diagram of a wearable device.
Wearable devices can be broadly classified based on the market segment they serve or the body part on which they are intended to be worn. Table 1 shows the common classifications of wearable devices and their typical use cases.
Table 1: Wearable devices classification
Most wearable devices are equipped with one or more sensor(s), a processor, storage, connectivity link (i.e., radio controller), display, and battery. Figure 2 shows a block diagram for an activity monitor.
Since these devices are to be worn on the body, there are additional aspects that must be considered which govern the acceptance of these devices:
- Communication mode supported
- Average battery life
- Low cost
- Size and weight of the product
These aspects are discussed in detail in the next few sections.
There are various communication protocols available for use in wearables, including standards like Bluetooth Classic, ZigBee, and WiFi, as well as proprietary interfaces developed by silicon vendors. Standard protocols like Bluetooth classic, ZigBee, and WiFi have not been designed with low power as the primary design consideration. For this reason, many OEMs chose to use a proprietary protocols focused on energy efficiency. The Use of a proprietary protocol imposes many restrictions on the flexibility of these wearable products by restricting their interoperability to only devices using the same proprietary protocol.
To address the limitations, the Bluetooth Special Interest Group (SIG) has introduced Bluetooth Low Energy (BLE) specifically designed to achieve the lowest possible power for short-range communication. Just like Bluetooth classic, BLE continues to operate in 2.4GHz ISM band with a bandwidth of 1Mbps. Some of the salient features of BLE are:
- BLE’s low data rate makes for an ideal fit for applications where only state information has to be exchanged.
- The protocol is optimized to burst transmit small blocks of data at regular intervals, thus enabling the host processor to maximize the amount of time it can operate in a low power mode when information is not being transmitted.
- The protocol is optimized to reduce the time required for connection setup to data exchange to within a few ms.
- Each layer of the architecture has been optimized to reduce power consumption:
— The physical layer’s modulation index is increased as compared to Bluetooth classic, thus helping reduce transmit and receive current.
— The link layer is optimized for quick re-connections, thereby reducing power.
— The controller implements various key tasks like establishing the connection and ignoring duplicate packets, thus enabling the host processor to stay in low power modes for an extended duration.
- BLE has a robust architecture similar to Bluetooth classic supporting Adaptive Frequency Hopping with a 32-bit CRC.
- It supports only broadcaster mode so wearable communications does not have to undergo a connection procedure.
A BLE device is not compatible with standard Bluetooth radio as it is a different technology. However, Bluetooth dual mode devices do support both BLE and classic Bluetooth. Due to the adoption of Bluetooth Smart Ready host (dual mode devices), BLE eliminates the need for a dongle for its operation as compared to proprietary protocols.
The BLE protocol is a perfect fit for wearable devices for the following reasons:
- Protocol optimized for ultra-low power.
- Low power consumption helps reducing the size of battery, thus reducing the cost, size and weight of the product.
- Easy adoption because of BLE Smart Ready host is available in smart phones.
- Wearable devices can exchange short bursts of information over long period intervals.
However, the communication protocol is only one part of the wearable devices. Wearable devices includes many other blocks like sensors, an analog front end to process sensor signals, a digital signal processing to filter out any noise picked up from the environment, storage in which to log information, a processor to implement high-level system-related functionalities, a battery charger, and other subsystems.
Figure 3 shows a typical implementation of an optical heart rate monitor wristband. An optical heart rate monitor works on the principle of PPG where an optical technique is used to detect the change in volume of blood. In this technique, an LED is used to illuminate the tissue and the reflected signal, which carries information related to the change in volume of blood, is measured using a photo diode.
A Trans-Impedance Amplifier (TIA) is used to convert the photo current into a voltage. This voltage signal is then converted into a digital signal using an ADC. This digital signal is then processed in firmware to remove DC offset and high frequency noise and thus detect heart beats. Filtering can also be performed in the analog domain using active filters.
Heart beat information is sent to the BLE controller and then transmitted to a BLE-enabled device using Bluetooth link. In some optical heart rate monitors, an independent controller is used to perform heart rate processing before communicating this data to the main processor via an I2C/SPI/IART interface.
In such systems, the use of multiple discrete components makes system design more complex in terms of the different parts being electrically compliant with each other and increasing testing complexity. In addition, there is a significant impact on power consumption (due to lack of control over the AFE when it is not in use), BOM cost, and the size of the PCB.
Using PSoc4 and PRoC to build a Bluetooth IoT device
Toaddress these issues, multiple vendors have released devices based on aSystem-on-Chip (SoC) architecture. These devices not only have acontroller but also integrate analog and digital subsystems which can beused to implement the basic analog front end and other digitalfunctionality. One such controller is the PSoC 4 BLE based on Cypress’sProgrammable System on Chip (PSoC) architecture. This SoC has beendesigned for the wearables market and includes a 48 MHz Cortex M0 CPU,configurable analog and digital resources, and a built-in BLE PRoC(programmable radio-on-chip) subsystem. Figure 4 shows the architecture of the PSoC 4 BLE controller.
Inthe analog front, this device has four unconfigured OpAmps, two LowPower Comparators, one high speed SAR ADC, and a dedicated capacitivesensing block for enabling advanced touch-based user interfaces. On thedigital side, it has two Serial Communication Blocks (SCBs) which can beused to implement I2C/UART/SPI protocols, four 16-bit hardware TimerCounter PWMs (TCPWM), and four Universal Digital Block (UDB) for use inimplementing digital logic in hardware just like an FPGA.
Figure 5 shows the implementation of the wristband discussed above using an PSoC 4 BLE device.
Inthis implementation, the PSoC 4 BLE device implements all functionalityrequired using its internal resources. The only components requiredoutside the controller are a few passive components and a transistor fordriving the LED, and those required as part of the RF matching network.With this integrated approach, developers have control over the powerconsumption of the AFE and can disable it when it is not in use, thusreducing the system BOM and PCB size. In addition, using an integratedSoC architecture helps reduce time to market:
- Ready-to-use firmware available for system development
- All the blocks within the same silicon can inter-operate, eliminating the need for developers to have to integrate these components themselves
- Configurable development environment provides flexibility to incorporate last minute changes easily and without major redesign
Forsome wearables designs, a Cortex-M0 core may not provide sufficientprocessing power to meet application requirements. For theseapplications, an M3 core can be used to handle system-related functionswhile a separate BLE-based SoC like the PSoC 4 BLE controls theBluetooth interface along with the AFE and digital logic.
Increasingadoption of Bluetooth Smart Ready in devices like smart phones,tablets, and other portable devices has led to Bluetooth Low Energy as apopular choice for the communication protocol in wearable products. Tosupport the power requirements of these applications, various siliconvendors have developed BLE controllers and SoCs supporting BLE. SoCswith BLE helps to reduce system power consumption, BOM, and size ofproducts to make the wearables market even more attractive andpromising.
Pushek Madaan is currently working with Cypress Semiconductor India Pvt. Ltd. as a Senior Application Engineer. His interests lie indesigning embedded system applications in C and assembly languages,working with analog and digital circuits, developing GUIs in C# and,above all, enjoying adventure sports. Pushek can be reached at firstname.lastname@example.org .
Richa Dham is a Product Apps Manager for the PSD division at Cypress Semiconductor .She has a working experience of 13 years in leading semiconductorcompanies and holds a Masters degree in Electronics and Communication.