DIY ECG - 1 op-amp version

Поделиться
HTML-код
  • Опубликовано: 23 июл 2024
  • This DIY ECG design uses a single op-amp (LM741) and 5 resistors. The circuit outputs to the PC microphone, and custom software written in Python does some filtering and graphs the result in real time!
    NEW VIDEO WITH BETTER SOFTWARE AND BETTER CIRCUIT: www.youtube.com/watch/sP_-f5n...
    project page:
    www.swharden.com/wp/2016-08-08...
    githib project:
    github.com/swharden/diyECG-1o...
  • НаукаНаука

Комментарии • 130

  • @_AmHam_
    @_AmHam_ 5 лет назад +2

    man ! I don't know where to start, you're simply amazing ! the way you explain is just terrific!

  • @luckystrike5962
    @luckystrike5962 5 лет назад +4

    This world needs more people like you! Thanks for the video, cheers!

  • @pierostefanoberaungasco8160
    @pierostefanoberaungasco8160 5 лет назад +5

    You literally saved my life bro, congratulations!!!

  • @benjooo
    @benjooo 4 года назад

    I would like to see how real expensive ECG is showing graph comparing at same time with your ECG. YOU ARE amazing in explaining things, straight to important things, easy understandable language. BRAVO. greetings from Bosnia

  • @martinkulik9466
    @martinkulik9466 5 лет назад +1

    Dcott you deserve a medal and NOBEL PRIZE! whatever the accuracy even tho I know almost nothing about this, you for sure deserve a nobel prize!

  • @alirezajafari4405
    @alirezajafari4405 2 года назад +2

    I'm glad you're okay

  • @radoslavradoslavov3528
    @radoslavradoslavov3528 5 лет назад

    Probably the best video from that kind! I must try it! Please keep detailings

    • @swharden
      @swharden  5 лет назад

      I'm glad you like it! Definitely check out my more recent version: ruclips.net/video/sP_-f5nsOEo/видео.html

  • @imen2262
    @imen2262 7 лет назад

    Hello, Scott!
    It is pleasant to me as you approach the solution of complex challenges! I am not an expert in electronics. But your project very much helped me. Now I try to create the cheap 1-channel sensor ECG about bluetooth connection. If it is interesting to you, we can discuss it. Igor.

  • @JacobAntoun
    @JacobAntoun 6 лет назад

    Great video quality and awesome show and tell!

  • @ReplicateReality
    @ReplicateReality 6 лет назад +1

    Your my hero man i have a bunch of projects im almost capable of doing and your a big help along the way

    • @swharden
      @swharden  6 лет назад

      Elliott Bork I’m glad you got inspiration from my videos! Keep building things and having fun =]

  • @MdKhairulAlamTaifur
    @MdKhairulAlamTaifur 7 лет назад

    You have done an excellent work.

  • @tim46767
    @tim46767 8 лет назад +1

    to prevent issues from the computer, just add a capacitor in series to the input line.
    Great project TY
    Tim

    • @swharden
      @swharden  8 лет назад

      I actually don't think this is a winning idea. A passive series capacitor on the output will act as a high-pass filter and preferentially pass the 60Hz noise and resist the low frequency signal that is the ECG. To let the ECG signal pass, you need a very large value capacitor. I don't think it provides a lot of benefit, and if you really want isolation from a computer consider using an opto-isolator.

  • @sunnyshen8954
    @sunnyshen8954 7 лет назад +1

    Scott you are great... I just followed the instructions, and do you know what! it's awesome man. Its running. thank you very much. its amazing.

    • @harieshramanathanmanickam528
      @harieshramanathanmanickam528 6 лет назад

      Sunny Shen I would like to know how to run the python programming please guide me regd ! I would like to implement it at my village to help a dr pls help me related

    • @allenspain7696
      @allenspain7696 6 лет назад

      @Sunny where you able to get the same profile on an oscilloscope?

  • @catafest
    @catafest 5 лет назад

    Is like a predator display into bandwidth, this can be more interesting if you can try to get signals from the environment using an AI python module to detect more into the area. I like also the UI you created to show the ECG.Very simple and well done project.

  • @lelandclayton5462
    @lelandclayton5462 8 лет назад +3

    That is a awesome project.

  • @radiorider8249
    @radiorider8249 8 лет назад

    Nice Scott, congratulations.

  • @mohammedahmed7126
    @mohammedahmed7126 3 года назад

    Thank you bro. Your software really helped me.

  • @psane
    @psane 8 лет назад +1

    Great video. Learned a lot

  • @badfrog
    @badfrog 6 лет назад

    I'd love to see the output of this with the leads in better positions!

  • @luka7669
    @luka7669 7 лет назад +1

    Hi, great project! I am wondering if the electrode on the leg is necessary? Could it work with just two el. on chest?

  • @tariqimtinan1707
    @tariqimtinan1707 7 лет назад +1

    where did you connect the ground of 3.5mm audio jack?

  • @jorgetrinidadmorales4096
    @jorgetrinidadmorales4096 7 лет назад +1

    amigo ya tego el circuito pero como le hago para que mi compu muestre el latido de mi corazon, que programa usaste???

  • @brunoluigi18042004
    @brunoluigi18042004 2 года назад

    Incredible Projects, thanks

  • @ericrawson2909
    @ericrawson2909 2 года назад

    Would it not be very easy to have a second stage of amplification with two RC networks to give 6dB per Octave rolloff to do the low pass filtering, so you could display the signal on a scope directly?

  • @agustinzavala7755
    @agustinzavala7755 5 лет назад +1

    I'm doing this on a laptop and when I connect the 3.5mm cable, doesn't change the wave, it seems random

  • @JeredL
    @JeredL 8 лет назад +2

    Awesome job!!!

  • @tylerpattison2560
    @tylerpattison2560 8 лет назад +1

    Very elegant!

  • @ReplicateReality
    @ReplicateReality 6 лет назад

    Would you be able to program a version that is able to negate the heart beat but turn it into a EMG signal amplifier? Cuz i want to do that and advice would be awesome

  • @themonkeyminds7252
    @themonkeyminds7252 7 лет назад +1

    sir c@n u tell that how to make audio meter and it displays graph in really time through PC....please sir help....
    WAITING FOR YOUR RESPONSE

  • @golloog
    @golloog 6 лет назад

    is there a way to make it show the waveform on an oscilloscope?

  • @gabrielaalejandragarcia5642
    @gabrielaalejandragarcia5642 4 года назад

    great project, i'm building it now. please can you add millimeter divisions in software( time and millivolts) ? it's useful to measure branch blocks, electrical axis and so on. thanks in advance

  • @sunilkumarlaxmanbhairohit1379
    @sunilkumarlaxmanbhairohit1379 6 лет назад +1

    I have question that your project is working on Windows but how to implement project on Raspberry Pi ?

  • @AnteBrkic
    @AnteBrkic 2 года назад

    Made it, it works! It also receives some funny radio station lol

  • @TheCarloszoom3000
    @TheCarloszoom3000 5 лет назад +1

    Great project man. I wired it as shown in the schematic and even used 3 coins as the electrodes. I put them 2 on left and right chest and right leg. All i'm getting is a bunch of noise in the .exe app.
    What could be wrong?

  • @gpintarelli
    @gpintarelli 8 лет назад +2

    Awesome project :)

  • @widi1705
    @widi1705 Год назад

    Sehr gutes und interessantes Video - Vielen Dank dafür !!!

  • @trevorloughlin1492
    @trevorloughlin1492 3 года назад

    I want to run a telerobot from my own myoelectric signals. Do myoelectric amplifiers need more amplification than an EEG? Also do you have a c# version of your EEG project? I built my own hardware true random number generator using a 741 op-amp and you have shown me why it could be unreliable using a breadboard due to the antennae effect. The reason I needed a TRNG was I have found a way using them with some clever software and maths to overcome the no communication theorem and send FTL signals on a CTC. I now use a Comscire QNG because building my own fast TRNG was too much like hard work.

  • @vincentsteinmetz3726
    @vincentsteinmetz3726 2 года назад

    Hello, i did it, it works very nice. This is super project, i'm really fan :)

  • @shimonymittal410
    @shimonymittal410 7 лет назад

    I tried ur ckt with your software, I m getting only noise... there is no pqrs waveform seen...need help urgently

  • @khalidjj2073
    @khalidjj2073 2 года назад

    Excellent video! How to expand this yo build a 12 lead ekg dyi....thanks

  • @FerchoGarcia123
    @FerchoGarcia123 7 лет назад +1

    It works :D !! Im very excited!! Thank you Scott for share this project.
    I have this question: if a use an oscilloscope to project the signal and a pasive RC Low-Pass filter should i see the same signal? or i have to use the instrumentation amplifier as you said at the begining of the demostration?
    Thank you again, and have my best wishes!

    • @TheCarloszoom3000
      @TheCarloszoom3000 5 лет назад

      I did the wiring and but i'm only getting a bunch of noise. Did you tried including the low pass filter and checked the signal in the scope?

    • @CodeZhifty
      @CodeZhifty 2 года назад

      Do you remember how many watts the resistors was?

  • @muhammetyusufyilmaz1828
    @muhammetyusufyilmaz1828 2 месяца назад

    Can you explain what is + bat and - bat on picture 13.44

  • @harieshramanathanmanickam528
    @harieshramanathanmanickam528 6 лет назад

    Hi sir great projects what about the electrode placements sir ?

  • @sachin123213
    @sachin123213 4 года назад

    I made this circuit, but how to run that software, please help.

  • @shimonymittal410
    @shimonymittal410 7 лет назад

    Also I tried again now there is prblm in the UI of software...its starting n stopping aftr few ms

  • @tserbos2
    @tserbos2 6 лет назад

    Can you use the graph to calculate bpm ? Can the output graph + the bpm to displayed in a little i2c screen with the help of arduino ?

    • @miron__
      @miron__ 6 лет назад

      the arduino probably doesn't have enough processing power to do FFT and low-pass in software. you would have to make your own program that just looks at the peaks in the signal

  • @vres15
    @vres15 7 лет назад +1

    Could this program be used for the acquisition of a pulse oximeter signal?

    • @zucc4764
      @zucc4764 2 года назад

      I know it's 4 years late but definitely! You can use a constant light source and a detector such as a phototransistor and feed that signal instead

  • @amarug
    @amarug 7 лет назад

    awesome work

  • @ifehrim2097
    @ifehrim2097 6 лет назад

    This project can only collect ECG waves?

  • @ifehrim2097
    @ifehrim2097 6 лет назад

    good start ...the project simple , its awesome !?!!!!?!!!

  • @mystwalker479
    @mystwalker479 3 года назад

    You can use this circuit to record any muscle activities (arm for example) too right? Afterall it picks up potential actions right?

    • @swharden
      @swharden  3 года назад

      Yes. If you put the pads on your forearm, for example, it should act as a crude EMG (electromyogram)

  • @istvannagy2947
    @istvannagy2947 8 лет назад

    Fantastic! :D Thank You! :)

  • @hussain55019
    @hussain55019 3 года назад

    Just awesome Brother

  • @okbabouilouta3340
    @okbabouilouta3340 5 лет назад

    how to change the code for Mac os ?? help

  • @martinmilner2019
    @martinmilner2019 8 лет назад

    Built it. Worked as advertised.

    • @tariqimtinan1707
      @tariqimtinan1707 7 лет назад

      Which 3.5 mm audio jack did you use for taking output from circuit to computer? TRS or TRRS?

  • @10bokaj
    @10bokaj 6 лет назад

    Really awesome stuf

  • @jackanma6504
    @jackanma6504 6 лет назад

    Hi, I did some Pyinstaller before , and it seems not that big packages you must pack to exe . Please check the pyinstall --help. With some options you can pack the least part of the python packages.

    • @swharden
      @swharden  6 лет назад

      Markyan marx that sounds great! If someone (you?) wants to pack this script with pyinstaller, I’d love to see how small it is, and can make it available for download.

  • @Larry_Druhall
    @Larry_Druhall 6 лет назад

    This video is incredible. Your approach seems great. I am having some issues adapting this to macOS. WinPython is not available for Macs. But the Python analytical tools used are available. It looks like I have to educate myself on how to create graphical FFT analytical tools on macOS or get a Windows computer. Thank you for posting.

  • @GlebLebedevOnSoftware
    @GlebLebedevOnSoftware 7 лет назад

    Good Job!

  • @cirosmserpico3832
    @cirosmserpico3832 7 лет назад

    hello, nice project and good software!
    I'm new in electronics and I have a little question, it seems a sort of mistake, but maybe I missed something. reading the datasheet of LM741 the minimum supply voltage is 10 V: how can it work with a 9V battery? of course it works! but does this "baseline" affects in some way the OPAMP?
    [www.ti.com/lit/ds/symlink/lm741.pdf section (6.3)]

  • @alex_8704
    @alex_8704 2 года назад

    This is just great!!!

  • @fsadfasfd
    @fsadfasfd 8 лет назад

    Really nice

  • @rohankumarsahu933
    @rohankumarsahu933 7 лет назад

    can it be used as eeg

  • @Uterr
    @Uterr 7 лет назад +1

    Great job :) So, why is it actually works? All ECG schemas i found contains at least 2 opamps. Is it because sound card has its own amplifier on input?

    • @Uterr
      @Uterr 7 лет назад +1

      And second question, did you try to put signal from your ecg schema to controller adc, will you need additional amplifier for it to work? I am going to check will it work with controller anyway, just what you think about it? :)

    • @doza6262
      @doza6262 7 лет назад

      That is the beauty of the code he built. He just amplified the signal straight ahead in one step and managed to eliminate all noise which is generally avoided with those 2+ op amps configurations.

  • @SaRa-vq7mk
    @SaRa-vq7mk 3 года назад

    what software you used??

  • @deeprj3710
    @deeprj3710 7 лет назад

    is it possible to measure EMG AND EEG by using same circuit and same electrode. by just changing the position of electrode.

    • @10bokaj
      @10bokaj 6 лет назад

      yes, maybe you should change the gain, but yes it is possible

    • @ArshadAli-zk5kj
      @ArshadAli-zk5kj 5 лет назад

      You also need to change the lower and upper cutoff frequencies of the band pass filter.

  • @thomaskannarkatt5084
    @thomaskannarkatt5084 7 лет назад

    Brilliant.

  • @dgarcia94
    @dgarcia94 5 лет назад

    How to do to detect the peaks of the signal and calculate the bpm?... Please help 😓

    • @swharden
      @swharden  5 лет назад +1

      Diego Garcia check out my most recent video on this subject - it does peak detection and calculates BPM in real time (with source code) m.ruclips.net/video/sP_-f5nsOEo/видео.html

  • @melof
    @melof 5 лет назад

    so, is it possible to run the software on a raspberry pi? Awesome project, thanks.

    • @swharden
      @swharden  5 лет назад

      It may be possible, but in my experience QT libraries aren't easy to get running on the PI. This is because (as of about a year ago) the PI operating systems support Python 2.7, not Python 3.x -- so it will take a little effort to set up the right version and all the right libraries. On a more complete system, you can just install Anaconda and it works. Maybe try to install Anaconda on the PI and see if it works? Email me if you figure it out and I'll add the notes to the project page! --Scott

  • @denissonarif9810
    @denissonarif9810 7 лет назад

    thank you brother

  • @shishirbhattarai4093
    @shishirbhattarai4093 5 лет назад

    Hi Scott!
    Can I get to read your paper on this? Please...

    • @swharden
      @swharden  5 лет назад

      Sure! Links are in the description.

  • @amarug
    @amarug 7 лет назад

    hm. i rebuilt your circuit 1:1, just instead of the sound card i used the oscilloscope in roll mode, as this felt like a not unreasonable thing to do. but all i get is perfectly homogeneous 50hz noise. zero signal :/

    • @swharden
      @swharden  7 лет назад +1

      Raoul, that does not surprise me. The software does an immense amount of filtering that your oscilloscope is not doing. At one point in the video I disable the filtering and you can see that all I get is 50hz noise. You replicated this result, just with an oscilloscope. If you want to do this without a computer, you need a well tuned and very narrow 50 Hz (or 60 Hz) notch filter on the output. Good luck!

    • @amarug
      @amarug 7 лет назад

      thank you very much Scott for your answer. that makes total sense, indeed. I was just somehow under the impression that i should at least see some small dent or so, instead of pure noise without a hint of structure. I am a mechanical engineer and spent the last few years doing mathematical modeling and simulation of soft tissues and related stuff, trying to refresh my electronics with some home projects. :)

    • @amarug
      @amarug 7 лет назад

      i will try the sound-card adc instead!

    • @javicordon
      @javicordon 6 лет назад

      Raoul hi Raoul, did you manage to make it work? I was also expecting at least a small peak. We could see it when the filter was turned off on the video, a lot of noise due 60hz but also the peak of the heart beat. I am thinking this is only a pre-amp and then the computer card has another amplifier for its incoming signal. So there could be a need of more gain in a Single amplifier if not using a computer or two amplifiers to get some signal...

  • @shimonymittal410
    @shimonymittal410 7 лет назад

    Sir how can we give the o/p obtained on software to the raspberry pi

    • @shimonymittal410
      @shimonymittal410 7 лет назад

      also sir can u provide ur email id

    • @swharden
      @swharden  7 лет назад

      Shimony Mittal answers can be found on the website (link in description)

  • @demetriosdemetriou1114
    @demetriosdemetriou1114 7 лет назад

    bravo wonderful

  • @e.n.1002
    @e.n.1002 5 лет назад

    Very good project but i can't understand why you use 10m ohm resistor. Can you say me why you use it and what wıll happen if I DON't use it. Is it dangerous to not use 10m ohm resistor??

    • @shisoy4809
      @shisoy4809 5 месяцев назад

      Yes he said as the op amp input has high impedance, the current coming from the battery will go through your body and may stop the heart

  • @sayanmondal4570
    @sayanmondal4570 5 лет назад

    How about a diode in the output to prevent reverse current

    • @swharden
      @swharden  5 лет назад +1

      Not recommended. This is because the output is AC coupled and centered at 0 V. Not only would the diode delete all signals below 0V, but it would also remove all signal below its forward drop voltage. The output of this circuit is to be connected to the microphone adapter, which expects + and - voltage anyway. Good question though!

    • @sayanmondal4570
      @sayanmondal4570 5 лет назад

      understood.... thanks for replying

    • @sayanmondal4570
      @sayanmondal4570 5 лет назад

      Im actually trying this out

  • @davidesouzareis9993
    @davidesouzareis9993 6 лет назад

    I want the codes that you used in the processing

    • @swharden
      @swharden  6 лет назад

      www.swharden.com/wp/2016-08-08-diy-ecg-with-1-op-amp/
      github.com/swharden/diyECG-1opAmp/

    • @davidesouzareis9993
      @davidesouzareis9993 6 лет назад

      the processing is not accepting the codes that meet it although I think you used the arduino (my interpretation of processing and 2.2.1).

    • @swharden
      @swharden  6 лет назад

      This is not Arduino, this is just an analog op-amp. Also, software is Python, not processing or Java

    • @davidesouzareis9993
      @davidesouzareis9993 6 лет назад

      so thank you

  • @schweizerd6303
    @schweizerd6303 3 года назад

    is it just me or does that look like an ST elevation?

  • @oggobey73
    @oggobey73 5 лет назад

    where is the P

  • @annaheart4906
    @annaheart4906 4 года назад

    Can I use an oscilloscope as my output?

    • @swharden
      @swharden  4 года назад

      Anna Heart probably not because this software does a lot of filtering. Check out my latest ECG video though, that one is perfect for an oscilloscope

    • @annaheart4906
      @annaheart4906 4 года назад

      Scott Harden I already checked that out but I have to use an op-amp 😔 that’s why I’m interested on this one but I don’t know anything about programming and stuff.

    • @swharden
      @swharden  4 года назад

      You can probably see the ECG signal on the oscilloscope, it will just be really noisy. The 60 Hz noise will be 10x bigger than the ECG signal, but the 60 Hz noise will bobble up and down with your heartbeat. A better project for using an op-amp is a pulse oximeter! ruclips.net/video/bKAJsZJvMI0/видео.html

    • @annaheart4906
      @annaheart4906 4 года назад

      Scott Harden I think I can make the software work out. Now... hoy do I connect the circuit into my computer? Like the “microphone”?

    • @swharden
      @swharden  4 года назад

      Anna Heart you got it!

  • @fakecompte3395
    @fakecompte3395 6 лет назад

    it doesn't work for me

  • @mamdouh-Tawadros
    @mamdouh-Tawadros 5 лет назад

    Good video, and creative thinking. But these waves are very crude to give any meaningful information. It just shows pulse, not EKG diagnostic waves.

    • @swharden
      @swharden  5 лет назад

      This is correct! It is a fun project to increase peoples exposure to circuit design and signal analysis software. While the waveform may not be of diagnostic quality, it is interesting to inspect. It could be used for heartbeat rate detection (obviously only in non-critical applications).

  • @maddyaurora
    @maddyaurora 4 года назад

    160 Mb is a lot better than dowloading the 600 Mb pyton instalation

    • @swharden
      @swharden  4 года назад

      True! Luckily the SoundCardECG program is about 1MB ruclips.net/video/sP_-f5nsOEo/видео.html

  • @bombapiotr
    @bombapiotr 2 года назад

    Saw first five minues. It's not really safe k think you're not isolated properly when connected to computer xD

  • @felixcat4346
    @felixcat4346 4 года назад

    Scotty boy, just relax. The video was great up until you get the the dangerous warning for 15 minutes.