{"id":125,"date":"2006-10-22T22:55:51","date_gmt":"2006-10-23T03:55:51","guid":{"rendered":"http:\/\/www.thegatesofdawn.ca\/wordpress\/electronics\/emg-amplifier\/"},"modified":"2021-04-12T23:05:28","modified_gmt":"2021-04-13T04:05:28","slug":"emg-amplifier","status":"publish","type":"page","link":"https:\/\/www.thegatesofdawn.ca\/wordpress\/electronics\/emg-amplifier\/","title":{"rendered":"EMG Amplifier"},"content":{"rendered":"<div style=\"text-align: center\"><img decoding=\"async\" style=\"width: 521px; height: 329px\" alt=\"EM-16 EMG Amplifier\" src=\"\/images\/EM-16_pack.jpg\" \/><\/div>\n<p>The second project undertaken for Jeff&#8217;s research was a 16-channel Electromyography Amplifier.\u00a0 At the time, Jeff was working on his PhD <a title=\"Jeff's PhD thesis\" href=\"http:\/\/www.collectionscanada.ca\/obj\/s4\/f2\/dsk3\/ftp04\/NQ63417.pdf\">thesis<\/a> at <a title=\"Queen's University\" href=\"http:\/\/www.queensu.ca\/\">Queen&#8217;s University<\/a>, in the <a title=\"Mel Robertson's lab\" href=\"http:\/\/darwin.biology.queensu.ca\/%7Elocust\/\">lab<\/a> of <a href=\"http:\/\/biology.queensu.ca\/faculty\/mroberts.html\">Dr. R. Mel Robertson<\/a>.<\/p>\n<p>Electromyography is recording the electrical signals that activate muscles.\u00a0 Jeff was interested in recording the the activity of the wing muscles of a locust in tethered flight.\u00a0 Many wing muscles are involved, and he wanted to record them all simultaneously.\u00a0 The lab had a number of <a title=\"Grass Technologies\" href=\"http:\/\/www.grasstechnologies.com\/\">Grass<\/a> Model P15 amplifiers that were used for this type of work, but each one has only a single channel, and they were in short supply.<\/p>\n<p>EMG\/EEG\/ECG are among the major  applications of instrumentation amplifiers.\u00a0 The enormous input impedance and common-mode rejection ratio (CMRR) of an instrumentation amplifier allows them to extract usable signals from the poorest, noisiest, weakest sources.\u00a0 We had previously used an <a title=\"Analog Devices\" href=\"http:\/\/www.analog.com\/\">Analog Devices<\/a> <a title=\"AD620\" href=\"http:\/\/www.analog.com\/en\/prod\/0%2C2877%2CAD620%2C00.html\">AD620<\/a> instrumentation amplifier chip for the <a title=\"Position Transducer\" href=\"\/wordpress\/electronics\/position-transducer\/\">Position Transducer<\/a> project.\u00a0 We also used it for the <a title=\"Myoelectric Locust\" href=\"\/wordpress\/electronics\/mel\/\">Myoelectric Locust<\/a> hack, an application which was basically just EMG.\u00a0 On that project, we learned a number of useful things about how to do EMG, which led directly into this project.<\/p>\n<p>The most important lesson we learned that fed into this project was that a really large input impedance can cause its own problems.\u00a0 On M.E.L., we found that the circuit worked fine for a while, but after a time the output of the amplifier drifted all the way to the power rail and stayed there.\u00a0 The reason turned out to be that the huge input impedance of the AD620 tended to collect charge, until eventually the DC offset exceeded the range of the amplifier.\u00a0 The problem was solved by adding very large resistors (22MOhm) from each input to ground, to drain off the collected charge.<\/p>\n<p>The amplifier is intended to be used inside a Faraday cage, to reduce the amount of 60Hz hum picked up.\u00a0 I made a separate +\/- 12V DC power supply, which would remain outside the Faraday cage.\u00a0 I tried to filter the output as well as I could, to prevent 60Hz hum from getting into the cage.\u00a0 A shielded cable delivered the power to the amplifier chassis inside the cage.\u00a0 I ran all the output signals on a single cable to a rack-mountable BNC terminal panel outside the cage.<\/p>\n<p>Each channel of the amplifier provides three switch-selectable gains (x10, x100 and x1000), and low-pass and high-pass filtering.  To keep costs down, the corner frequencies of the low-pass and high-pass filters are not easily changed.  They are determined by capacitors installed inside the unit on a screw-terminal strip.\u00a0 In addition, the amplifier has a monitor channel.\u00a0 Any or all of the channels can be mixed onto the monitor bus, which is further amplified and played through a speaker.\u00a0 The monitor allows an audible indication of the quality of the electrode implantation.\u00a0 Finally, the amplifier provides an accurate calibration voltage pulse of either 50 or 100 uV (derived from a precision voltage reference chip), which can be sent to any input to calibrate voltage levels accurately.<\/p>\n<p>For electrodes, Jeff used very thin &#8220;magnet wire&#8221;.\u00a0 Thin as a hair, and with a lacquer insulation.\u00a0 To implant the electrodes, Jeff put the locusts in a refrigerator for a while to put them sleep.\u00a0 Then he would poke a hole in the exoskeleton just outside the muscle.\u00a0 The magnet wire was then inserted through the hole to the appropriate depth to reach the muscle of interest.\u00a0 He did not strip off the lacquer insulation, so that the only point that made electrical contact was the tip of the wire.\u00a0 The electrode would then be secured in place with a drop of melted wax.<\/p>\n<p><img decoding=\"async\" align=\"right\" alt=\"EMG signals\" style=\"width: 428px; height: 219px\" src=\"\/images\/EMG_signals.jpg\" \/>Here is a picture showing EMG signals Jeff captured from 12 wing muscles simultaneously.\u00a0 Six muscles on the left, and the same six muscles on the right.\u00a0 The region labelled &#8220;stimulus&#8221; is where a simulation of a bat echo-location sound was played, to trigger the locust&#8217;s &#8220;evasive manoeuvers&#8221;.\u00a0 At that point, you can (barely) see that the muscle enervation pulses start double or triple firing.\u00a0 In the magnified region on the right, you can see the left and right sides become slightly asymmetric, which has the effect of causing a turn (or it would if the locust wasn&#8217;t glued to a stick and flying in a wind tunnel.)\u00a0 These results were published in a paper, J.W. Dawson, F.H. Leung, R.M. Roberson (2004) <a title=\"Research Paper using EMG\" href=\"http:\/\/biology.queensu.ca\/%7Elocust\/Publications\/2004DawsLeungRob.pdf\"><em>Acoustic startle\/escape reactions in tethered flying locusts: motor patterns and wing kinematics underlying intentional steering<\/em><\/a>.\u00a0 Journal of Comparative Physiology A (2004) 190: 581-600.<\/p>\n<p>I wrote this user&#8217;s guide for the amplifier: <a title=\"EM-16 User's Guide\" href=\"\/EM-16_Users_Guide.htm\">EM-16 User&#8217;s Guide<\/a><\/p>\n<h4>PCB Construction<\/h4>\n<p>The circuit board was fabricated using a postive photographic etching process.\u00a0 The photomask was printed on laser-printer-compatible transparency film at 1:1 scale.\u00a0 A photomask produced this way is not sufficiently opaque to produce good PCB results.\u00a0 If you hold it up to a bright light, you can see light through the toner.\u00a0 I found a decorative special-effect foil product that can be used with laser-printers to make metallic imagery.\u00a0 Normally, it&#8217;s used only to add gold or silver lettering at specific places on the page.\u00a0 I used it to put a metallic foil coating over the entire photomask.<\/p>\n<p>The way the film normally works is you print out your page normally.\u00a0 Then you cut out small pieces of the metallic effect foil, and secure them over the specific parts of the page where you want the effect, using small adhesive dots that come with the film.\u00a0 Then you run the page through the printer again, printing out a blank image.\u00a0 The idea is to just run the page through the fuser of the laser-printer.\u00a0 The heat of the fuser will bond the metallic film onto the preexisting toner on the paper.\u00a0 Then you can peel off the plastic carrier, leaving the metallic effect on the paper.<\/p>\n<p>When using the metallic film to make a photomask, I use the entire sheet at once.\u00a0 I found it tended to jam up in a laser-printer, so I actually use a laminator to fuse the film onto the toner.\u00a0 It took some experimentation to get the laminator feed rate set properly.\u00a0 I put the transparency photomask and metallic film together through the laminator. When I peel the metallic film carrier, the photomask has been covered with metallic flim, and is almost perfectly opaque.<\/p>\n<p>Unfortunately, I find that with the transparency, a lot of the metallic film sticks to the open areas where there is no toner.\u00a0 So, I have to do a fair bit of cleaning up with an X-acto knife to scrape off metal where it shouldn&#8217;t be.\u00a0 In the end, I get a good quality positive photomask that can be used to fabricate many PCBs.<\/p>\n<p>Of course these days, low-volume quick turnaround PCB shops are increasingly common, so my days of fabricating PCBs at home may be over.\u00a0 Good riddance, I say.<\/p>\n<h4>Front Panel Construction<\/h4>\n<p>Making nice professional-looking front panels for my electronics has been an obsession for some time.\u00a0 I still do not have a technique that gives me satisfactory results at a reasonable cost.\u00a0 I&#8217;ve tried many things along the way.<\/p>\n<p>For this project, I used a <a title=\"Homemade Decals\" href=\"\/wordpress\/electronics\/decals\/\">homemade decal<\/a>.\u00a0 I wanted white lettering.\u00a0 I approximated white, using the same silver effect foil that I used for PCB fabrication.<\/p>\n<h4>Links<\/h4>\n<ul>\n<li><a title=\"Grass Technologies\" href=\"http:\/\/www.grasstechnologies.com\/\">Grass Technologies<\/a><\/li>\n<li>The <a title=\"Mel Robertson's Lab\" href=\"http:\/\/darwin.biology.queensu.ca\/%7Elocust\/\">lab<\/a> of Dr. R. Mel Robertson at Queen&#8217;s University where Jeff worked.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The second project undertaken for Jeff&#8217;s research was a 16-channel Electromyography Amplifier.\u00a0 At the time, Jeff was working on his PhD thesis at Queen&#8217;s University, in the lab of Dr. R. Mel Robertson. Electromyography is recording the electrical signals that activate muscles.\u00a0 Jeff was interested in recording the the activity of the wing muscles of [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":123,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-125","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/pages\/125"}],"collection":[{"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/comments?post=125"}],"version-history":[{"count":2,"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/pages\/125\/revisions"}],"predecessor-version":[{"id":725,"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/pages\/125\/revisions\/725"}],"up":[{"embeddable":true,"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/pages\/123"}],"wp:attachment":[{"href":"https:\/\/www.thegatesofdawn.ca\/wordpress\/wp-json\/wp\/v2\/media?parent=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}