Code examples for ECG click, written for MikroElektronika hardware and compilers are available on Libstock
Part | Datasheet |
---|---|
![]() |
MIKROE-2455 (pdf) |
Related Parts | Information |
---|---|
![]() |
MIKROE-2458 |
PDF Datasheet Preview |
---|
ECG click ECG click ECG click ECG click IC/Module MCP609 OpAmp [1] MAX6106 Voltage Reference [2] Interface AN Power supply 5V Website [3] Schematic ECG click schematic [4] ECG click measures the electrical activity of a beating heart through electrodes taped to the skin. It requires little setup, and the final measurement results can be displayed as an Electrocardiogram using a free app. Note ECG click is a prototyping tool, not a medical-grade device. Do not use it to diagnose patients. Necessary components In order to record ECG, you will need the following • ECG click • Cable • Disposable electrodes All of the above items are sold in our store. You can buy them separately, or as a ECG kit bundle. The disposable electrodes come in a pack of ECG click Circuit design and operating principles There is onboard 3.5mm phone jack that is used to connect cables/electrodes to the click board. Electrode should collect voltage form the skin few millivolts . Signal from the jack should be amplified and filtered. Therefore, ECG click can be divided into seven blocks. Protection - Provides ESD protection protects click , Overvoltage and Overcurrent protection protects the human . In addition to protection, the input block filters and prevents radio waves fro “enter” the preamplifier. Preamplifier is implemented through three operational amplifiers configured as an instrumentation amplifier IA amplifies the voltage difference between “+” and “-“ electrode which at its output provides a single-end signal. High-Pass filter should eliminate the DC component of the signal = 1.6Hz . It is a passive RC filter first order . Amplifier provides additional amplification that can be adjusted using the trimmer potentiometer VR1. This is to that the analog output could accommodate to the input voltage range of the ADC. The amplifier is implemented using an operational amplifier in a non-inverting configuration. ECG click High-Pass filter Should eliminate the DC component of the signal = Hz this time after the amplifier. It is also a passive RC filter first order . Low-Pass filter Should limit the frequency range to 60Hz. It is a third order active filter with a gain of 15 second order Sallen-Key filter topology + passive RC filter first order = third order filter . DRL circuit Driven Right Leg this type of circuit is often added to biological signal amplifiers to reduce Common-mode interference. Amplifiers for bio signals, such as ECG, measure very small electrical signals emitted by the body measured in miliVolts or even microVolts . Unfortunately, the human body can also act as an antenna which picks up electromagnetic interference, particularly 50/60 Hz noise from electrical power lines. This interference can obscure the biological signals, making them hard to measure. Right Leg Driver circuitry is used to eliminate interference noise by actively canceling it. It is a selective amplifier stage that shifts the phase of signal for 180° inverting and returns it to respondents in order to cancel. Hardware configuration jumpers and settings ECG click has one jumper and a trimmer potentiometer for setting the output voltage to match the input voltage level of the ADC which will be used. The SMD 0805 jumper determines its output voltage range. When you connect all three electrodes to each other, the output should be a constant voltage either 1.024V or 2.048V depending on the jumper position . This value is the zero-voltage line on the graph. The positive part of the ECG waveform will go above zero and the negative part will go below zero. The trimmer potentiometer is for adjusting the gain. So if we set the jumper to position zero is now 1.024V that means that the gain should be set so that the ECG waveform is in the range of 0-2.048V. If we set the jumper to the position zero is now 2.048V , the gain should be set so that the ECG waveform is in the range of 0-4.096V. For optimal results, the target board MCU should have at least a 10-bit ADC 12-bit recommended . Sampling rate should be at least 256Hz. We also recommended that the target development board is powered from the battery via a connector for external power supply. ECG click Hooking up the electrodes Electrocardiography is performed by measuring the heart's electrical activity through electrodes taped to the surface of the skin. The three electrodes are placed on the left arm, right arm and the left side of the abdomen below the heart , on the left leg. Here's how the electrodes are marked and color coded: • Left leg LL red • Left arm LA black • Right arm RA white Tips for better results: • Try not to move much while measuring, because the electrodes will pick up noise from muscle activation • Experiment with the positioning of the disposable electrode pads • Use new pads for each measurement • Clean the skin area where you want to apply the pads If you want visual instructions, see our ECG click setup guide Programming The code shown here initializes the ADC for measuring the ECG, and UART for talking to the PC. When the button is pressed, the timer interrupt will be initialized. An interrupt is generated every ms, upon which the MCU gathers ADC and time data, and sends it to the PC over UART, until the timer reaches 15 seconds. #include <stdint.h> #include <stdbool.h> void T1CON T1IP0_bit T1IP1_bit = 0x8010 = 1 = 1; ECG click T1IP2_bit T1IF_bit T1IE_bit PR1 TMR1 = 1 = 0 = 1; = 39000 = 0; |
More datasheets: DBMAE44S | CA3102R32-A10P | 387000177 | HM2P07PMA1U1GF | SLE 66CLX640P M8.4 | DEMM9SR | 200.0063 | 76650-0073 | CMM6004-SC-0G0T | MIKROE-2458 |
Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived MIKROE-2455 Datasheet file may be downloaded here without warranties.