Pedometer 3 Click. PID: MIKROE 3259 Weight: 24 g

Similar documents
Accel 5 click. PID: MIKROE 3149 Weight: 24 g

Gaussmeter click. PID: MIKROE 3099 Weight: 23 g

Pressure 4 click. PID: MIKROE 3020 Weight: 24 g

Color 7 click. PID: MIKROE 3062 Weight: 19 g

Flash 4 click. PID: MIKROE 3191 Weight: 24 g

PIXI click PID: MIKROE Weight: 28 g

PWR Meter click. PID: MIKROE 3169 Weight: 31 g

DIGI POT 3 click. PID: MIKROE 3016 Weight: 25 g

Stepper 6 click. PID: MIKROE 3214 Weight: 26 g

BroadR-Reach click PID: MIKROE Weight: 26 g

Thermo 6 click PID: MIKROE-2769

SQI FLASH click. PID: MIKROE-2828 Weight: 22 g

Use the Grid-EYE click to detect absolute surface temperature without any contact. Or use it to detect the movement of people and objects.

ibutton click PID: MIKROE 3045 Weight: 31 g

USB UART 4 click PID: MIKROE Weight: 23 g

RS485 3 click. How does it work? PID: MIKROE-2821

ECG 2 click PID: MIKROE Weight: 30 g. Condition: New product. Table of contents

4G LTE E click (Europe)

GSM 4 click MIKROE Weight: 33 g

MMA axis digital accelerometer module

AN055. Replacing KX023, KX123, KX124 with KXG07. Introduction

± 2g Tri-axis Accelerometer Specifications

4G LTE-E click (Europe)

Sensor Toolbox (Part 2): Inertial Sensors

HZX N03 Bluetooth 4.0 Low Energy Module Datasheet

ESPino - Specifications

Gyroscope Module 3-Axis L3G4200D (#27911)

SimPLC. User Manual.

1.6inch SPI Module user manual

Breeze Board. Type A. User Manual.

GENERAL DESCRIPTION MC3635 FEATURES

LABORATORIO DI ARCHITETTURE E PROGRAMMAZIONE DEI SISTEMI ELETTRONICI INDUSTRIALI. Laboratory Lesson 9: Serial Peripheral Interface (SPI)

Gravity: BMI160 6-Axis Inertial Motion Sensor SKU: SEN0250

MTi 1-series Development Kit

KXCJK AN 039. Getting Started with the KXCJK. Introduction

MC3635 FEATURES GENERAL DESCRIPTION

LIS3DH Hookup Guide. Introduction. SparkFun Triple Axis Accelerometer Breakout - LIS3DH SEN Required Materials

MTi 1-series Development Kit

Arduino Uno R3 INTRODUCTION

Serial Peripheral Interface Bus SPI

Microcontroller. BV523 32bit Microcontroller. Product specification. Jun 2011 V0.a. ByVac Page 1 of 8

PAN502x Capacitive Touch Controller Datasheet

± 2g Tri-axis Digital Accelerometer Specifications

Product Family Specification

Breeze Board. Type B. User Manual.

AN 038. Getting Started with the KXTJ2. Introduction

keyestudio Keyestudio MEGA 2560 R3 Board

Interfacing Techniques in Embedded Systems

GMA301 ±6g Tri-Axial Digital Accelerometer

IPC. Preliminary Data Brief. IPC High speed phase current sensor with digital interface Draft Review Released

Edge Power International (HK) Ltd. Product Specification

Mbed Microcontroller SPI. Spring, 2018 Prof. Jungkeun Park

Prototyping Module Datasheet

Amarjeet Singh. January 30, 2012

USER GUIDE EDBG. Description

Skill Level: Beginner

output current sink/source 2 ma PIC 16F690 (see datasheet) SPI resolution 12 bit position accuracy 0.2 deg

or between microcontrollers)

Microcontrollers and Interfacing

Table of Contents 1 Typical Applications General Description Block Diagram Pinout System Connections Typical A

IST8301C 3D Magnetometer Sensor. Datasheet

XEN1210 Magnetic Sensor

AN-1025 APPLICATION NOTE

± 10g Tri-axis Accelerometer Specifications

± 2g / 4g / 6g / 8g Tri-axis Digital Accelerometer Specifications

Sanguino TSB. Introduction: Features:

IMU Axis Gyro Evaluation Board Application Note

MMA865xFC Sensor Toolbox User s Guide

GSDM110 Three-Axis Digital Magnetometer

Note: Examples discussed in this application note pertain to State Program 2.

