You are on page 1of 4

ISSN : 2230-7109(Online) | ISSN : 2230-9543(Print) IJECT Vol.

2, Issue 2, June 2011

DC Motor Control using EMG Signal for Prosthesis


1
Mohan C, 2Vinod Kumar Giri
1
Dept. of Electronics and Instrumentation, SET, Sharda University, Greater Noida, India
2
Dept. of Electrical Engineering, M.M.M. Engineering Collage Gorakhpur, UP, India

Abstract III. Materials and Methodology


This paper describes a laboratory project involving controlling The instrumentation amplifier (INA) INA 114 is used to extract
a motor in forward and reverse direction using electromyogram the EMG signal through EMG electrodes. The TL084 quad op-
(EMG) signal without feedback. It could be used to implement amp is used to design the band pass filter, rectifier and envelop
a real time EMG signal based prosthesis hand and to study detector. The OP 177 op-amp is used as comparator to get
microcontroller applications. In this design, the low level signal transition pulses. Microcontroller 89S52 is used to analyze
of EMG is amplified, filtered with band-pass filter and rectified the EMG signal. LCD displays are available typically as 16 x
with precision rectifier before giving to microcontroller. The 2 or 20 x 2 along with the LCD controller. 16 x 2 means 16
EMG signal is analyzed in the form of count. Since the project characters per line and with 2 such lines. The latter one is
made with microcontroller and integrated technology, it gives used in this work.
knowledge of component level and system level design.
The methodology of control is a simple concept.
Keywords • Just extract the EMG signal with help of surface electrodes
EMG signal, Microcontroller, EMG count, Prosthesis, Keil and instrumentation amplifier. Filter the unwanted high
µVision frequency signal and other noise signal using band-pass
filter.
I. Introduction • Rectify the filtered signal and demodulate the EMG signal
The microcontroller has been one of the most widely used to get little purification using envelop detector.
alternatives in industrial and consumer applications. This • Convert the low level signal into high level signal using
subject included interfacing of motor, display device and comparator and it could be easy to count the transition
data acquisition devices. The EMG signal is the electrical of EMG signal using microcontroller.
physiological signal of activation of a motor unit associated • Find EMG count for single action and double action of
with a contracting muscle and serves as a potential resource muscle by counting the transition pulses of EMG signal.
for a man-machine interface [14]. For simplicity, the system • Run the motor in forward or reverse according to desired
does not involve artificial intelligence techniques. The control EMG count.
mechanism is based on EMG count.
The laboratory project consists of following parts: 1) EMG The EMG count is defined as the number of positive or negative
electrodes and signal conditioner 2) microcontroller 3) LCD transition pulses of EMG signal for an action of muscle.
and 4) a dc motor. This paper also details the system design.
IV. Extraction of EMG Signal
II. Nature of EMG Signal For the EMG detection, group of muscles involving reciprocal
The bioelectric potentials associated with muscle activity movements were targeted. The flexor-pronator v. extensor-
constitute the electromyogram, abbreviated EMG. In other way supinator group was selected due to their isolation to movement
we can say the contraction of the skeletal muscle results in the of the arm as a whole and the close relation to the hand muscles
generation of action potentials in the individual muscle fibres, [5].
a record of which is known as electromyogram. In voluntary
contraction of the skeletal muscle, the muscle potentials range The EMG can be measured by applying conductive elements or
from 50 µV to 5 mV and the duration from 2 to 15 ms. The values electrodes to the skin surface, or invasively within the muscle.
vary with anatomic position of the muscle and the size and Surface EMG is the more common method of measurement,
location of the electrode. In a muscle, the intensity with which since it is non-invasive and can be conducted by personnel
the muscle acts does not increase the net height of the action other than medical doctors, with minimal risk to the subject
potential pulse but does increase the rate with which each [6].
muscle fibre fires and the number of fibers that are activated at
any given time. The amplitude of the measured EMG waveform Measurement of surface EMG is dependent on a number of
is the instantaneous sum of all the action potentials generated factors and the amplitude of the surface EMG signal (sEMG)
at any Some important details of EMG signals are given in varies from µV to the low mV range. The amplitude and time
reference [3,4]. Since, most EMG measurements are made and frequency domain properties of the surface EMG signal
to obtain an indication of the amount of activity of a given are dependent on factors such as [6]:
muscle, or a group of muscles, rather than of an individual • The timing and intensity of muscle contractions
muscle fibre. The EMG pattern is usually a summation of the • The distance of the electrode from the active muscle
individual action potentials from the fibres constituting the area
muscle or muscles being studied. • The properties of the overlaying tissue (e.g. thickness of
Because these action potentials occur in both positive and overlying skin and adipose tissue)
negative polarities at a given of electrodes, they sometimes • The electrode and amplifier properties
add and some times cancel. Thus, the EMG waveforms appear • The quality of contact between the electrode and the
very much like a random noise wave form [4]. skin

