ECEdge

Exam: GATE 2027 exams are on 6, 7, 13, 14, 20 and 21 February 2027. Official GATE 2027 site

Clean up an ECG signal with digital filters

Record a heart signal with an AD8232 module and an Arduino, remove the 50 Hz mains hum and baseline drift with digital filters, and calculate heart rate.

What this proves to recruiters

  • You can filter real, noisy biomedical signals.
  • You can detect features in a signal.
  • You think about safety when working with people.

Skills you will use

Raw and filtered heartbeattime (s)raw: hum and driftfiltered
After filtering, the R peaks stand out clearly, so heart rate is easy to measure.

Parts list

You can buy the listed parts online here:

PartQtyApprox. priceShop
Arduino Uno compatible board with USB cable1₹550Find on Amazon
AD8232 ECG sensor module with electrodes1₹550Find on Amazon
Breadboard, 830 points1₹90Find on Amazon
Jumper wire set (male-male and male-female)1₹120Find on Amazon
Total, about₹1,300

Prices are rough online prices in India and change with the seller. You may already have some parts, or find them in your college lab.

As an Amazon Associate I earn from qualifying purchases. Buying through these links costs you nothing extra and helps keep this site free.

Free software

  • Arduino IDE
  • Python with SciPy

Steps

  1. Safety first: run the laptop on battery, unplugged from the charger, while electrodes are on. This is a learning project, not a medical device.
  2. Connect the AD8232 output to A0 and sample at 250 Hz, sending values over serial.
  3. Record 30 seconds and plot the raw signal: you will see hum and a wandering baseline.
  4. Apply a 0.5 Hz high-pass filter for drift and a 50 Hz notch for hum.
  5. Detect the tall R peaks and compute heart rate from the time between them.
  6. Compare your heart rate with a smartwatch or counting your pulse.

Make it stand out

  • Run the filters on the Arduino in real time.
  • Show heart rate on an OLED.

Put it on your resume

Acquired ECG with an AD8232 and Arduino; removed baseline drift and 50 Hz hum with digital filters and computed heart rate from R-peaks.

Replace each [x] with a number you measured. Real numbers make a line believable.

Keep going

This project fits stage 2, “Digital signal processing”, of the Signal processing and edge AI roadmap. See also how freshers get into embedded AI and DSP engineer jobs.

More Signal processing and edge AI projects

All 49 project ideas