ASM330LHH. Automotive 6-axis inertial module: 3D accelerometer and 3D gyroscope. Data brief. Features. Applications. Description

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front

mcube Proprietary APS v1.0 1 / mcube Inc. All rights reserved.

EDBG. Description. Programmers and Debuggers USER GUIDE

Application note Differential Pressure Sensor Type D6F-PH (Rev 1.0)

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B

VLSI AppNote: VSx053 Simple DSP Board

SH1030 Rev Introduction. Ultra low power DASH7 Arduino Shield Modem. Applications. Description. 868 MHz. Features

JeeNode V2. A small *duino-ish MPU board with a wireless RF module. Jean-Claude Wippler jeelab.equi4.com March 2009

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso

802.11b/g/n IOT Module

< W3150A+ / W5100 Application Note for SPI >

Ultratronics v1.0 DATASHEET

P4S-341 User Manual > Introduction. Overview

Application Guidelines for LIS3DSH State Machine

AT90SO72 Summary Datasheet

OEM API Specification

SPI bus communication with LDE/LME pressure sensors

Emulating I2C Bus Master by using FlexIO

PICado Alpha Development Board V1.0

User-configurable Resolution. 9 to 12 bits (0.5 C to C)

MPU-6000/MPU Axis Evaluation Board User Guide

Part Number: PCB-STM32-F4B1 (unpopulated PCB with Discovery module sockets, no other parts) STM32-F4B1 (assembled board, not presently available)

AN 025 Getting Started with the KXTI9

Parallel Data Transfer. Suppose you need to transfer data from one HCS12 to another. How can you do this?

AUTOMAT. Dream, Make, Play.

AN023. Getting started with the KXTF9. Introduction. Circuit Schematic

Grove - 3 Axis Digital Accelerometer±16g Ultra-low Power (BMA400)

Growing Together Globally Serial Communication Design In Embedded System

± 2g Tri-axis Accelerometer Specifications

Transcription:

Pedometer 3 Click PID: MIKROE 3259 Weight: 24 g The Pedometer 3 click is a tri-axis acceleration sensing Click board utilizing the KX126-1063. An advanced three-axis acceleration sensor, the KX126-1063 includes an embedded pedometer algorithm. The MEMS sensor itself is based on the principle of measuring the differential capacitance via a proprietary ASIC that decreases errors due to manufacturing imperfections, temperature, and other environmental influences. Pedometer 3 click is the perfect choice for the development of applications which benefit from integrated motion processing digital engines. The KX126-1063 includes engines that enable pedometer functionality with programmable sensing thresholds and step detection, Directional Tap/Double-Tap detection, advanced orientation detection, and free fall detection. It also includes motion monitoring functionality, including wake-up on motion and back-tosleep functionality with programmable thresholds.

It comes in the package which also includes the mikrosdk software and a library with all the functions. The Click board comes as a fully tested and approved prototype, making it a reliable device ready to use on the development board. The micro-electromechanical sensor (MEMS) is coupled with a very advanced ASIC, which offers many advanced features, such as the 2048-byte FIFO buffer, pedometer algorithms, tap, and double tap sensing algorithms, free fall algorithms, tilt single/double pole IIR filtering, and more. This Click board features the advanced KX126-1063 sensor based on the advanced application-specific IC (ASIC), coupled with the reliable and accurate micro-electromechanical sensor (MEMS) manufacturing technology. How does it work? Pedometer 3 click is equipped with the KX126 1063, ±2g / ±4g / ±8g / ±16g tri-axis digital accelerometer, by Kionix. This sensor utilizes an advanced acceleration sensing method, based on the differential capacitance. The integrated MEMS, produced with the proprietary Kionix technology, is composed of two plates. One is fixed to the substrate, while the other can move freely along a single axis. The acceleration causes the change in the capacitance between these plates, which is then processed by an integrated ASIC. The ASIC incorporates a capacitance-to-voltage amplifier which converts the differential capacitance of the MEMS sensor into an analog voltage, used as the input for the low-noise A/D converter (ADC). The integrated ASIC also contains the logic section used to set all the operational parameters of the KX126-1063, such as the data rate, filter settings, interrupts, ADC resolution, and other settings. The ASIC also incorporates an OTP memory that contains the calibration parameters and other devicespecific settings used on each power-on reset (POR) cycle.