w w w. i j e c t. o r g International Journal of Electronics & Communication Technology 163


IJECT Vol. 2, Issue 2, June 2011 ISSN : 2230-7109(Online) | ISSN : 2230-9543(Print)

Two types of surface electrodes are commonly in use. The first


one is dry electrodes in direct contact with the skin and the
second one is jelled electrodes using an electrolytic jell as a
chemical interface between the metallic parts of the electrode
[6].

Jelled electrodes uses an electrolytic jell as a chemical interface


between the skin and the metallic part of the electrode. Oxidative
or reductive chemical reaction take place in the contact region
of the metal surface and the jell. Silver-silver-chloride (Ag-AgCl)
is the most common composite for the metallic part of gelled
electrodes. The AgCl layer allows current from the muscle to
pass more freely across the junction between the electrolyte
and the electrode. This introduces less electrical noise into the
measurement, as compared with equivalent metallic electrodes
(e.g.Ag). Due to this fact, Ag-AgCl electrodes are used in over
80% of surface application [7].

Jelled electrodes can either be disposable or reusable.


Disposable electrodes are the most common since they are
very light. Disposable electrodes come in a wide assortment of
shapes and sizes, and the materials comprising the patch and
the form of the conductive jell varies between manufacturers.
With proper application, disposable electrodes minimize the risk
of electrode displacement even during rapid movements.

Fig. 2: Block Diagram of Signal Conditioner

This is primarily because a major portion of power in the EMG


signal is known to be contained in the 5-500 Hz frequency
range of the power density spectra. Surface EMG recordings
are preferred to be in the 10-350Hz band. Intramuscular
recording should be made with the appropriate increase of
the high frequency cut-off to a minimum 450 Hz or by applying
a band-pass filter of 10-450 Hz. These are ideal filter settings,
Fig.1: Position of EMG Electrodes which can be adjusted provided ample justification is given for
doing so. The filtered signal is then full or half wave rectified,
In this work, the SAEELCTRD105 reusable electrodes of which simplifies the following analysis because it is confined
Recorders and Medicare System were used. They are pure silver to positive-signal samples.
/silver chloride disc (dia 10mm). The position of electrodes is
shown in fig.1. The brown wire electrodes are EMG electrodes Fig.2 shows a block diagram of the signal conditioner system
and the black wire with black belt is a reference electrode. The for extraction of EMG signal. The input stage is the dual-input
white colour tape is the micro pour tape to give the mechanical instrumentation amplifier. So, two electrodes are connected to
support for EMG electrodes. the instrumentation amplifier. The next stage is a band-pass
filter and it consists of a high pass filter (HPF) and low pass filter
V. Design of Signal Conditioner Circuit (LPF). Then the signal is rectified with help of precision rectifier
The basic idea behind signal conditioning of EMG signals and the EMG signal demodulated with low pass filter or envelop
is given in reference [8]. The extracted EMG signal is detector. Finally the signal is connected to comparator to make
differentially amplified, bandpass filtered, and then digitized. compatibility with microcontroller. The cut-off frequency of HPF
Some International journals such as the IEEE Transactions on and LPF is 60 Hz and 1000 Hz respectively and the envelop
Biomedical Engineering or the journal of Electromyography and detector cut-off frequency is 500 Hz. The reference [9] could
Kinesiology are, however, strict, about the type of filtering and give the brief ideas about op-amp applications.
require that these values be reported.
VI. Development of Overall System
The overall system concept is used from the reference [10-11].
The block diagram of system is shown in fig.3. It consists of
Signal conditioner with electrodes (S/C), Microcontroller Unit
(MCU), Liquid Crystal Display (LCD) and a low revolutions per
minute Direct Current motor.

