main1.jpg

This biofeedback setup uses an EMG sensor to represent muscle tension as a series of beeps and allows you to train your body to adjust muscle tension at will. In short, the more tense you are, the faster the beeps become, and the more relaxed, the slower. Using this device you can learn how to regulate your body to speed up and slow down the beeps; hence increasing and decreasing muscle tension. With some practice, you will have enough understanding of your body to be able to control muscle tension without use of the device. This is cool because it allows you to consciously control a part of the body you would not normally be able to otherwise sense or easily control.

I set mine up to monitor the muscles in my shoulder and neck that are responsible for tension headaches, but you can place them on just about any muscle group. I recommend experimenting with the placement of the sensors and seeing what is possible.
 
Remove these adsRemove these ads by Signing Up

Step 1: Go get stuff

1A.jpg

You will need:
- An EMG sensor
- Electrode cables
- Electrodes
- An Arduino
- A +/- 5V regulated supply board***
- 3-Pin female header
- 9V battery snap
- 1/4" stereo jack
- Headphones with 1/4" plug
- European-style terminal strip
- Red, green, and black 22 awg solid core wire

***+/-5V is the bottom range for the sensor board. I found two 9V batteries wired in series worked better than this board. The single red Wire is +9V, the junction where the two batteries meet is ground, and the lone black wire is -9V. Alternately, you can get a +/-12v mini board from Futurlec. However, I have not tried this.
hblockus says: Jul 1, 2012. 4:38 AM
Hey randofo-

amazing and inspiring project, thanks for the instructions!
a quick question: are you using dry electrodes or do they need an electrolyte paste to work?
thanks in advance for your reply.

/H
randofo (author) in reply to hblockusJul 1, 2012. 8:46 AM
The electrodes have an adhesive layer that is conductive. They are good for only one to two uses, so if you go that route, you will need a bunch.
hblockus in reply to randofoJul 3, 2012. 12:09 PM
thanks a lot for the helpful response.
got the electrodes sorted out in the meantime.
however, was wondering whether you dont have to include a notch-filter (50/60Hz) to circumvent interference from general power supply voltage?
thanks in advance again for your help.
randofo (author) in reply to hblockusJul 3, 2012. 12:27 PM
I didn't have that problem in my particular setup since it was all battery powered. Was getting noise from my pulse, but not that much. I wouldn't recommend wiring yourself to the wall.
hblockus in reply to randofoJul 3, 2012. 1:15 PM
no wall-wiring for sure:)
but i am designing my setup after an old machine that a colleague has used some years ago and he employed an accu - like this the setup is def medically safe, but he still added a notch filter. i cant really see why..
Revanchist in reply to hblockusAug 2, 2012. 11:17 AM
The 50/60 Hz noise is still present even if its battery powered... if you plug it into matlab through the mic input, and do a FFT you'll notice a huge spike in the 60 Hz (I'm in Canada) spectrum.

Even though its battery powered you still have risk of microshock... try looking for a similar chip to the ISO124 (its pretty easy to adapt) just put it at the end stage and the patient/user won't get any micro/macro shocks...

One thing I'm having trouble tho, I fininshed an ECG design (will upload soon) which is very very neat, but I can't seem to bring it up to the positive side of the voltage. I added the full wave rectifier, but if I understand correctly from the link in this tutorial, the wave is rectified but only the negative part is placed in the positive side, so the waveform itself is modified.... I'm trying to process the ECG information with an arduino as well but I can't seem to be able to do this... anyone have any ideas? Randofo?

I would appreciate this forever!
barrasundy says: Mar 16, 2012. 4:22 AM
This is a fantastic instructable randofo! Thank you, it was just what I was looking for.

I do have a couple of questions that I hope you wouldn't mind answering:
1. Is the EMG device audible without the headphones?
2. Is it sensitive to even the slightest muscle contraction?

