Offline
Jr. Member
Karma: 0
Posts: 53
|
 |
« on: July 03, 2012, 12:35:25 am » |
Dear Arduino friends, I am trying to make an electromyography project these days and I have a little problem. I made an EMG schematics using a simple AD620 amplifier and, when connected to the soundcard or the oscilloscope, it works very fine. It shows up and down waves when I contract the investigated muscle. But when I connected the same input to one analog input pin on my Arduino, it dows not work at all. When started, it gos from 1023 down to 0 regardless of the muscle contraction and it stops there, not reacting anymore. How could I remediate that, it is very annoying to now that your circuit works, but it cannot be read. I also posted a picture of the EMG circuit (imagine the electrodes placed on a muscle, not on the limbs, like for ECG) and a capture of the EMG signal collected with a soundcard. It works like that, but not on Arduino.
I would appreciate very much any suggestions.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 53
|
 |
« Reply #1 on: July 03, 2012, 12:38:05 am » |
I forgot, this circuit also works fine as an ECG on a scope or soundcard, but, again, on Arduino doesn't.
|
|
|
|
|
Logged
|
|
|
|
|
Brunsbüttel, SH, F.Rep.GERM
Offline
God Member
Karma: 4
Posts: 596
|
 |
« Reply #2 on: July 03, 2012, 01:47:57 am » |
the arduino can do 0V..5V... and ur amplifier output seems to use a charge pump that produces -6V to 6V... via a quite fat 1mF cap... maybe that much charge damaged the protection diodes of the arduino or the arduino input...
u could try to connect the arduino's ground to -6V... (hopefully it is a battery?) and then use a voltage divider that brings the voltage below 5V...
what does the oscilloscope say about the peak voltage?
|
|
|
|
|
Logged
|
-Arne
|
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 53
|
 |
« Reply #4 on: July 06, 2012, 08:16:34 am » |
Ok, thank you for both answers. Peak voltage is about 3V. I do not know the exact scale of the chart, but on x scale are a few seconds and, as I said, the peak voltage is around 3V.
What if I use a rectifier bridge on output of the myograph?
|
|
|
|
|
Logged
|
|
|
|
|
Montreal
Offline
Edison Member
Karma: 17
Posts: 2209
Per aspera ad astra.
|
 |
« Reply #5 on: July 06, 2012, 08:35:05 am » |
A lot depends on what info you need from the pulses? Magnitude, freq. of sub-carrier, period of pulses, magn. both negative - positive, decay time etc.
|
|
|
|
|
Logged
|
|
|
|
|
Brunsbüttel, SH, F.Rep.GERM
Offline
God Member
Karma: 4
Posts: 596
|
 |
« Reply #6 on: July 07, 2012, 02:29:36 am » |
a rectifier bridge would work, if u dont share the GND between the arduino and ur amplifier, and if the absolute values r sufficient (the negative parts would show up as positive...)...
why cant u connect arduino ground to the negative supply rail of ur amplifier? then u just need a voltage divider...
|
|
|
|
|
Logged
|
-Arne
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 53
|
 |
« Reply #7 on: July 07, 2012, 02:41:41 am » |
I will try the second, connecting the negative to the ground and tell you if it works.
But if I were to use a bridge, where should I connect the GND of the myograph, if not to the GND of the arduino? I did such last night and it did not work.
Thanks!
|
|
|
|
|
Logged
|
|
|
|
|
Brunsbüttel, SH, F.Rep.GERM
Offline
God Member
Karma: 4
Posts: 596
|
 |
« Reply #8 on: July 07, 2012, 04:38:19 am » |
that bridge has a negative output, which can be used as arduino ground... did u use a load resistor at the output of the bridge? like this: http://www0.wgboome.org/bridge.png
|
|
|
|
|
Logged
|
-Arne
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 53
|
 |
« Reply #9 on: July 07, 2012, 04:44:09 am » |
No, I did not use a resistor, but, hopefully, my arduino pin didn't burn. It looks ok, I teste it with a potentiometer. I will retry ith the bridge and use the negative of the bridge to connect to the arduino GND. I'll get back to you soon.
|
|
|
|
|
Logged
|
|
|
|
|
Brunsbüttel, SH, F.Rep.GERM
Offline
God Member
Karma: 4
Posts: 596
|
 |
« Reply #10 on: July 07, 2012, 05:36:10 am » |
without a load resistor the pin will b always charged, because the ADC discharges it very slowly...
|
|
|
|
|
Logged
|
-Arne
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 53
|
 |
« Reply #11 on: July 07, 2012, 05:37:41 am » |
And by that, you mean that the value on the pin won't change or it will change randomly? That's what happened to me and I didn't know why.
|
|
|
|
|
Logged
|
|
|
|
|
Brunsbüttel, SH, F.Rep.GERM
Offline
God Member
Karma: 4
Posts: 596
|
 |
« Reply #12 on: July 07, 2012, 06:10:41 am » |
a sine wave might look like this then: http://www0.wgboome.org/bridge2.png
|
|
|
|
|
Logged
|
-Arne
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 53
|
 |
« Reply #13 on: July 07, 2012, 06:11:48 am » |
This software you are using when making the screenshots is available online? Could you send me a link?
|
|
|
|
|
Logged
|
|
|
|
|
Brunsbüttel, SH, F.Rep.GERM
Offline
God Member
Karma: 4
Posts: 596
|
 |
« Reply #14 on: July 07, 2012, 06:28:05 am » |
|
|
|
|
|
Logged
|
-Arne
|
|
|
|
|