In first step of algorithm, the title of project is displayed for 5

164 International Journal of Electronics & Communication Technology w w w. i j e c t. o r g


ISSN : 2230-7109(Online) | ISSN : 2230-9543(Print) IJECT Vol. 2, Issue 2, June 2011

seconds. The title is stored in internal ROM of microcontroller.


After switch ‘ON’ the system, the program will display the title
in line of LCD module and start the 5s delay using timer of
microcontroller. Once the delay is finished, then the program
starts the interrupt service routine initialization.

Fig. 5: The image of system

After this, the system programmed such that the motor will run
in one direction if the EMG count is less than (single action of
muscle) 20H or equal otherwise the motor will run in opposite
direction when the EMG count is greater than 20H and less than
Fig. 3: Block Diagram of Overall System (double action of muscle) 30H for 5 seconds and no feedback
is included for motor control.
The fig. 4 shows the EMG signal at the output of comparator and
just before the microcontroller. The EMG signal is monitored
with help of digital storage oscilloscope (DS5000 series of
Rigol). The microcontroller program is simulated with help of
Keil µVision tool and microcontroller programmed or burned
the microcontroller with help of Lab Tool-48 Intelligent Universal
Programmer. The DC motor is a China made metal fiber
motor.

VII. Test Results and Discussion


The simulation response of signal conditioner is done with
help of Orcad family release 9.2 software. The sine wave
Fig. 4: The EMG Signal at Comparator output of S/C function is selected and the frequency range is set to 300Hz
and the amplitude is 0.2V. After simulating the circuit, the
The interrupt service routine has programmed with Interrupt result waveform diagram is shown in fig.6. Blue color shows
Enable Register (IE). It is a Special Function Register. Set the the comparator output, red color is envelop detector output
Enable external interrupt, when ever the signal goes from and green is precision rectifier output. It is not possible to see
positive to zero level at external interrupt pin of microcontroller, the source waveform because it level is very low as compared
the interrupt service routine starts and the program counter to compared output. The fig.7 shows the frequency response
directs the flow to the respective vectors address. of the same signal conditioner.

At the interrupt vector address, the study of EMG count Table 1: EMG Count for different action
subroutine is called as the interrupt service subroutine. In study Repetition EMG Count for EMG Count
of EMG count subroutine, the first step is clear the bit of Enable Single Action for Double
External interrupt and it avoids the start of service routine at Action
time of study of EMG counts. As mentioned above study of 1 08H 19H
EMG count, here a 5 second delay is introduced and monitor
2 0DH 25H
the EMG counts for 5 seconds. After this five seconds process,
the microcontroller programmed such that it could display the 3 15H 28H
recorded EMG count and at the same it could monitor the 4 21H 28H
myoelectric signal. When we analyse the EMG count of a flexor 5 05H 33H
muscle for single action and double action of muscle, it comes
as shown Table 1 for different times. The measured EMG count is tabulated and it is shown Table
1. If we see the EMG count for single action, it varies from
05H to 21H. It has more difference and it is due to force of
muscle action. When we do with less force for short time then
the EMG count is less. If the force of muscle action is high

w w w. i j e c t. o r g International Journal of Electronics & Communication Technology 165


IJECT Vol. 2, Issue 2, June 2011 ISSN : 2230-7109(Online) | ISSN : 2230-9543(Print)