Much appreciation in advance.
randofo (author) in reply to barrasundyMar 16, 2012. 9:19 AM
1. Nope
2. Not sure. Depends how slight you are hoping to sense.
elzurdo86 says: Dec 7, 2011. 12:04 PM
Does anyone know if this project this project has been used as a thesis project?
randofo (author) in reply to elzurdo86Dec 7, 2011. 12:09 PM
No it has not, but I'd suggest doing original research or taking it a step further should that be your intention.
elzurdo86 in reply to randofoDec 8, 2011. 9:10 AM
I do have one question though , I have heard that with these kind of voltage there's a lot of noise that can be picked up, will these circuits is the noise minimized? .
randofo (author) in reply to elzurdo86Dec 8, 2011. 10:10 AM
I didn't design the board, but I seem to be getting a pretty solid signal. The one cool thing I found so far is that if the electrodes are placed in the right location, you can start picking up your pulse. I first mistook this for noise, but after a minute or so, it was very apparent that the fluctuations were regularly pulsing.
fstcfs in reply to randofoMar 6, 2012. 9:54 AM
Cool instructable! I came across this while searching for guides on low-cost EMG builds for work/tinkering projects. I am currently studying to become a certified prosthetist and the current acadmeic focus includes EMG interfaces. Our instructor mentioned that when using EMG controlled prostheses for patients with a shoulder disarticulation the signal from the cardiac muscle can create electrode placement "problems" if the skeletal muscle can not generate enough potential. It's interesting to see the arduino in action in this way. Thanks for posting!
randofo (author) in reply to fstcfsMar 7, 2012. 11:49 AM
Funny you should mention it. In another project I am working on I was getting a lot of noise and could not figure out what it was. I finally decided to hook the circuit up to a physical output device and realized the noise was my heartbeat as the thing I was working on was twitching in synch with my heart. It was kind of cool to watch.
elzurdo86 in reply to randofoDec 8, 2011. 9:06 AM
Yes, that is actually my intention but I will use some of your information on it, I will be posting my project as it develops. First I will make this one and for my thesis I will modify it to take it one step further . Thanks BTW great project.
elzurdo86 says: Mar 5, 2012. 9:38 AM
I am trying to power up the sensor without the use of the board, although I-m checking the video with the two 9v battery I don't fully understand how are they wired up. Could you give me a hand with this?
Revanchist says: Dec 16, 2011. 9:55 PM
This is truly an amazing project! I did an ECG for my bio instrumentation class... It was easy... Technically this emg can be converted to an ECG, as long as the response frequencies are modified... An ECG could read frequencies up to and around 500 Hz. The EMG on the other hand reads higher frequencies ranging from 50 Hz up to and around 5 KHz. (reference: Medical instrumentation - Application and design, 4th Ed. John G Webster, chapter 6, Chapter 6: biopotential amplifiers, page 270.)

One problem I saw at first glance was that the circuit provides no protection from micro shocks... Using a chip (iso124) would work as protection from common mode voltage to the patient/test subject.

Sorry....

Otherwise this project is really great! I want one... Maybe after finals :)
elzurdo86 in reply to RevanchistJan 3, 2012. 12:22 PM
That's great thanks for sharing, I'm starting a project based on this one as well, I want to include a light display that can show the tension based on colors.
Revanchist in reply to elzurdo86Jan 3, 2012. 1:09 PM
Oh I've seen something similar used on an EEG, someone made a "thinking cap" that given the state of the brain it would display different colors and locations... I don't have the link with me at the moment but once I get home I can send pass share the link.
elzurdo86 in reply to RevanchistJan 3, 2012. 6:48 PM
That would be great, as soon as I have the first images I will be posting in a separated instructable
Revanchist in reply to elzurdo86Jan 3, 2012. 7:07 PM
there you go:

http://www.produceconsumerobot.com/thinkingcap/

its been really useful in my projects... good luck!
redtraceur says: Dec 3, 2011. 10:07 AM
Can the software or arduino code be download from somewhere??? i don't see it on the istructable XD
redtraceur in reply to redtraceurDec 3, 2011. 10:09 AM
ok i already found the code sorry
Dantex says: Nov 3, 2011. 1:29 PM
Can it be modified to an ecg?
redtraceur in reply to DantexDec 3, 2011. 10:06 AM
it can be modified just bachanging some resistance values to get different cut frequecy on each amp, and also to add more electrode for reference actually like 8 more ore just add a larger cable and take: right hand, left foot and chest region. it won't be a precise but it also works
randofo (author) in reply to DantexNov 3, 2011. 2:24 PM
Not that I know of, but I am not sure.
vincent7520 says: Nov 16, 2011. 1:44 PM
cool !
Franco0 says: Nov 4, 2011. 8:22 AM
What if... You mix that EMG with some electric/pneumatic servos/muscles, so you can control things? :D
mhassan9 says: Nov 4, 2011. 7:33 AM
nice man
dieseldude says: Nov 3, 2011. 7:43 AM
Looks like a useful project. Wonder if you would please add a detailed parts list with part numbers for the Arduino, EMG sensor, and electrodes. Also, some suppliers and their contact info. These are unusual items for most people to find. Rest of the stuff is quite common.

Thanks if you would,
Dieseldude
randofo (author) in reply to dieseldudeNov 3, 2011. 10:44 AM
There are links to all of these on Step 1
Arbitror says: Feb 22, 2013. 9:25 AM
When I become a quadriplegic, I'm hooking up a keyboard to my neck and face now.
Arbitror in reply to ArbitrorOct 31, 2011. 4:35 PM
Why is there no edit button?
Anyways, what I meant to say was if I become a quadriplegic, I would totally have one of these made so when you tense your neck and face in different ways, it outputs letters like a usb keyboard. But it looks like mind control computer interfaces will be reliable enough in the soon future.
BigShotUK in reply to ArbitrorNov 3, 2011. 9:05 AM
If you ever end up in that situation:
http://www.instructables.com/id/The-EyeWriter/

I've already told people that if something happens to me like happened to the guy in the video on that page that I want an eye writer and told them how to find the instructable for it.
I'm probably going to put it in writing too... just in case they forget.
Lithium Rain in reply to ArbitrorNov 3, 2011. 8:14 AM
Haha, that was a worrying sentence before the clarification. :P
Arbitror in reply to Lithium RainNov 3, 2011. 3:56 PM
I posted it, then read it. Should have done the opposite!
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!