Giter Site home page Giter Site logo

msoftware / diyecg-1opamp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from swharden/diyecg-1opamp

0.0 1.0 0.0 810 KB

A surprisingly good ECG circuit using a single op-amp and some Python software

Home Page: https://www.swharden.com/wp/2016-08-08-diy-ecg-with-1-op-amp/

License: MIT License

Batchfile 0.45% Python 99.55%

diyecg-1opamp's Introduction

DIY ECG (with 1 op-amp)

A surprisingly good ECG is possible using a single op-amp. The main idea is that you allow the simple circuit to amplify noise (mixed in with your ECG), send the noisy signal into a PC using the microphone jack of the sound card, then use Python to remove the noise in real time, revealing the ECG.

Project page: http://www.swharden.com/wp/2016-08-08-diy-ecg-with-1-op-amp/

YouTube demo: https://www.youtube.com/watch?v=AfirWls9Sys

Alternative Project (Sound Card ECG)

Many people have found this python source code difficult to use due to its dependence on version-specific libraries. A simpler click-to-run EXE for Windows that does essentially the same thing (written in C#) is available on the Sound Card ECG project page.

Screenshot Video Demonstration
SoundCardECG Demonstration

Python GUI

Warning: This Python 2 code is obsolete. To get this software running you must install a legacy Python 2 on your system. Consider using a more modern software option like this Sound Card ECG using C#/.NET.

This software needs certain libraries like PyQt4 and numpy, so the easiest way to make sure you have versions of everything that get along is to download a pre-packaged Python distribution. This software has been tested and works with WinPython 3.5.2.1 (not the Qt5 one)

  • install WinPython-64bit-3.5.2.1 (not the Qt5 one)
  • download this project and modify go.bat to reflect where your python.exe is
  • build the circuit, plug it into your microphone hole, and run go.bat

Python Analysis

If you build the 1-op-amp ECG circuit and record data as a WAV file you can use a Python script like analyze.py to reduce the noise and plot the result, creating an interactive figure like this:

Hardware

---

diyecg-1opamp's People

Contributors

swharden avatar dandawson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.