USER'S GUIDE Part of the Hexiwear development ecosystem Hexiwear Workstation Multimedia peripherals onboard Amazing connectivity – 3 connectors at each I/O group Click board™ connectivity with four mikroBUS™ sockets OpenSDA compatible programmer and In-Circuit Debugger Page 1
To our valued customers Hexiwear is one of the smallest development platforms available, rich with features. It is small enough to be categorized as a wearable device. It features an eye-catching smartwatch form factor, packing a powerful, low power Kinetis® K64F MCU and 6 onboard sensors, along with the K40Z SoC, which offers a Bluetooth Low Energy radio that can be used to connect to the Cloud services. This makes Hexiwear an ideal solution for building portable IoT applications.
Table of contents Hexiwear Workstation Introduction 4 Power supply 6 Connector 8 Hexiwear 10 mikroProg 11 Programming 14 Connectivity 17 Other modules 23 What’s Next? 30 Page 3
INTRODUCTION Introduction In the light of Hexiwear’s global success, we decided to make a full-featured development board that expands the functionality of your favorite IoT tool. The Hexiwear Workstation is the next step in rapid IoT prototyping. We present you a board that is powerful, well organized, featuring high-quality components, onboard programmer/debugger. The Hexiwear Workstation is ready to be your strong ally in development. We hope you will enjoy it as much as we do.
INTRODUCTION It’s good to know SYSTEM SPECIFICATIONS POWER SUPPLY 7–23V AC or 9–32V DC or via USB cable (5V DC) POWER CONSUMPTION ~30mA (no docked Hexiwear) BOARD DIMENSION 266 x 220 mm (10.47 x 8.66 inch) BOARD WEIGHT 490g (1.
POWER SUPPLY Power Supply The Hexiwear Workstation board features an efficient and clean power supply, which provides steady voltage levels and current, necessary for powering each part of the board. To power on the board, it is necessary to turn the ON/OFF switch to ON position, located at the top left corner of the board. The power presence is indicated by the green LED indicator, located next to the switch.
The Hexiwear Workstation board features an efficient and clean power supply, which provides stable voltage and current levels, necessary for powering each part of the board. POWER SUPPLY: Via DC connector or screw terminals (7V to 23V AC or 9V to 32V DC), or via USB cable (5V DC). POWER SUPPLY How to power the board? POWER CAPACITY: Up to 500mA with USB, and up to 1.6mA with external power supply. 1. With USB cable To power the board with USB cable, jumper J5 should be placed in USB position (Figure 2).
CONNECTOR Hexiwear docking connector Hexiwear Workstation board is equipped with a small male mezzanine connector, which is used to interface the Hexiwear platform with the board. The small female mezzanine connector on the back of Hexiwear contains all the GPIO pins, I2C bus pins, SPI bus pins, power supply pins, and programming pins available on Hexiwear platform.
CONNECTOR How to properly dock Hexiwear? Before docking Hexiwear, the power supply should be turned off. Images below show how to correctly dock Hexiwear. First, make sure that the orientation of the female mezzanine connector matches the position of the connector on the Hexiwear Workstation board. Place Hexiwear above the printed hexagonal marking on the workstation board, as shown in Figure 7. Slowly move Hexiwear down towards the board, until connectors make contact.
HEXIWEAR About Hexiwear Hexiwear combines style and usability found in high-end consumer devices, with functionality and expandability of sophisticated engineering development platforms an ideal form factor for IoT edge node and wearable markets. Completely open source and developed by MikroElektronika in partnership with NXP, Hexiwear includes a low power, high performance Kinetis® K64F microcontroller based on ARM Cortex-M4 core, the Kinetis KW40Z multimode radio SoC, and support for BLE.
mikroProg Onboard programmer What is mikroProg? How do I start? The Hexiwear Workstation board is equipped with the mikroProg, an onboard OpenSDA compatible programmer and hardware in-circuit debugger for Kinetis MCUs. It is used to program and debug docked Hexiwear.
ACTIVE SDA_SPI0_SIN SDA_SPI0_SOUT SDA_SPI0_SCK DBG_RXD BAT_SW VCC-USB 3 D+ USB_P U3 D6 1 2 3 D- USB_N I/O1 GND I/O2 4 GND 6 USBD_N 5 4 USBD_P I/O1 VBUS I/O2 USBLC6-2SC6 USB B C14 100n VCC-5V VCC-5V MKW40_RST RESET# MK64_RST R51 4.
mikroProg Installing programmer drivers Drivers installation Configuring the mikroProg When working in Windows, the onboard mikroProg OpenSDA compatible programmer requires an appropriate driver to be installed. This driver allows full functionality of the onboard programmer, as well as adding the mbed virtual COM port capability to the system.
PROGRAMMING Programming Software mikroProg Suite for ARM® Onboard mikroProg programmer requires special programming software called mikroProg Suite. This software is used to program both K64F and K40Z devices, and it can be used either as the stand-alone application or it is automatically launched from within the mikroC PRO, mikroBasic PRO, or mikroPascal PRO for ARM® compiler, when “build and program” button is pressed.
What is Debugging? How to use the debugger? Every developer comes to a point where he has to monitor the code execution in order to find errors in the code, or simply to see if everything is going as planed. This hunt for “bugs”, or errors in the code, is called debugging. There are two methods of debugging: The first method is Software debugging method, which only simulates what is supposed to be happening on the micro-controller as the code lines are executed.
PROGRAMMING Debugger Commands Here is a short overview of which debugging commands are supported in MikroElektronika compilers. You can see what each command does, and what are their shortcuts when you are in debugging mode. It will give you some general picture of what your debugger can do. ICONS Page 16 COMMAND NAME SHORTCUT DESCRIPTION Start Debugger [F9] Starts Debugger. Run/Pause Debugger [F6] Run/Pause Debugger. Stop Debugger [Ctrl + F2] Stops Debugger.
CONNECTIVITY Input/Output Group One of the most distinctive features of Hexiwear Workstation board are the Input/Output groups. These groups contain buttons, LEDs and headers, routed to the pins of the docking connector. They allow interaction with the docked Hexiwear, either by pressing buttons, displaying states of its pins on the LEDs, or using headers to interface it to an external device. Everything is grouped together The pins of the Hexiwear docking connector are arranged in groups.
HEADERS With enhanced connectivity as one of the key features of the Hexiwear Workstation, we have provided three connection headers for each group. Each I/O group contains two male IDC10 headers and a row of 10 PCB pads (Figure 14). Figure 14: Headers IDC10 male headers enable easy connection with MikroElektronika add-on boards (Figure 15).
The logic state of all Hexiwear digital inputs may be controlled using the push buttons (Figure 16). is left to float. Shorting jumpers J22 for up position (and J23 for down position, respectively), will bypass the 220 ohm resistor, allowing buttons to connect pins to VCC (or GND), directly. LEDs Figure 16: I/O group push buttons Each I/O group has 8 buttons.
Easy connectivity and simple configuration are imperative in the world of modern embedded electronics. For example, the success of the USB standard comes from its simplicity and high and reliable data transfer rates. This is why our engineers have came up with a brilliant solution for rapid development, in the form of a simple, yet powerful standardized interface. It contains bus lines, which most of modern devices use, almost completely eliminating the need for any additional hardware configuration.
Click boards™ are standardized printed copper boards (PCB) that carry a variety of different electronic devices. They are designed to perfectly fit in the mikroBUS™ socket. Engineered to deliver the best performances for the used components, they save developers of testing and troubleshooting, often associated with the prototyping phase, offering rapid development and faster times to market. These ready-to-use boards require no additional hardware configuration.
CONNECTIVITY UART via USB Hexiwear Workstation board contains aforementioned OpenSDA compatible programmer, which among other features, offers a virtual COM port emulation. This makes possible to use the USB connection of the OpenSDA programmer as the USB to UART adapter.
VCC-3V3 3 2 1 N O SW5 8 7 6 5 4 G2.6 G2.7 G3.0 G2.2 G1.7 G2.0 G2.1 G4.0 MP3-SCK MP3-MISO MP3-MOSI MP3-CS# MP3-DCS MP3-DREQ MP3-RST# BUZZER L R G2.5 8 7 6 5 4 3 2 1 N O DIP SWITCH 8 pin SW4 DIP SWITCH 8 pin DATA BUS The Hexiwear Workstation comes equipped with two audio amplifiers, capable of delivering up to 675mW of continuous RMS power into two built-in 8-ohm speakers. These amplifiers are used to amplify the line level sound from the VS1053, a stereo MP3 audio CODEC IC.
Page 24 DIP SWITCH SW2 It’s used to route the appropriate Hexiwear MCU lines to the microSD card module. Turning switches from SW 2.1 (G0.5) to SW 2.6 (G1.2) to ON position will establish a connection between the microSD module and Hexiwear. Figure 25: microSD module with the schematic VCC-MMC N O SW2 1 G0.5 G0.6 G0.7 G1.0 G1.1 G1.2 G3.1 G3.
DS1820 is a digital temperature sensor that uses 1-Wire® interface for its operation. It is capable of measuring temperatures within the range of -55 to 128°C, and provides ±0.5°C accuracy for temperatures within the range of -10 to 85°C. It is powered by the 3.3V power rail of the Hexiwear Workstation board. It takes maximum of 750ms for the DS1820 to calculate temperature with 9-bit resolution. 1-Wire® serial communication allows data to be transferred over a single communication line.
OTHER MODULES ADC inputs Digital signals have two discrete states, which are decoded as HIGH and LOW, and interpreted as logic 1 and logic 0. Analog signals, on the other hand, are continuous, and can have any value within defined range. Analog to digital converters (ADC) are specialized circuits, which can convert analog signals (voltages) into a digital form. The digital value of the conversion is linearly dependent on the input voltage value.
OTHER MODULES Piezo Buzzer Piezoelectricity is the electrical charge which accumulates in certain solid materials, in response to mechanical pressure. Also, applying an electrical potential to the piezoelectric material, causes it to physically deform. One of the most widely used applications of the piezo electricity, is the production of sound generators, called piezo buzzers. Piezo buzzer is an electric component that comes in different shapes and sizes, which can be used to produce sound.
OTHER MODULES Additional GNDs Hexiwear Workstation board contains two GND pins located in different sections of the board, which allow to easily connect oscilloscope GND reference probe or multimeter GND probe when monitoring signals on various pins, or signals on the peripheral modules.
OTHER MODULES Breadboard area Hexiwear Workstation board contains breadboard area as well as additional 1x52 female header, side by side. The header contains all the available Hexiwear pins, along with the necessary 3.3V and 5V power supply outputs. This breadboard area is an ideal solution for rapid prototyping: the components such as resistors, diodes, various ICs, and other electrical components, can be directly plugged into the matrix of slots and connected to Hexiwear pins with the wire jumpers.
What’s Next? You have now completed the journey through each and every feature of the Hexiwear Workstation. You have become familiar with its modules, organization, and the programmer/ debugger. Now you are ready to start using your new board. We suggest several steps which are probably the best way to begin. We invite you to join thousands of users of MikroElektronika development tools. You will find useful projects and tutorials and get help from a large user community.
DISCLAIMER All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any other copyright material. No part of this manual, including product and software described herein, must be reproduced, stored in a retrieval system, translated or transmitted in any form or by any means, without the prior written permission of MikroElektronika.
If you want to learn more about our products, please visit our website at www.mikroe.com If you are experiencing some problems with any of our products or just need additional information, please place your ticket at www.mikroe.com/support If you have any questions, comments or business proposals, do not hesitate to contact us at office@mikroe.