by WallySci

An affordable, open source all-in-one bio-sensing platform

View all updates Nov 09, 2020

Miniature Heart Health Monitoring using ECG Sensor

by Varan Gupta

WallySci’s ECG sensor is used to capture electrical signals originating from the heart via electrodes. The signal through the electrodes is filtered and amplified which is then presented in the form of Analog Output. An ECG sensor can be used for prototyping a portable heart monitoring device.

Disclaimer: Not for clinical use. Only for educational purposes

What is Electrocardiography?

One of the important parameters that are measured by a doctor to know the health of a person is cardiac muscle activity.

Electrocardiography is a way to measure cardiac muscle activity with electrical signals, using electrodes placed on the skin. These electrodes measure the change in voltage that is a consequence of cardiac muscle depolarization followed by repolarization during each cardiac cycle (AKA the heartbeat). These signals are then represented in the form of a graph known as Electrocardiogram (ECG). By analyzing these signals, one can determine the health of the heart.

Clinically, ECG machines use 12 leads that are placed near the wrist, foot, and across the heart above the chest. With the advancement in sensor technology and the need to monitor ECG at home, ECG machines have been miniaturized. One can get good quality ECG signals from 3 lead systems and miniature electronics. Signals received are further filtered both electronically and at the software level.

In this experiment, we will learn how to capture the ECG signals, visualize it realtime.

Connection Diagram

Connections between DCPU and ECG sensor


  • Connect the ECG sensor to any of the 6 ports available on DCPU as shown in the connection diagram.

Connections between DCPU and ECG sensor

  • Connect 3 lead electrode cables to the ECG sensor. Place the electrodes as shown in image below. The reference electrode has to be placed on the left-leg ankle or at the back of the left-hand palm (or somewhere close to the bone with least muscle activity). The other two electrodes will be placed one on right hand wrist and other on left hand wrist.

Placement of the electrodes (red dot is the reference electrode). (Credit: Wikipedia.com)

  • Power up the DCPU

  • Open the GUI and select the channel to which ECG Sensor is connected. It is recommended to select the sampling rate more than 128 for better signal visualization.

  • Sample ECG data in the GUI is shown in the image below.

Sample ECG Data as seen on GUI

About the Author

Varan Gupta


$13,386 raised

of $4,000 goal

334% Funded! Order Below

Product Choices


E3K Combo

The E3K Combo is the full set of modules: One Wi-Fi and BLE-enabled Data Communication and Processing Unit (DCPU) with ESP32-DevKitC-32E, one EMG sensor, two ECG/EEG sensors, and one IMU sensor. The Combo also comes with one electrode cable and five electrode pads.



WallySci is committed to fostering an environment for hands-on exploration at the interface of computer science, robotics, and bioengineering. E3K is especially designed for students and researchers, the robust, high-performance sensors provide an opportunity for rapid prototyping of hacker devices and unconstrained scientific quest. "Seriously Quirky Bio-sensing"

Varan Gupta

Sanjeev Thukral

See Also

Subscribe to the Crowd Supply newsletter, highlighting the latest creators and projects: