DIY ECG leads - Page 1
Forum section: electronics / beginners

author: chefslot
author_rank: Contributor
timestamp: November 10, 2020, 12:01:00 am
content: I have got a breakout op-amp AD8232 that has come with a 3.5mm headphone jack with 3 wires coming out of it.eBay auction: #https://www.ebay.co.uk/itm/AD8232-ECG-Heart-Monitor-Sensor-Module-Pulse-Single-Lead-Measurement-Kit-Arduino/163359225515?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649These use the button popper (pic#2) style clips that stick onto the electrode pads. I can get a load of these from China for quite cheap, the electrode pads they use in the UK have an alligator type of clip and appear to be made of better quality goop, more like tens machine goop. And I can get more of a datasheet from these.https://www.medisave.co.uk/ambu-whitesensor-ecg-electrodes-x-500.html?gclid=Cj0KCQiA7qP9BRCLARIsABDaZziaAeCJnDFNLIc8K8OIZIvVaaFWkTap4Kdmzy6IcS_rpaDW29eDpbQaAt2kEALw_wcBI brought a couple of these because they were cheap and will come in handy for somethingeBay auction: #https://www.ebay.co.uk/itm/BNC-Male-Plug-to-2-Alligator-Clips-Adapter-Test-Cable-1-Meter-3-2ft-Long-C3B2/303568392689?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649That then got me down the rabbit hole of using SMA connectors, DIY scope probes and coax? Started seeing words like impedance and resistance to do with certain Hz of what the scopes input or working ranges and thought 'Does a £10 ecg kit need to be over-engineered'.This chaps video,his waveform was very smooth, mine looked a little like the first picture. He did mention to upgrade the leads and it does look like I have got a lot of noise in my waveform. I wish I had a decent picture but whilst being entangled and not able to move to capture the screen shot, this is the closest I can find.How I hooked mine up, two female jack outputs, one for if my soundcard is sensitive with a 10k resistor in serial and not two 5k's as a voltage divider, see picture #3 (sorry for the child's play). The other jack to use if my soundcard had some sort of limiting device on the input, passive or active I guess.Shall I go with the eBay BNC croc cables, or make my own from coax and SMA connectors?I think I have covered everything. I'm also running from 2 AA batteries. Regards

author: exe
author_rank: Unknown
timestamp: November 10, 2020, 08:40:39 am
content: I suggest read this thread about safety:https://www.eevblog.com/forum/testgear/how-to-solve-the-ti-ads1299-eeg-demo-kit-is-not-save-for-humans-problem/.

author: chefslot
author_rank: Contributor
timestamp: November 10, 2020, 08:37:30 pm
content: Quote from: exe on November 10, 2020, 08:40:39 amIndeed, I was going for the multitool of ECG machines, with built-in defibrillatorOn a serious note, he does say somewhere not to hook yourself up to a power supply, that is why I have opted for batteries and yes I know my soundcard in my pc could create a massive short or some other act of god and fry me. I did think about adding a diode but might make excessive noise, also the likelihood of this, and if I was that paranoid I could use a laptop. Thank you.Oh it isnt for medical diagnostics anyway.

author: chefslot
author_rank: Contributor
timestamp: November 11, 2020, 11:26:45 pm
content: Anyone else has any input?

author: Ground_Loop
author_rank: Frequent Contributor
timestamp: November 12, 2020, 06:30:50 pm
content: Quote from: chefslot on November 11, 2020, 11:26:45 pmThe number of hand-wringing, sky-is-falling, safety sirens that come out of the wood work on these issues is just pure entertainment. I cannot find any report of anyone EVER being injured by properly placed ECG equipment. The single injury report I could find was someone being connected to electrodes that were then plugged directly into the power supply. Recognize the risk, imagined or otherwise, and just move on. Build it. Don't forget the magic fuse. Use it.

author: fcb
author_rank: Super Contributor
timestamp: November 12, 2020, 06:54:40 pm
content: Galvanic isolation if you're plugging into a mains referenced PC. And test the isolation.As for cables,www.cablesandsensors.eu, or probably something from alibaba - defo. use shielded cables.

