CSE 466 Lab 8-- Final Project:
Building the Electrocardiograph

Introduction

In this lab you'll use the amplifier circuit you built in Lab 7. Then you will interface it to the FriendlyArm for use in next week's lab.

Objectives

In this lab, you will learn about:

Suggested Reading and Resources

Material on detection algorithms

First Week Lab:

I. Display a heart trace on the FriendlyArm LCD

Connect your circuit from Lab 7 to your FriendlyArm board via the GPIO connector and cable, labeled conn6.

You should be using VDD33V (pin 2)for power, GND (pin 3) for return, and AIN1 (pin 6) as input to the FriendlyArm's on-board 10-bit ADC.

conn6

conn6 pinout

II. Add calibrated grid to your display, and some controls

You should add a grid to your display, with the following characteristics (your choice of color):

grid

Deliverables

Final Week Lab: (preliminary... watch for additions)

III. Add some digital processing to clean up your signal

Add some digital filtering to your code to smooth and clean your signal. See the lecture notes on Digital Filtering.

A lowpass butterworth 4-pole IIR filter, an FIR lowpass filter or a moving-average filter are possible choices.

IV. Add Heart Rate display to your FriendlyArm software

Implement a QRS detection algorithm, derive the Heart Rate and and display it. In your code comments, include a brief explanation of how your algorithm works. See the references and lecture slides on QRS detection. Optionally, add a measure of variance (like Std Deviation).

Deliverables