The ADC can be operated with the resolution of 8 or 16 bits. This allows power consumption to be managed, as the lower resolution typically allows less power consumption. The power consumption is also affected by the output data rate value (ODR). The ODR value can be set for each mode and is set by different bits located in the respective configuration registers. As previously mentioned, the KX126-1063 IC features a range of different detection algorithms, which are used to detect a range of movement and acceleration events. The pedometer functionality is one of these features. In the datasheet, a term engine is used. The pedometer engine can be disabled or enabled, it can have the signal filtering conditioning applied to it (so that the acceleration offset is removed, and the peak detection is improved), it can use a specific acceleration range from ±2g to ±16g, it can set its output data rate register to a specific value, it can have the step count overflow reported as the interrupt on one of the physical pins (INT1, and INT2 pins of the IC, routed to the mikrobus INT and RST pins, respectively), step increment event can also be directed to trigger an interrupt on one of the INT pins. The step detection parameters of the pedometer engine itself can be configured by the user. There are ten pedometer control registers (PED_CNTL1 to PED_CNTL10) that cover various aspects of the pedometer engine, in addition to general configuration registers which are common to all engines of the KX126-1063 IC. These registers affect the step detection sensitivity, the number of steps discarded before the actual counting begins, the scaling factor, etc. The datasheet of the KX126-1063 IC offers a detailed explanation of each register and its function. However, the Click board comes with the mikrosdk compatible library which contains simplified functions, that allow simple setup of the KX126-1063 sensor IC and rapid application development. The advanced interrupt engine allows both the interrupt pins INT1 and INT2 to be configured by the user. They can be used to trigger an interrupt on the host MCU, using a wide range of sources, including sample buffer events, various engine-specific events, general purpose interrupts (such as wake-up, data ready, and similar), etc. Having two independent interrupt pins is a great solution for optimizing the firmware of the host controller, as the register polling can be reduced greatly, saving valuable MCU processing resources. Another feature of the KX126-1063 IC is its advanced sample buffer, which can store up to 2048 bytes of data. It can be operated in four different modes, including FIFO, FILO, Stream, and Trigger modes. Each mode applies a different set of rules when filling in the sample buffer, and when the watermark level is reached (a user-configurable threshold). The TRIG pin used for an external buffer control is routed to the mikrobus AN pin

labeled as TRG. This pin is used when the sample buffer is operated in Trigger mode: a high logic state on this pin will retain all the samples in the buffer up to the current position (not discarding them anymore when the threshold level is reached), continuing to fill the buffer until its full. When this option is not used, the TRIG pin should be grounded, which is done by positioning the SMD jumper labeled as TRIG, to OFF position (the factory default for the Click board ). Again, more detailed information about the advanced sample buffer can be found in the KX126-1063 IC datasheet. Each KX126-1063 device is factory calibrated, and its calibration parameters are stored in the one-time programmable memory (OTP). These parameters include the gain corrections and offset calibration. After each POR cycle, these calibration values are automatically applied, reducing the output error. Along with the used MEMS differential sensing technology, this reduces the measurement error to a virtually unmeasurable value. A built-in self-test function allows reliable operation of the Pedometer 3 click. Pedometer 3 click can use both SPI and I2C interfaces. A group of SMD jumpers labeled as COM SEL is used to select either of the communication interfaces. Please note that all the COM SEL jumpers must be positioned at the same setting, else the communication with the Click board will not be possible. When operated in I2C mode, the slave address of the device can be changed by switching the position of the SMD jumper labeled as I2C ADD. The Click board should be interfaced only with MCUs that use the communication voltage level of 3.3V. Specifications Type Motion Applications It can be used for pedometer applications development, display orientation, HID applications, drop detection applications (for warranty logging), and similar applications that can utilize the advanced motion and acceleration features the Pedometer 3 click can offer. On-board modules KX126-1063, ±2g / ±4g / ±8g / ±16g tri-axis digital accelerometer, by Kionix

Key Features Advanced event detection engines, proprietary Kionix MEMS technology, data conditioning and processing allows reliable operation of the detection engines, offers both I2C and SPI interface, an advanced sample buffer and interrupt engine with two programmable pins simplify firmware development. Interface I2C,SPI Input Voltage 3.3V Click board size M (42.9 x 25.4 mm) Pinout diagram This table shows how the pinout on Pedometer 3 Click corresponds to the pinout on the mikrobus socket (the latter shown in the two middle columns). Notes Pin Pin Notes Sample buffer CTRL TRG 1 AN PWM 16 NC Interrupt #2 IT2 2 RST INT 15 INT Interrupt #1 SPI Chip Select CS 3 CS RX 14 NC SPI Clock SCK 4 SCK TX 13 NC SPI Data OUT SDO 5 MISO SCL 12 SCL I2C Clock SPI Data IN SDI 6 MOSI SDA 11 SDA I2C Data

Power supply 3V3 7 3.3V 5V 10 NC Ground GND 8 GND GND 9 GND Ground Onboard settings and indicators Label Name Default Description PWR PWR - Power LED indicator JP1 TRIG Left Trigger pin function select: left position - disabled, right position - enabled JP2 I2C ADDR Left I2C slave address selection: left position - LSB = 1, right position - LSB = 0; JP3-JP5 COM SEL Left Communication interface selection: left position I2C, right position SPI Software support We provide a library for the Pedometer 3 click on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards. Library Description The library initializes and defines the I2C or SPI bus driver and drivers that offer a choice for writing data in the register and reads data from register. The library includes the function for reading Accel X/Y/Z axis data, the function for reading pedometer stem counter, the function for detect Tilt and Tap. The user also has the functions for configuration device functions for reads interrupt states.

Key functions: void pedometer3_getaccelaxis(int16_t *x_axis, int16_t *y_axis, int16_t *z_axis) - Functions for reading Accel axis data uint16_t pedometer3_getpedometerstepcounter() - Functions for getting pedometer step counter void pedometer3_gettiltposition(uint8_t *current_pos, uint8_t *previous_pos) - Functions for getting Tilt current and previous position void pedometer3_gettapdetection(uint8_t *tap) - Functions for getting Tap detection Examples description The application is composed of the three sections : System Initialization - Initializes I2C module and sets INT pin, AN pin and RST pin as INPUT and CS pin as OUTPUT Application Initialization - Initialization driver init and start configuration chip for measurement Application Task - (code snippet) - Reads Accel and High Pass Accel X/Y/Z axis and detect Tilt Position. All data logs on the USB UART every 500 ms. Note: The start configuration chip is required at the beginning of each program so that the chip wakes up and prepares for operation and measurement. What is included and set in the start-up function can be viewed in the help file. void applicationtask() pedometer3_getaccelaxis( &X_accelAxis, &Y_accelAxis, &Z_accelAxis ); pedometer3_gethighpassaccelaxis( &X_hpAxis, &Y_hpAxis, &Z_hpAxis ); pedstep += pedometer3_getpedometerstepcounter(); mikrobus_logwrite(" Pedometer 3 click ", _LOG_LINE ); mikrobus_logwrite(" Data X axis Y axis Z axis ", _LOG_LINE ); mikrobus_logwrite(" Accel ", _LOG_TEXT ); IntToStr(X_accelAxis, demotext); mikrobus_logwrite(" ", _LOG_TEXT); IntToStr(Y_accelAxis, demotext); mikrobus_logwrite(" ", _LOG_TEXT); IntToStr(Z_accelAxis, demotext); mikrobus_logwrite(" ", _LOG_LINE);

mikrobus_logwrite(" HP Accel ", _LOG_TEXT ); IntToStr(X_hpAxis, demotext); mikrobus_logwrite(" ", _LOG_TEXT); IntToStr(Y_hpAxis, demotext); mikrobus_logwrite(" ", _LOG_TEXT); IntToStr(Z_hpAxis, demotext); mikrobus_logwrite(" ", _LOG_LINE); mikrobus_logwrite(" ", _LOG_LINE ); mikrobus_logwrite(" Pedometer step counter :", _LOG_TEXT ); IntToStr(pedStep, demotext); mikrobus_logwrite(" ", _LOG_LINE); mikrobus_logwrite(" ", _LOG_LINE ); pedometer3_gettiltposition(&currenttiltposition, &PreviousTiltPosition); mikrobus_logwrite(" Current Tilt Position :", _LOG_TEXT ); switch(currenttiltposition) case 1: mikrobus_logwrite(" LEFT ", _LOG_LINE ); case 2: mikrobus_logwrite(" RIGHT ", _LOG_LINE ); case 3: mikrobus_logwrite(" DOWN ", _LOG_LINE ); case 4:

mikrobus_logwrite(" UP ", _LOG_LINE ); case 5: mikrobus_logwrite(" FACE DOWN ", _LOG_LINE ); case 6: mikrobus_logwrite(" FACE UP ", _LOG_LINE ); mikrobus_logwrite(" ", _LOG_LINE ); mikrobus_logwrite(" ", _LOG_LINE); Delay_ms( 400 ); The full application code, and ready to use projects can be found on our LibStock page. Other mikroe Libraries used in the example: I2C Additional notes and information Depending on the development board you are using, you may need USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

https://www.mikroe.com/pedometer 3 click/12 19 18