AD8232 Heart Rate Monitor Hookup Guide

Contributors: CaseyTheRobot
Favorited Favorite 10

Arduino Example

Note: This code has been written and tested on Arduino IDE version v1.0.5. Otherwise, make sure you are using the latest stable version of the Arduino IDE on your desktop. If this is your first time using Arduino, please review our tutorial on installing the Arduino IDE. Also, make sure to check out the following tutorials before uploading code: How to Install FTDI Drivers and Using the Arduino Pro Mini 3.3V.

By this point, you should have the hardware connected and ready. The example sketch can be found in the GitHub repository.

You can cut and paste the code straight from GitHub or clone the repository and open the file. Make sure to select the correct board (i.e. Arduino Pro Mini 3.3V/8MHz) and COM port. When you are ready, hit the upload button to upload the code to your board.

Upload Arduino Example Code

Upload Sketch to Arduino Pro Mini 3.3V/8MHz

To verify that the heart rate monitor is working as expected, open the serial monitor at 9600 baud. You should see values printed on the screen. Below is an example output with the sensors connected on the forearms and right leg. Your serial output should spike between +300/-200 around the center value of about ~500.

AD8232 Heart Rate Monitor Serial Output

The serial data is hard to visualize if you are just viewing the values. If you are using Arduino IDE v1.6.6+, there is an option to view the data on a graph using the Arduino Serial Plotter as one option. In the Arduino IDE, select Tools > Serial Plotter. You should see a waveform similar to the image below when the sensors are placed correctly and not moving.

AD8232 Heart Rate Monitor Serial Plotter Graph