loading

Step 8: Decide Which Muscles Are Going to Control Which Button(s)

Now, you're going to have to decide which muscles/muscle combos you want to use for your button(s) layout. We've opted to go with the following layout. If you want to go with a different layout, you'll have to make some modifications to the Arduino code we'll get to later on.

Function buttons:
Button A --> Right forearm muscle
Button B --> Left forearm muscle
Start Button --> Not muscle controlled
Select Button --> Not muscle controlled

Directonal pad:
Right  --> Right bicep muscle
Left --> Left bicep muscle
Up --> All four muscles (combo)
Down --> Left and right bicep muscles (combo)
<p>The &quot;Download the latest hex files&quot; link you've provided leads to a page not found. Is it essential to the project?</p>
To the instructions as written, yes. But these instructions are pretty old and I don't maintain them. There's probably a better way to program an Arduino to act as a USB HID than what is described here.
<p>The link that you provided for the library is invalid, where can we find a valid library for the muscle sensor code?</p>
<p>Which link? https://github.com/AdvancerTechnologies/USBBiofeedbackGameController still works fine for me.</p>
<p>The link works but there is no zip file for the muscle sensor library. Without the library arduino cant configure the code.</p>
<p>The Muscle Sensor class files are in the repo as well. </p>
<p>What version of arduino are you using?</p>
<p>How do we update the arduino so that it works? i keep getting &quot;exit status 1</p><p>'MuscleSensor0' does not name a type&quot;</p>
<p>i fixed this error but am now getting &quot;compilation terminated.</p><p>exit status 1</p><p>Error compiling for board Arduino/Genuino Uno.&quot;</p>
<p>Would we connect the muscle sensors to the power supply board the same way as the instructions say or no, and is there anyway you can send me a link for the power supply board because the hyperlink you have is down.</p>
No, the power requirements for the MyoWare are much simpler. I would suggest reading through it's user's manual. There are examples of how to power the sensor via an arduino in it.<br><br>We don't make nor sell the power supply board anymore.
<p>I've read about some ways that people have done this but they don't pair it with a cable shield and they use where we soldered the cable shield in as their way to connect the board to a power source. If you could look at this and tell me if this is how we should connect it ,because we did not get a users manual with our parts.</p>
<p>Our sensors don't ship with a physical user's manual; they can be found on our distributor's websites (like you linked) and on our GitHub repository (https://github.com/AdvancerTechnologies/MyoWare_MuscleSensor) along with example code</p>
<p>https://cdn.sparkfun.com/datasheets/Sensors/Biometric/MyowareUserManualAT-04-001.pdf</p>
<p>How do we connect the muscle senors to the cable shield? How will the plastic insert vary with the new muscle senors?</p>
<p>Use header pins to connect the cable shield to the sensor board. The pins on the shield line up with the pins on the sensor board. </p><p>As for how the plastic insert will vary, this is something you're going to need to work out on your own. Please come back and share your work when done though. I'm sure others will appreciate it!</p>
<p>can i use arduino UNO R3 ? .. is it use the same steps above ? thank you</p>
I think the R3 has a different chip for its USB interface. I would recommend looking into that. If the chips are the same, then you can use the same steps.
<p>is there any latest codes or update sketch for this project ?</p>
<p>Since these muscle sensors were discontinued and the ones recommended are different. How can we extend the wiring to reach the users arm. If you could get back to me. Thanks.</p>
<p>I would recommend pairing our MyoWare Muscle Sensor with our MyoWare Cable Shield. https://www.sparkfun.com/products/13687 It will allow you to use external cables and the setup would be similar to the old one. You could alternatively just run the power, ground, and signal wires to the MyoWare sensor on the user's arm. This would probably produce a much cleaner signal (unshielded external cables act as antenna and introduce a lot of noise if you're not careful)</p>
<p>How many muscle sensors would I need to use?</p>
<p>1 per muscle so 4 in this case.</p>
<p>Even if i pair it with the MyoWare cable shield?</p>
<p>Yes, you'll also need 1 cable shield for each muscle sensor. </p>
<p>Thank You.</p>
I have arduino Leonardo setup to send keypresses to my laptop via keyboard.print () and Serial.println() and it works perfectly but it doesn't work to control emulator. it allows me to assign controls with Leonardo but doesn't let me actually play the game with it.
<p>that power supply kit you have indicated is not available. is it possible to run a muscle sensor using a single battery?</p>
<p>Great idea, amazing. I am wondering if it possible to make a game controller for mobile application using arduino platform? I am thinking about the combination between google cardboard and game controller using arduino.</p>
<strong>Hi!! FOR ANYONE WHO HAS AN ERROR LIKE THIS:</strong><br> <br> java.lang.ArrayIndexOutOfBoundsException: 1<br> <br> <strong>just replace the: </strong><br> <br> String V3 = Serial.list()[1];<br> <br> <strong>to:</strong><br> String V3 = Serial.list()[0];<br> <br> <br> <strong>Just found out!</strong>
hello,,im having problem with Processing sketch.when i hit the Run button the window don't pop up.It show error..it said java.lang.ArrayIndexOutOfBoundsException: 1...WARNING: RXTX Version mismatch <br> Jar version = RXTX-2.2pre1 <br> native lib Version = RXTX-2.2pre2 <br>Exception in thread &quot;main&quot; java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 1 <br> at processing.core.PApplet.runSketch(Unknown Source) <br> at processing.core.PApplet.main(Unknown Source) <br>Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 <br> at sketch_apr11a.(sketch_apr11a.java:55) <br> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) <br> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) <br> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) <br> at java.lang.reflect.Constructor.newInstance(Constructor.java:513) <br> at java.lang.Class.newInstance0(Class.java:355) <br> at java.lang.Class.newInstance(Class.java:308) <br> ... 2 more <br> <br>...can help me.I am new with this software....
hello,,im having problem with Processing sketch.when i hit the Run button the window don't pop up.It show error..it said java.lang.ArrayIndexOutOfBoundsException: 1......can help me.I am new with this software
when i try to run the code in processing software, it replies me &quot;serial does not run in 64-bit mode&quot;. i'm still new in this software. please help me.
Hi , I got it to funciton but only until the third phase, the fourth one is still not working. I will post my advance later today to show you what im doing to see if you can give me a hand, also I was trying to upload the NES EMG files but it does not let me it shows as a pde and it has problems with a boolean type of variable. It seems like it is a processing sketch not an Arduino one. Also I was checking the steps to updgrade the firmware. Is it mandatory to do it? by doing that would I be able to upload the .pde file to the arduino? <br> <br>I will wait for your reply. Thanks
Hi,<br><br>What version of Arduino's software are you using? This sketch won't work for the new release, v1.0. They moved some header files around. If I find time, I'll work on updating the sketches.<br><br>.pde was used by previous arduino files as well as processing files.<br><br>I'm not sure I understand what you are talking about in regards to the firmware.
I-m using the Arduino UNO R3 which is different than the one in the link you posted. I haven't tried to update the firmware in this one since the pictures in the link does not match with the one that I have.
Are you talking about the Arduino hardware firmware? You shouldn't have to update the hardware firmware. <br> <br>The Arduino development software has changed since I posted these instructions. The hardware firmware should be the same.
So basically I just have to update the sketch for the Arduino and I should be good to go?. How do I set up the keyboard to play the nes game? . Is a special game? or can I download any NES emulator?
i downloaded the ardiuno code and when i am about to upload the code to the mcu in the verification , it gives me errors and the code cannot be upoaded. please help<br>
Hello, I'm trying to get this project going, but I'm not able to get anything from the sensors, I made this one with the arduino UNO, and I noticed that the one you have was perhaps a duemilanove? , I tried to compile and Arduino displayed the message, BYTE keyword no longer supported , instead use Serial.write. I changed all of the commands and the program didn't show any mistakes but after uploading everything to Arduino nothing happened. Can you give me a hand with this?
I've updated the Arduino and Processing code used to visualize the sensor output with the new Arduino code base. Let me know if you have any problems with it.
Nope the one I used was an UNO. They've updated the code syntax since this instructable was posted. From my quick google search, it looks like you were on the right track with replacing all .print with .write. <br><br>http://www.engblaze.com/changes-in-the-arduino-1-0-release/<br><br>I'll update the code when i can find some time. <br><br>You might want to look into grabbing an oscilloscope to debug your circuits. This is the first tool I always use prior to hooking things up to a MCU.
Yes That is what I'm thinking. I will look for one and then post my results, hopefully I solved the problem . I'm pretty far away to buy another one :p <br>I had anorhter question , would it matter if I'm only using 1 EMG sensor for the processing sketch?<br><br>
No it shouldn't matter. You might want to ground the unused analog pins on your Arduino tho. Their values will float otherwise.
Wonderful idear ! But I beg one thing ,I can not downioad the zipped Arduino project in the step 13 ,is there any lovely one can mail me the zipped Arduino project ? My E-mail address : yinshi438788349@126.com .Thank you very much.
Or you could grow big muscles, wrap arm straps around your biceps and flex to press switch. That would be a lot easier. I'm just saying.
Great!, I'm actually starting to study Biofeedback as well, I just have a question about the noise that the circuits may get, is that a lot? or the circuit is designed to leave that aside.<br>Greetings from Mexico
Finally I have a real reason to want to build up my weak and feeble arms...
that is pretty cool, but does it actually provide some kind of workout, or is it just for fun?
Cool :-)

About This Instructable

103,813views

292favorites

License:

Bio: Brian Kaminski Owner - Advancer Technologies Brian graduated from North Carolina State University with a BS in Biomedical Engineering with a concentration in Biomechanics in May ... More »
More by Gundanium:Bionic Wolverine Claws Bionic Iron Man Glove Bionic Iron Man Armor (w/ Sound Effects) 
Add instructable to: