Introduction
Electricity is everywhere, even in the human body! Our tiny cells are specialised to conduct electrical current, and that's what makes the heart go. Often, to diagnose heart conditions, Electrocardiogram is used. An electrocardiogram or ECG, is nothing more than a recording of the heart's electrical activity.Â
The AD8232 is a chip used to measure the electrical activity of the heart. In this guide, we'll show you how to get an ECG signal reading from the AD8232 Heart Rate Sensor with our 100% Arduino-compatible board, the Little Bird Uno R3.
The AD8232 is a chip used to measure the electrical activity of the heart. In this guide, we'll show you how to get an ECG signal reading from the AD8232 Heart Rate Sensor with our 100% Arduino-compatible board, the Little Bird Uno R3.
Tools
-
-
-
-
-
-
-
-
-
-
-
-
-
void setup() { // initialize the serial communication: Serial.begin(9600); pinMode(9, INPUT); // Setup for leads off detection LO + pinMode(10, INPUT); // Setup for leads off detection LO - } void loop() { if((digitalRead(9) == 1)||(digitalRead(10) == 1)){ Serial.println('!'); } else{ // send the value of analog input 0: Serial.println(analogRead(A0)); } //Wait for a bit to keep serial data from saturating delay(1); }
-
-
-