TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136671 times)
  2. FAT32 Library (69912 times)
  3. Network Ethernet Library (55925 times)
  4. USB Device Library (46252 times)
  5. Network WiFi Library (41882 times)
  6. FT800 Library (41131 times)
  7. GSM click (28973 times)
  8. PID Library (26406 times)
  9. mikroSDK (26349 times)
  10. microSD click (25351 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

Pedometer click

Rating:

5

Author: MIKROE

Last Updated: 2019-06-18

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Motion

Downloaded: 2555 times

Not followed.

License: MIT license  

Pedometer Click is designed to sense movement, more precisely, to sense and count steps taken by its user. It is equipped with the STP201M module, a 3D pedometer module with an IC chipset, which includes a precise G-sensor and MCU.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Pedometer click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Pedometer click" changes.

Do you want to report abuse regarding "Pedometer click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Pedometer click

Pedometer click

Native view of the Pedometer click board.

View full image
Pedometer click

Pedometer click

Front and back view of the Pedometer click board.

View full image

Library Description

The library contains all the necessary functions for detecting and reading the steps.

Key functions:

  • uint8_t pedometer_process() - Pedometer process.
  • uint32_t pedometer_getStepCounter() - Functions for get step counter.
  • void pedometer_resetStepCounter(uint32_t newCnt) - Functions for reset Step counter.

Examples description

The application is composed of three sections :

  • System Initialization - Sets INT pin as INPUT for detection STEP .
  • Application Initialization - Initializes driver init and sets step counter on 0 .
  • Application Task - It checks if a new step is detected, if detected new step - reads the current number of steps made and logs data to the USBUART.
void applicationTask()
{
    uint8_t newStep;
    uint32_t stepCounter;
    char demoText[ 50 ];
    
    newStep = pedometer_process();

    if(newStep == PEDOMETER_NEW_STEP_DETECTED)
    {
        stepCounter = pedometer_getStepCounter();
        LongWordToStr(stepCounter, demoText);
        mikrobus_logWrite(" Step Counter : ", _LOG_TEXT);
        mikrobus_logWrite(demoText, _LOG_LINE);
        
        mikrobus_logWrite("---------------------------", _LOG_LINE);
        Delay_ms( 50 );
    }
}

Other mikroE Libraries used in the example:

  • Conversions Library
  • UART Library

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

USB Host Library

5

USB Host Library presents the user set of functions required to handle USB host module. A embedded user application program uses API defined in this library to access USB host peripheral.

[Learn More]

Accel 11 click

5

Accel 11 click features an ultra-low power triaxial accelerometer sensor with embedded intelligence, labeled as the BMA456.

[Learn More]

Mikromedia+ for Stellaris ARM - RF Communication Example

0

This is demonstration project how Mikromedia+ for Stellaris communicate over RF. Data is send over simple 'led protocol' (1 byte command). Development board for Stellaris with an add-on board nRF Click is used as a receiver device.

[Learn More]