Skip to content

Latest commit

 

History

History
119 lines (66 loc) · 3.28 KB

README.md

File metadata and controls

119 lines (66 loc) · 3.28 KB

ArduinoAD8232ECG

A python frontend for an arduino AD8232 based ECG. Noise reduction and baseline correction are included to produce plots such as this:

Image of HR


Table of Contents


Introduction

  • Electode Placement:

Image of Placement

  • A quick tour:

Image of Gui

  1. Select the COM port the arduino is using. Look in device manager under ports.
  2. This will start/stop monitoring the selected port. This does not record anything. You should see data in (4) if connected correctly.
  3. Starts recording of data. When stop is clicked a prompt will come up to save the data as an excel file. This data has been processed. Try not to record for years I have zero idea how well this copes with large data sets.
  4. Live graph of incoming raw unfiltered data. Yes it looks choppy but is only intended to be a viewfinder and not the final data.
  5. Close the program and kill any serial connection.

Installation

The arduino side

  • Flash the .ino to your arduino. Ensure that all the data pins are correct. These three lines will need changing depending on which pins you decide to use. See wiring diagram below.

Image of Wiring

This image is stolen (under licence conditions) from the brilliant rescource at https://learn.sparkfun.com/tutorials/ad8232-heart-rate-monitor-hookup-guide/all I would highly reccomend checking this out if you are doing a similar project.

pinMode(10, INPUT); // Setup for leads off detection LO +
pinMode(11, INPUT); // Setup for leads off detection LO -
Serial.println(analogRead(A0));

The python side

  • Anaconda navigator was installed for my setup. Run the .py however you want, in my case I ran it in visual code.
  • A few pakages might need installing. todo I will clean up the code to try to remove unused dependencies.

Contributing

I'm new to git - this is very likely wrong.

Step 1

  • Option 1

    • 🍴 Fork this repo!
  • Option 2

    • 👯 Clone this repo to your local machine using https://github.com/ChrisDavi3s/ArduinoAD8232ECG.git

Step 2

  • HACK AWAY! 🔨🔨🔨

Step 3


FAQ

  • How do I do specifically so and so?

    • No problem! Just do this

    (WIP)


Support

To come. Will actually try to comment some of my code sorry!


Donations (Optional)

  • Buy me a coffee if you ever meet me.

License and other important things

  • This is not for medical use. I have made this for fun and any results should not be relied on. If in doubt please seek professional medical advice (ie not mine). No responsibility will be accepted for any harm that is caused by use of this code as per the licence agreement.