author: chefslot
author_rank: Contributor
timestamp: November 13, 2020, 11:32:08 am
content: Quote from: Ground_Loop on November 12, 2020, 06:30:50 pmI can't work out if you are being serious or sarcastic Ground_loop aha

author: chefslot
author_rank: Contributor
timestamp: November 13, 2020, 11:33:33 am
content: Quote from: fcb on November 12, 2020, 06:54:40 pmGood point, better still i may be able to send the voltage to the soundcard via wifi!Edited, it will actually be easier to run it on a linux based laptop running xoscope. Will keep this post updated.

author: chefslot
author_rank: Contributor
timestamp: November 13, 2020, 03:46:57 pm
content: Quote from: fcb on November 12, 2020, 06:54:40 pmJust one more thing, if I was to use shielded cables would I ground them and where would you suggest grounding them too? I was thinking to the boards ground correct? I was looking at using some oscilloscope cables as they are shielded and grounded too right?Regards

author: fcb
author_rank: Super Contributor
timestamp: November 13, 2020, 04:56:42 pm
content: Quote from: chefslot on November 13, 2020, 03:46:57 pmYour AFE local ground.

author: Wimberleytech
author_rank: Super Contributor
timestamp: November 13, 2020, 05:22:21 pm
content: I built one some years back using an AD624 which is just an instrumentation amplifier. It kinda worked...was noisey. I found that good quality pads made a big difference.Ultimately abandoned the project in favor of a Kardia--a very impressive device.

author: fcb
author_rank: Super Contributor
timestamp: November 13, 2020, 05:34:47 pm
content: Quote from: Wimberleytech on November 13, 2020, 05:22:21 pmI've also got a Kardia Mobile (AliveCor) - agree it's impressive. You tend to have to wet your fingers or press very hard on mine to get a good connection.One thing that's interesting (with the Kardia), is that the first couple of seconds of recording is very noisey, it then seems to retrospectively apply a filter and re-process the results (possibly some sort of syncing hum/notch filter).

author: chefslot
author_rank: Contributor
timestamp: November 14, 2020, 12:20:13 am
content: Quote from: fcb on November 13, 2020, 04:56:42 pmYour AFE local ground.I'm sorry AFE local ground, is that the ground pin on the board. AFE has confused me a little, analog front end?Also salty water has supposed to help on those devices. Obviously try not to get any salty water into the device.Regards

author: fcb
author_rank: Super Contributor
timestamp: November 14, 2020, 09:51:59 am
content: Quote from: chefslot on November 14, 2020, 12:20:13 amYes, AFE - analog front end, be it an IC or a discrete circuit.There are special sticky conductive gels used on the pads, they used to be silver loaded - not sure what they use now.

author: hfleming
author_rank: Regular Contributor
timestamp: November 26, 2020, 05:58:44 pm
content: From your first pic, it seems as though your electrode reference electrode was not connected. The bio electrical signals that you want to detect is very small (mV for ECG/EMG and uV for EEG), the common-noise that your body picks up is huge compared to the differential signal that you want to measure. Therefore correct placement of the reference electrode is crucial, as it is supposed to cancel out the 50Hz mains signal, as well as other common mode noise. (Your body acts as a huge antenna, picking up everything.) the reference electrode drives your body with the anti phase of the common-mode signal that comes from the 2 main electrodes, thereby supposedly cancelling out the Common mode noise, however, it is not always that simple. You can get your signal clean, will see if I still have some clean plots of my EMG patterns. I have attached a pic showing an example of electrode placement. Good luck with your adventures.

author: chefslot
author_rank: Contributor
timestamp: November 27, 2020, 11:25:46 am
content: Thank you but the first picture was a reference to the noise I was having and not the real selection as when I went to screenshot it made more noise as I moved aha

author: Wallace Gasiewicz
author_rank: Super Contributor
timestamp: November 28, 2020, 09:45:58 pm
content: The gue that is used in ECG leads today is a salty water gel. Called a paste.Homebrew recipe:1. Water, 1 cup2. Salt, 2 tablespoons3. Flour, 1 cup4. Bleach, just a dropCopied from:https://www.instructables.com/How-to-make-ECG-pads-conductive-gel/