SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By jffin1
#199924
I got a AD8232 ECG Board. I followed the exact tutorial to wiring/eletrodes/code. For this project, im using Arduino UNO. The problem is when i get the signal output, that shows me a periodic "square wave". The values is like (0, 0, ..., 650, 650, 650,..., 0, 0, ..., 650, 650 ...). I must se an commun ecg wave (whit T-wave, P-wave, QRS...).
I change eletrods position, but the problem keep going.
My Arduino power font is an DC 9v 1A font.

I have exactly the same problem of this topic which continues without solution.
https://forum.sparkfun.com/viewtopic.ph ... 7f00d36b6c

So, what can i do to solve this problem? :( :(
thanks for any help.
User avatar
By DanV
#199926
That topic did not continue without solution:
ansg wrote: Wed Aug 17, 2016 11:13 am In case you're still having this problem, I had it too and found out it comes down to electrode placement, play a bit with your electrode locations, shifting them slightly and eventually you'll get a decent signal. Hope it helps!
By jffin1
#199931
DanV wrote: Fri Aug 03, 2018 5:41 am That topic did not continue without solution:
ansg wrote: Wed Aug 17, 2016 11:13 am In case you're still having this problem, I had it too and found out it comes down to electrode placement, play a bit with your electrode locations, shifting them slightly and eventually you'll get a decent signal. Hope it helps!
I said it because this answer is not a solution for my problem.
Thanks for reply.
By Valen
#199936
Just a guess, but 5v*650/1023 = 3.2 volt. Are you sure the analog pin does not have a pull up resistor enabled in the code or physically connected? [edit: never mind, the internal pull up should get it to around 5 volt on an uno.]

Or show a good and clear photo of how it is wired up. You must have more than just an Uno and this board. And what is a 'font'? Sorry, unless verified you could still have made a mistake in the wiring.
By jffin1
#199949
Valen wrote: Sat Aug 04, 2018 9:34 am Just a guess, but 5v*650/1023 = 3.2 volt. Are you sure the analog pin does not have a pull up resistor enabled in the code or physically connected? [edit: never mind, the internal pull up should get it to around 5 volt on an uno.]

Or show a good and clear photo of how it is wired up. You must have more than just an Uno and this board. And what is a 'font'? Sorry, unless verified you could still have made a mistake in the wiring.

Thanks for reply!

I'm using exactly this wiring:
https://des.gbtcdn.com/uploads/2015/201 ... 107120.jpg

This is my code:
https://github.com/sparkfun/AD8232_Hear ... rduino.ino

This is eletrodes positions:
Image

This is my font power:
Image
This is the Arduino version:
Image
By jffin1
#199994
Valen wrote: Sun Aug 05, 2018 3:18 am Does it work better if you power it through USB instead of that power plug?
Thanks for the reply and sorry for the delay, I was testing other things.

I tested on two different computers, using USB to power the arduino and the "problem" persisted. I already had an ECG kit that worked normally with this wiring and ecg positioning.

I made the purchase of two new ECG modules and two Arduinos one: https://producto.mercadolivre.com.br/ML ... lizado-_JM

So I tested the two and kits on both arduinos both have the same problem: show square wave (0, 0, 0, ..., 650, 650, ..., 0, 0, ..., 650 , 650, 650, ...)

I find it difficult to be defective in both ECG kits. Maybe it's a different version of the one I had before ... I do not know ...