# Title: Pedometer 3 Click Board™ ## Description: Featuring the KX126-1063 IC, based on the advanced ASIC and reliable MEMS, produced using proprietary Kionix manufacturing technology, this Click board™ is a perfect choice for development of fitness-related applications, which rely on functionalities that Pedometer 3 click has to offer: an advanced hardware pedometer functionality with programmable sensing thresholds for the step detection, the Directional Tap/Double-Tap™ detection, the advanced orientation detection, the freefall detection, the tilt detection with the 8-bit timer, and the motion monitoring functionality, including wake-up on motion with programmable thresholds. How Does The Pedometer 3 Click Board™ Work? The Pedometer 3 Click Board™ 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 device-specific 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 Pedometer 3 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 Board™. The Pedometer 3 Click Board™ 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 motion event detection algorithms, proprietary Kionix MEMS technology, data processing ASIC ensures reliable motion event detection. Support for both I2C and SPI communication protocols, large 2K sample buffer, interrupt engine with two programmable pins, etc. Interface I2C,SPI Compatibility mikroBUS Click board size M (42.9 x 25.4 mm) Input Voltage 3.3V 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 ## Product type: Click Board ## Vendor: Mikroelektronika d.o.o. ## Tags: Click Board, Kionix, MikroE, Motion, Pedometer, Sensor ## Price range: 11.2 - 11.2 GBP ## Link: https://thedebugstore.com/products/pedometer-3-click-board-mikroe-3259-uk ## Compare-at price range: 16.0 - 16.0 GBP ## Options - Title: Default Title ## Collections - [New Products](https://thedebugstore.com/a/llms/collections/new-products-debug-store) - [Mikroelektronika d.o.o. (MikroE)](https://thedebugstore.com/a/llms/collections/mikroelektronika-catalogue-uk) - [Kionix MEMS Sensor Development Boards and Tools | Debug Store](https://thedebugstore.com/a/llms/collections/devices-kionix) - [Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/sensor-click-boards-catalogue) - [MikroE Click Boards™](https://thedebugstore.com/a/llms/collections/mikroe-click-boards-catalogue-uk) - [Motion Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/motion-sensor-click-boards-catalogue) - [Click Boards™ Summer Sale](https://thedebugstore.com/a/llms/collections/inventory-sale) - [MikroE Sale](https://thedebugstore.com/a/llms/collections/mikroe-sale) - [MIKROE Stock](https://thedebugstore.com/a/llms/collections/mikroe-products-in-stock-sale) ## Variants - Default Title, SKU: MIKROE-3259, Available: yes, Inventory: 1 ## Metafields - full_description:
Featuring the KX126-1063 IC, based on the advanced ASIC and reliable MEMS, produced using proprietary Kionix manufacturing technology, this Click board™ is a perfect choice for development of fitness-related applications, which rely on functionalities that Pedometer 3 click has to offer: an advanced hardware pedometer functionality with programmable sensing thresholds for the step detection, the Directional Tap/Double-Tap™ detection, the advanced orientation detection, the freefall detection, the tilt detection with the 8-bit timer, and the motion monitoring functionality, including wake-up on motion with programmable thresholds.
The Pedometer 3 Click Board™ 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 device-specific 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 Pedometer 3 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 Board™.
The Pedometer 3 Click Board™ 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.
| 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 motion event detection algorithms, proprietary Kionix MEMS technology, data processing ASIC ensures reliable motion event detection. Support for both I2C and SPI communication protocols, large 2K sample buffer, interrupt engine with two programmable pins, etc. |
| Interface | I2C,SPI |
| Compatibility | mikroBUS |
| Click board size | M (42.9 x 25.4 mm) |
| Input Voltage | 3.3V |
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 |
| 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 |
Pedometer 3 Click Board™ is an acceleration sensing and step counting Click Board™ equipped with the KX126-1063, an advanced tri-axis acceleration sensor IC, which features several acceleration detection algorithms, including a pedometer. The micro-electromechanical sensor (MEMS) element itself is based on the principle of measuring the differential capacitance, which further decreases errors due to manufacturing imperfections and temperature. The MEMS element is coupled with a very sophisticated application-specific IC (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.
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.
- amazon_main_image: https://www.thedebugstore.com/images/product/lg-pedometer-3-front_1.jpg - amazon_other_image_1: https://www.thedebugstore.com/images/product/lg-pedometer-3-back_1.jpg - amazon_other_image_2: https://www.thedebugstore.com/images/product/lg-pedometer-3-click-in-use_1.jpg - amazon_browse_node: 428655031 - mpn: MIKROE-3259 - backorder_label: If no stock shown above, check availability - badge: - widget:We provide a library for the Pedometer 3 Click Board™ 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.
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.
void pedometer3_getAccelAxis(int16_t *x_axis, int16_t *y_axis, int16_t *z_axis) - Functions for reading Accel axis datauint16_t pedometer3_getPedometerStepCounter() - Functions for getting pedometer step countervoid pedometer3_getTiltPosition(uint8_t *current_pos, uint8_t *previous_pos) - Functions for getting Tilt current and previous positionvoid pedometer3_getTapDetection(uint8_t *tap) - Functions for getting Tap detectionThe application is composed of the three sections :
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(demoText, _LOG_TEXT);
mikrobus_logWrite(" |", _LOG_TEXT);
IntToStr(Y_accelAxis, demoText);
mikrobus_logWrite(demoText, _LOG_TEXT);
mikrobus_logWrite(" |", _LOG_TEXT);
IntToStr(Z_accelAxis, demoText);
mikrobus_logWrite(demoText, _LOG_TEXT);
mikrobus_logWrite(" |", _LOG_LINE);
mikrobus_logWrite("| HP Accel |", _LOG_TEXT );
IntToStr(X_hpAxis, demoText);
mikrobus_logWrite(demoText, _LOG_TEXT);
mikrobus_logWrite(" |", _LOG_TEXT);
IntToStr(Y_hpAxis, demoText);
mikrobus_logWrite(demoText, _LOG_TEXT);
mikrobus_logWrite(" |", _LOG_TEXT);
IntToStr(Z_hpAxis, demoText);
mikrobus_logWrite(demoText, _LOG_TEXT);
mikrobus_logWrite(" |", _LOG_LINE);
mikrobus_logWrite("|___________________________________________|", _LOG_LINE );
mikrobus_logWrite("| Pedometer step counter :", _LOG_TEXT );
IntToStr(pedStep, demoText);
mikrobus_logWrite(demoText, _LOG_TEXT);
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 );
break;
}
case 2:
{
mikrobus_logWrite("- RIGHT |", _LOG_LINE );
break;
}
case 3:
{
mikrobus_logWrite("- DOWN |", _LOG_LINE );
break;
}
case 4:
{
mikrobus_logWrite("- UP |", _LOG_LINE );
break;
}
case 5:
{
mikrobus_logWrite("- FACE DOWN |", _LOG_LINE );
break;
}
case 6:
{
mikrobus_logWrite("- FACE UP |", _LOG_LINE );
break;
}
}
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:
I2CDepending on the development board you are using, you may need a 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.
- attachments: [{"download_file":[{"download_file":"Pedometer 3 Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"Kionox FX126-1063 3-Axis Acceleration Sensor Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - condition: new - custom_product: false - mpn: MIKROE-3259 - google_product_category: Electronics - custom_label_0: Click Board - device_vendor: Kionix Inc. - device_type: KX126-1063 - warranty: 12 months - brand: MikroE - key_feature_1: Acceleration Sensing and Step Counting - manufacturer: Mikroelektronika d.o.o. - brands: gid://shopify/Metaobject/56256004319 - breadcrumbs: ["gid://shopify/Collection/447955239135","gid://shopify/Collection/241680580797","gid://shopify/Collection/241545969853"] - customhs_code: 847330 - detailed_description: {"type":"root","children":[{"type":"paragraph","children":[{"type":"text","value":"Featuring the KX126-1063 IC, based on the advanced ASIC and reliable MEMS, produced using proprietary Kionix manufacturing technology, this Click board™ is a perfect choice for development of fitness-related applications, which rely on functionalities that Pedometer 3 click has to offer: an advanced hardware pedometer functionality with programmable sensing thresholds for the step detection, the Directional Tap/Double-Tap™ detection, the advanced orientation detection, the freefall detection, the tilt detection with the 8-bit timer, and the motion monitoring functionality, including wake-up on motion with programmable thresholds."}]},{"type":"heading","level":2,"children":[{"type":"text","value":"How Does The Pedometer 3 Click Board™ Work?"}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Pedometer 3 Click Board™","bold":true,"italic":true},{"type":"text","value":" 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 device-specific settings used on each power-on reset (POR) cycle."}]},{"type":"paragraph","children":[{"type":"text","value":""}]},{"type":"paragraph","children":[{"type":"text","value":"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."}]},{"type":"paragraph","children":[{"type":"text","value":"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 "},{"type":"text","value":"engine","italic":true},{"type":"text","value":" 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 "},{"type":"text","value":"Pedometer 3 Click Board™","bold":true},{"type":"text","value":" comes with the mikroSDK compatible library which contains simplified functions, that allow simple setup of the KX126-1063 sensor IC and rapid application development."}]},{"type":"paragraph","children":[{"type":"text","value":"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."}]},{"type":"paragraph","children":[{"type":"text","value":"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."}]},{"type":"paragraph","children":[{"type":"text","value":"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 "},{"type":"text","value":"Pedometer 3 Click Board™","bold":true},{"type":"text","value":"."}]},{"type":"paragraph","children":[{"type":"text","value":"The "},{"type":"text","value":"Pedometer 3 Click Board™","bold":true},{"type":"text","value":" 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."}]},{"type":"heading","level":3,"children":[{"type":"text","value":"SPECIFICATIONS"}]},{"type":"paragraph","children":[{"type":"text","value":"Type\nMotion\nApplications\nIt 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.\nOn-board modules\nKX126-1063, ±2g / ±4g / ±8g / ±16g tri-axis digital accelerometer, by Kionix\nKey Features\nAdvanced motion event detection algorithms, proprietary Kionix MEMS technology, data processing ASIC ensures reliable motion event detection. Support for both I2C and SPI communication protocols, large 2K sample buffer, interrupt engine with two programmable pins, etc.\nInterface\nI2C,SPI\nCompatibility\nmikroBUS\nClick board size\nM (42.9 x 25.4 mm)\nInput Voltage\n3.3V"}]},{"type":"heading","level":3,"children":[{"type":"text","value":"PINOUT DIAGRAM"}]},{"type":"paragraph","children":[{"type":"text","value":"This table shows how the pinout on "},{"type":"text","value":"Pedometer 3 Click","bold":true},{"type":"text","value":" corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns)."}]},{"type":"paragraph","children":[{"type":"text","value":"Notes\nPin\nPin\nNotes\nSample buffer CTRL\nTRG\n1\nAN\nPWM\n16\nNC\nInterrupt #2\nIT2\n2\nRST\nINT\n15\nINT\nInterrupt #1\nSPI Chip Select\nCS\n3\nCS\nRX\n14\nNC\nSPI Clock\nSCK\n4\nSCK\nTX\n13\nNC\nSPI Data OUT\nSDO\n5\nMISO\nSCL\n12\nSCL\nI2C Clock\nSPI Data IN\nSDI\n6\nMOSI\nSDA\n11\nSDA\nI2C Data\nPower supply\n3V3\n7\n3.3V\n5V\n10\nNC\nGround\nGND\n8\nGND\nGND\n9\nGND\nGround"}]},{"type":"heading","level":3,"children":[{"type":"text","value":""},{"type":"text","value":"ONBOARD SETTINGS AND INDICATORS"}]},{"type":"paragraph","children":[{"type":"text","value":"Label\nName\nDefault\nDescription\nPWR\nPWR\n-\nPower LED indicator\nJP1\nTRIG\nLeft\nTrigger pin function select: left position - disabled, right position - enabled\nJP2\nI2C ADDR\nLeft\nI2C slave address selection: left position - LSB = 1, right position - LSB = 0;\nJP3-JP5\nCOM SEL\nLeft\nCommunication interface selection: left position I2C, right position SPI"}]}]} - summary:The Pedometer 3 Click Board™ is an acceleration sensing and step counting Click Board™ equipped with the KX126-1063, an advanced tri-axis acceleration sensor IC, which features several acceleration detection algorithms, including a pedometer. The micro-electromechanical sensor (MEMS) element itself is based on the principle of measuring the differential capacitance, which further decreases errors due to manufacturing imperfections and temperature. The MEMS element is coupled with a very sophisticated application-specific IC (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.
It comes in the package which also includes the mikroSDK software and a library with all the functions. The Pedometer 3 Click Board™ comes as a fully tested and approved prototype, making it a reliable device ready to use on the development board.