then the EMG count is high. The integration of overall system 29th Annual International Conference of the IEEE EMBS,
is shown in fig.4 and the comparator output for single action August 23-26,2007.
of muscle is shown in fig.5. [11] Mohan C, Vinod Kumar Giri, “Hardware Simulator for
Hand Prosthesis using Microcontroller”, Proceedings of
VIII. Conclusions the 2nd National Conference on “Electronics Design &
The electromyogram (EMG) signal is the electrical physiological Communication Technology” of HCTM, Kaithal, India, May
signal of activation of a motor unit associated with a contracting 14-15,2010.
muscle and serves as a potential resource for a man-machine [12] Muhammad Ali Mazidi, Janice Gillispie Mazidi, Rolin D.
interface. If we see the span of the EMG count for single action Micinlay, “ 8051 microcontroller and Embedded Systems
and double is less. It could help to design a control device for using Assembly and C”, Pearson Education, Second
a rehabilitation device like hand prosthesis in future would Edition, 2008.
be done.
10V

IX. Acknowledgments
The work was supported by Mr. P.K. Gupta, the chairman 0V

of Sharda Group of Institutions, Greater Noida, India for lab


infrastructure and other facilities.
- 10V

References
0s 1ms 2ms 3ms 4ms 5ms 6ms 7ms 8ms 9ms 10ms
V( U5D: - ) V( R5: 2) V( U10: OUT)
Ti me

References Fig. 6: Simulated wave form of signal conditioner circuit


[1] Ton-Tai Pan, Ping-Lin Fan, Huihua, Kennay Chiang, Rong-
Seng Chang, Joe-Air Jiang. “A Myoelectric Controller Partial- 30V

Hand Prosthesis Project.” IEEE transactions on education,


vol 47, no.3, august 2004. 20V

[2] Khandpur R S, “Hand Book Biomedical Instrumentation”,


10V

Second Edition, 2005, Tata McGraw Hill, pp.59-60,178-


181. 0V
1. 0Hz 3. 0Hz 10Hz 30Hz 100Hz 300Hz 1. 0KHz 3. 0KHz 10KHz
[3] Leslie Cromwell, Fred J. Weibell, Erch A. Pfeiffer, “Biomedical V( U5D: - ) V( R5: 2) V( U10: OUT)
Fr equency

Instrumentation and Measurements”, PHI, 2nd Edition, Fig. 7: Frequency response of signal conditioner circuit
2005, pp.61-62,301.
[4] M.B.I Reaz, M.S.Hussain, F. Mohd-Yasin, “Techniques of
EMG signal analysis: detection, processing, classification
and applications.” Biol, Proced Online 2006:8(1);11-
35, doi:10.1251/bpo115, March23, 2006. [online]
Available : http://www.bortec.ca/Images/pdf/EMG%20
measurement%20and%20 recording.pdf.
[5] Andres Herrera, Andres Bernal, David Isaza, Malek Adjouadi
“Design of an Electrical Prosthetic Gripper using EMG and
linear Motion Approach,” Center for Advance Technology
and Education, Department of Electrical and Computer
Engineering, Florida International University. [online]
Available: http://fcrar.ucf.edu/papers/tp2_ahabdima_fiu.
pdf.
[6] Scott Day, Important Factors in Surface EMG Measurement,
Boretech BiomedicalLtd,Manual. [Online] Available: http://
www.bortec.ca/Images/pdf/EMG%20 measurement%20
and%20recording.pdf.
[7] Gary L. Solderberg, Ph.D., PT, “Recording Technieqes”,
Chapter 3, NIOSH Selected Topicsin Surface EMG Document
91-100-c Electrode Chapter [online] Available: http://www.
humanicses.com/SelectedTopicsEMGsNIOSH.pdf
[8] Rezaul Begg, Daniel T H Lai, Marimuthu Palaniswami,
“Computational Intelligence in Biomedical Engineering”
CRC Press, 2008, 1st Edition
[9] Prakash Biswagar, “OPAMP APPLICATIONS”, E & C Dept,
RV CollegeofEngineering,Bangalore. [online] Available :
http://forum.vtu.ac.in/~edusat/elec&cir/ur/session_10.
doc. [online]
[10] Nei A Andrade, Geovany, A.Borges, Francisco A. de
O.Nascimento, Alexandre R.S. Romariz, Adson F. da Rocha
“A New Biomechanical Hand Prosthesis Controlled By
surface Electromyographic Signals”, Proceedings of the

166 International Journal of Electronics & Communication Technology w w w. i j e c t. o r g

You might also like