TOP Contributors

  1. MIKROE (2649 codes)
  2. Alcides Ramos (350 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 (136497 times)
  2. FAT32 Library (69707 times)
  3. Network Ethernet Library (55813 times)
  4. USB Device Library (46153 times)
  5. Network WiFi Library (41791 times)
  6. FT800 Library (40974 times)
  7. GSM click (28918 times)
  8. PID Library (26379 times)
  9. mikroSDK (26265 times)
  10. microSD click (25290 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

ECG 4 click

Rating:

5

Author: MIKROE

Last Updated: 2019-03-06

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Biometrics

Downloaded: 3203 times

Not followed.

License: MIT license  

ECG 4 Click is a complete solution for the development of ECG and Heart-Rate (HR) applications, based on the BMD101, a specialized bio-signal sensing System-on-Chip (SoC).

No Abuse Reported

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

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

Do you want to report abuse regarding "ECG 4 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 FT90x
  • 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 FT90x
  • 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 FT90x
  • 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

ECG 4 click

ECG 4 click

Native view of the ECG 4 click board.

View full image
ECG 4 click

ECG 4 click

Front and back view of the ECG 4 click board.

View full image

Library Description

The library performs the ECG and Real-time Heart Rate measurements. For more details check documentation..

Key functions:

  • void ecg4_response_handler_set( void ( *handler )( uint8_t*, uint8_t*, uint8_t*, uint8_t* ) ) - Function sets handler on the function that should be performed, for example, function for results logging.
  • void ecg4_uart_isr( void ) - Function performs the uart interrupt routine, reads a data from uart rx buffer and makes a response from the BMD101 device.
  • T_ECG4_RETVAL ecg4_responseReady( void ) - Function returns 1 when response is ready for reading, or 0 if is not ready.

Examples description

The application is composed of the three sections :

  • System Initialization - Initializes peripherals and pins.
  • Application Initialization - Initializes UART interface, performs a reset of the device and powers up control of Low Drop Out (LDO).
  • Application Task - (code snippet) - Always checks does response ready and, when is ready, processes a response. Note : The Sound library is used to play sound on buzzer every time when R interval on the ECG signal happened. The Sound Play command can make a delay time which is necessary for play command to be performed. If you don't need to make sound on buzzer, please disable the Sound Init and Sound Play functions.
void applicationTask()
{
    resp_ready = ecg4_responseReady();
    
    if (resp_ready == _ECG4_RESPONSE_READY)
    {
        processResponse();
    }
}

Additional Functions :

  • interrupt - Always checks does new data ready for reading from uart rx buffer, and if is it true reads one byte data from uart and makes a response sequence.
  • plotData - Sends a desired data (Raw Data) to the serial plotter.
  • logData - Sends data to the uart terminal and shows results.
  • makeResponse - Pars a response to the buffer.
  • processResponse - Processes a parsed response and makes a decide where response will be showed.

Other mikroE Libraries used in the example:

  • Conversions
  • UART
  • Sound

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

WiFi 11 click

5

WiFi 11 Click is a compact add-on board that contains a WiFi and Bluetooth module that has dual bands for WiFi communication. This board features the BW16, a single-chip low-power dual bands Wireless LAN (WLAN) and Bluetooth Low Energy SoC module from Shenzhen B&amp;amp;T Technologies Co., Ltd.

[Learn More]

Headphone AMP 3 click

0

Headphone AMP 3 Click is a compact add-on board that contains a stereo headphone amplifier. This board features the INA1620, a high-fidelity audio operational amplifier with integrated thin-film resistors and EMI filters from Texas Instruments. Over its dual amplifiers, it achieves a very low noise density and drives a 32Ω load at 150mW of output power.

[Learn More]

WiFi ESP click

0

WiFi ESP click carries the ESP-WROOM-02 module that integrates ESP8266EX.

[Learn More]