Hexiwear

Next generation wearable IoT development platform designed to reduce time to market. Comes in compact form factor with on-board MCUs, BLE connectivity, sensors, OLED display, and battery. Open source software package includes embedded software, cellphone apps and cloud connectivity. Expandable with 200 additional click boards™.

Quote:

Looking for mbed examples or applications to start programming your Hexiwear platform, jump directly to the HEXIWEAR CODE REPOSITORY

Overview

Hexiwear has been designed by MikroElektronika in collaboration with NXP to better support developer projects by accelerating their time to market, reducing their development and manufacturing costs and securing their migration from prototype to production. For just $49, this open-source reference-design for IoT/connected applications brings together everything developers need to design their next IoT application in a very compact form factor (2" x 2").

Featuring more than traditional MCU development platforms, the Hexiwear platform is ideal for connected applications, thanks to its power-efficient Kinetis K64F MCU featuring:

Integration is also a key feature of Hexiwear, with a Bluetooth Low Energy (BLE) SoC (Kinetis KW40z) and 8 Sensors onboard:

It also includes a 1.1” OLED color display and a 190mAh 2C Li-Po battery with a charger (MC34671) (see block diagram below).

The Kinetis K64 MCU family remains fully software, hardware and development tool compatible with Kinetis MCUs, and existing NXP Freedom projects (using the FRDM-K64F Freedom platform) can be easily migrated to Hexiwear.

The docking station for Hexiwear allows developers to easily program and debug their code (built-in USB Debug and Flash Programmer) and expand the board features with up to three click boards among a portfolio of more than 200 references.



MCU Features


Board Features


Board Block Diagram

The graphic below gives an overview of the board features and the connection between the target MCU and the on-board components and connectors
/media/uploads/GregC/hexiwear_block_diagram2.png


Board Pinout

Component Pinout

Following figure indicates the Kinetis K64F signal connections with the board components (RGB LED, Sensors, Display, Memory...)

/media/uploads/GregC/hexiwear_peripherals4.png

Docking Header Pinout

Docking headers enable up to 58-pins and give access to most of the Kinetis K64F signals via

Docking switches authorize user to select the microcontroller (K64F or KW40Z) to be programmed/debugged, the onboard OpenSDA or external debugger and enable the I2S or the Push buttons.

/media/uploads/GregC/docking_switchest4.png

Hexiwear Docking Station is fully supported in the mbed Developer Platform with full access to the free tools and mbed SDK, providing experienced embedded developers with powerful and productive tools for building "proof-of-concepts". The pinout above shows the commonly used interfaces and their locations. Note that all the numbered pins (PT_XX) can also be used as DigitalIn and DigitalOut interfaces.


Pin names



PC Configuration

The Docking station embeds (on the back) a controller, which emulates the latest ARM DAP-LINK debug interface, featuring MSD Flash programming, Debug and virtual Serial Serial port. You must connect your computer via the USB cable to the micro-USB port of the Docking station. Make sure that the PWR switch of the Docking station is set ON and the green PWR status light will come on, indicating it has power. The MSD drive and the Debugger are automatically detected however the Virtual Serial port must be properly setup for your computer. On Mac and Linux, this will happen by default. For Windows, you need to install a driver:

Windows

See Windows-serial-configuration for full details about setting up Windows for serial communication with your mbed Microcontroller

From a host PC to communicate with mbed you will need a terminal application. This allows Hexiwear via the micro-USB port of the Docking station to print to your PC screen, and for you to send characters back to your mbed.

Some terminal programs (e.g. TeraTerm) list the available serial ports by name. However, if you do need to know the identity of the serial port so that you can attach a terminal or an application to it:

WindowsMacLinux
Find the identity of the COM port by opening ''Device Manager''. To do this navigate ''Start -> Control Panel -> System -> Hardware -> Device Manager''.To find the device name under Mac OS X, use the command ''ls /dev/tty.usbmodem*''To find the device name under Linux, use the command ''ls /dev/ttyACM*''
windowsmaclinux



Get Started with mbed



1. First board connection

Plug Hexiwear on the Docking station and connect the one end of the USB cable to your computer and the other end to the micro-USB port of the Docking station. Make sure that the PWR switch of the Docking station is set ON and the green PWR status light will come on, indicating it has power. After a few seconds of activity, the PC will recognize the mbed Microcontroller as a standard USB drive called "DAP-LINK".

/media/uploads/dan/winxp-disk.png/media/uploads/dan/mac-disk.png
Windows XP exampleMac OS X example

2. Connect to mbed

Go to the new USB Drive, and click MBED.HTM to open it in a web browser.

If you do not have an mbed account, choose "Signup", and create your mbed Account. Otherwise, log in with your established mbed username and password.

This will give you access to the website, tools, libraries and documentation.



Flash a project binary


1. Download a (.bin) to Hexiwear

Download the appropriate "Hello World!" binary:

Note: the source code for this program will be seen in the next section.

Save the program binary file to the DAP-LINK disc from your file explorer, just like you would with a normal USB disk.

K64F stuff

2. Press the Reset Button

When the Reset_K64F Button located on the Docking station is pressed, the newest program on the DAP-LINK drive will be loaded in to the K64F microcontroller FLASH memory.

When the program is has been loaded onto the K64F microcontroller, it will then start it running.

3. Run Hello World!

The K64F microcontroller is now running the program; Blink LED Red forever! If you reset the K64F microcontroller, or disconnect and reconnect the power, the program will simply restart.

4. Flash a new precompiled program

It is the newest program on the K64F microcontroller that is run after reset. We can therefore download a new program or overwrite an existing one to update the program that will run.


Hexiwear factory demo

The binary for the default project programmed in factory in Hexiwear memory is available for download at the end of this page.



Open existing Project


1. Import the Program to your mbed compiler

Select Import As Program
Choose Import Name of your preference
Click on Import

Import programHexi_Blinky_Example

Blinky program example for Hexiwear

2. Compile the Program

In the right panel Program Workspace Select the program you want to compile
Click on Compile in toolbar
If compilation ends successfully, you should see the comment Success! displayed in the Compile Output window available in the bottom and your web browser should download automatically the precompiled binary for the program.

3. Download a (.bin) to Hexiwear

Save the program binary file to the DAP-LINK drive from your file explorer, just like you would with a normal USB disk. The Status LED will flash as the PC writes the file to the Microcontroller disk.

4. Press the Reset Button

When the Reset_K64F Button located on the Docking station is pressed, the newest program on the DAP-LINK drive will be loaded in to the K64F microcontroller FLASH memory. The Status LED will flash as this happens. When the program has been loaded onto the K64F microcontroller, it will then start it running.

5. Run the Program

The K64F microcontroller is now running the program; flashing LED1/Red located on Hexiwear front panel forever! If you reset the K64F microcontroller, or disconnect and reconnect the power, the program will simply restart.

Program Examples

Congratulations, you have successfully compiled your first project example, you will find more program examples for the Hexiwear board available on the right panel of this page or at the Hexiwear code repository



Create new Project

Follow the guide to creating your own programs using the online compiler



Technical Doc


Hexiwear Board

Kinetis K64F MCU

FXOS8700CQ 6-axis combo Accelero and Magnetometer

FXAS21002CQ 3-axis Gyroscope

MPL3115A2 Pressure sensor with Altimeter capabilities

HTU21D Temperature and Humidity sensor

TSL2561 Ambient light Sensor

MAX30101 Optical Heart rate Sensor

KW40Z BLE v4.1 and 802.15.4 Wireless 2.4GHz SoC

PSP27801 OLED color display

W25Q64FVSSIG 8MB/64Mbit Serial Flash memory



Software Materials


Hexiwear Factory Program

Hexiwear Interface Firmware / OpenSDA Application

K64F Freedom Sensor Libraries and Examples



Hexiwear basic program examples


Import programHexi_Gpio_Example

GPIO program example for Hexiwear

Import programHexi_Timer_Example

Timer program example for Hexiwear

Import programHexi_Serial_Example

Serial program example for Hexiwear

Import programHexi_Serial_Rgb_Example

Serial and RGB LED program example for Hexiwear

Import programHexi_Accelero_Magneto_Example

Simple accelerometer and magnetometer program example for Hexiwear featuring UART

Import programHexi_Gyro_Example

Simple gyroscope program example for Hexiwear featuring UART

Import programHexi_Pressure_Baro_Temp_Example

Barometric pressure and temperature sensing program example for Hexiwear




Hexiwear application examples


Import programHexi_Accelero_Magneto_Example

Simple accelerometer and magnetometer program example for Hexiwear featuring UART

Import programHexi_Gyro-v2_Example

Advanced gyroscope program example for Hexiwear featuring OLED Display

Import programHexi_Pressure_Baro_Temp_Example

Barometric pressure and temperature sensing program example for Hexiwear

Import programHexi_Humid_Temp-v2_Example

Advanced temperature and humidity program example for Hexiwear featuring OLED Display

Import programHexi_BLE_Example

Hexiwear Bluetooth Low Energy Example. The device is configured to behave as a sensor tag. This example is to be used with the Hexiwear mobile app on iOS and Android.

Import programHexi_OLED_Text_Example

Example shows how to display static and dynamic text on the Hexiwear OLED Display.

Import programHexi_OLED_Image_Example

Displays a full size image (96px by 96px) on the Hexiwear OLED display then displays a smaller image (96px by 32px) on the bottom portion of the display.

Import programHexi_OLED_TextImage_Example

Example showing usage of text and image. Builds on the text example with a banner image at the bottom of the screen.

Import programHexi_Buttons_Example

Basic touch buttons example for Hexiwear

Import programHexi_Vibration_Example

Haptic feedback example for Hexiwear




Supported Mikroe Click modules


MIKROELEKTRONIKA introduced few years ago a new family called CLICK of compact Connectivity and Sensor modules, much cheaper (starting $5) and smaller than Arduino shields. Up to now the Mikroe Click portfolio includes more than 200 extension solutions!!

Please find below the list of the Program Examples tested with Hexiwear

User Interfaces


/media/uploads/GregC/code_logo.jpg Hexi Click Relay Example
Control two Relays using Touch electrodes and Display Relays status (instructions available).

/media/uploads/GregC/code_logo.jpg Hexi Click Buzzer Example
Play some tones with Buzzer using Touch electrode to start it and Display Buzzer status (instructions available).



Assistance

Hexiwear factory demo

Restore Hexiwear in default state downloading/programming Hexiwear default/original demo

 Buy Now


Please log in to start a discussion or ask a question.

Discussion topics

TopicRepliesLast post
Programming and Serial Port via uUSB connector 0 16 Dec 2016 by Hans Oppermann

Questions

See more related questions