Real-Time Measurement of Prehensile EMG signals

Slides:



Advertisements
Similar presentations
Controller Tests Stephen Kaye Controller Test Motivation Testing the controller before the next generation helps to shake out any remaining.
Advertisements

BIOPOTENTIAL AMPLIFIERS
Analog Electronics Workshop (AEW) Apr 3, Contents Intro to Tools Input Offset Input and Output Limits Bandwidth Slew Rate Noise EMIRR Filtering.
Analog Basics Workshop RFI/EMI Rejection
1 Physics 434 Module 1 About the computers: –You can save VI’s on the local disk. put them into My Documents\your_name (But beware: no backup, no protection)
Mentor, John R. LaCourse: Nicholas Parrott: Erick Janampa: Project Definition “ The goal of this project.
Introduction to electronics lab ENGRI 1810 Using: Solderless prototype board (white board) Digital multimeter (DMM) Power Supply Signal Generator Oscilloscope.
Seismic Octave Programming for Analog/Digital Converters Michael W. Siekman Electrical and Computer Engineering Senior Capstone Design Project 2007 Advisor:
Data Acquisition Concepts Data Translation, Inc. Basics of Data Acquisition.
Figure 1.17 Model of an electronic amplifier, including input resistance Ri and output resistance Ro. © 2000 Prentice Hall Inc.
CHAPTER 1: INTRODUCTION TO OPERATIONAL AMPLIFIERS
Announcements Troubles with Assignments… –Assignments are 20% of the final grade –Exam questions very similar (30%) Deadline extended to 5pm Fridays, if.
Operational amplifier
Department of Computer Science San Diego State University
Vital Signs Monitor UConn BME 4900 Vital Signs Monitor Purpose As the population ages, many people are required by their doctors to take vital signs.
Operational Amplifier
Guitar Effects Processor Critical Design Review October, 07, 2003 Groups Members: Adam Bernstein Hosam Ghaith Jasenko Alagic Matthew Iyer Yousef Alyousef.
Real-Time Control of a Multi-Fingered Robot Hand Using EMG Signals
EEG Machine By The All-American Boys Featuring Slo- Mo Motaz Alturayef Shawn Arni Adam Bierman Jon Ohman.
EE311: Junior EE Lab Phase Locked Loop J. Carroll 9/3/02.
Introduction AD620 Instrumentation Amplifier
EE 198 B Senior Design Project. Spectrum Analyzer.
Introduction to Op Amps
Autonomous Control of Scalextric Slot Car on User-Defined Track Siddharth Kamath Souma Mondal Dhaval Patel School of Electrical and Computer Engineering.
1 QED In Vivo USB Input Output Box configuration This tutorial contains a number of instructions embedded in a great deal of explanation. Procedures that.
NI Multisim and Ultiboard
Oscilloscope Tutorial
Chapter 8 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Introduction to Op Amp Circuits ELEC 121. April 2004ELEC 121 Op Amps2 Basic Op-Amp The op-amp is a differential amplifier with a very high open loop gain.
Analog Electronics Lecture 5.
A Mobile Wireless Electrocardiogram System for Health Care Facilities John Farner Jason Fritts Julian Jaeger Joe Richard Georgia Institute of Technology.
The printed circuit board (PCB) design
Analogue Electronics II EMT 212/4
DATA ACQUISITION Today’s Topics Define DAQ and DAQ systems Signals (digital and analogue types) Transducers Signal Conditioning - Importance of grounding.
ابزاردقیق ارائه دهم. The device has 2 input ports, named inverting ( - ) input and non-inverting (+) input. The output is simply an amplified signal of.
Objectives How Microcontroller works
General Engineering Polytechnic University Laboratory 9: Electrical Filters.
09/16/2010© 2010 NTUST Today Course overview and information.
LAB 1 MATLAB, dSPACE and Simulink
Electronics for PS and LHC transformers Grzegorz Kasprowicz Supervisor: David Belohrad AB-BDI-PI Technical student report.
ECE 477 DESIGN REVIEW TEAM 2  FALL 2011 Members: Bo Yuan, Yimin Xiao, Yang Yang, Jintao Zhang.
Agenda and Notes Today, during class! 9:30 a.m. Boeing Space and Intelligence Systems (Matt and Matt) 4 extra credit assignments available at the bottom.
Grob Systems, Inc., the customer, requires an industrial computer system that will have a function of acquiring raw data, processing the data, presenting.
Module 4 Operational Amplifier
Analog Discovery Arbitrary Function Generator for Windows 7 by Mr
OPERATIONAL AMPLIFIERS. BASIC OP-AMP Symbol and Terminals A standard operational amplifier (op-amp) has; V out is the output voltage, V+ is the non-inverting.
Biomedical Instrumentation I
Development of Surface EMG Sensor Network and its Application System GRRC Int. Workshop 2008 Youngjin Choi Hanyang University.
Vital Signs Monitor UConn BME 4900 Vital Signs Monitor Purpose As the population ages, many people are required by their doctors to take vital signs.
Developing fast clock source with deterministic jitter Final review – Part A Yulia Okunev Supervisor -Yossi Hipsh HS-DSL Laboratory, Dept. of Electrical.
Fundamentals of Electric Circuits Chapter 5 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 30 Operational Amplifiers. 2 Introduction Characteristics –High input impedance –Low output impedance –High open-loop gain –Two inputs –One output.
Laboratory 10: Electronic Filters. Overview  Objectives  Background  Materials  Procedure  Report / Presentation  Closing.
Velleman Oscilloscope: Windows 7 by Mr. David Fritz.
Current Monitor System (1606) AJ Pikul Barath Parthasarathy Jason Stock Maya Dubrow.
Analog to Digital Converter David Wallace English 314.
CHAPTER 20 OPERATIONAL AMPLIFIERS (OP-AMPS). Introduction to operational amplifiers Symbol and Terminals.
Automatic Guitar Tuner Group #10 Dariusz Prokopczak & Stephan Erickson ECE 445 Sr. Design December 9, 2014.
Sound Source Location Stand Group 72: Hiroshi Fujii Chase Zhou Bill Wang TA: Katherine O’Kane.
Electromyography E.M.G..
Module 2 Operational Amplifier Basics
Lecture Notes / PPT UNIT III
Basics of Bypass Capacitor, Its Functions and Applications.
Residential Cabling Technologies Copyright © 2005 Heathkit Company, Inc. All Rights Reserved Electrical Measurements.
Analogue Electronics Circuit II EKT 214/4
Electromyography E.M.G..
تقویت کننده های عملیاتی
Electromyography E.M.G..
BESIII EMC electronics
Electrical traditional Chinese Instrument - Xun
Presentation transcript:

Real-Time Measurement of Prehensile EMG signals Master Thesis Saksit Siriprayoonsak Supervisor: Marko Vuskovic Department of Computer Science San Diego State University August 24, 2005 Copyright 2005 by Saksit Siriprayoonsak

Copyright 2005 by Saksit Siriprayoonsak Contents Introduction EMG Overview Apparatus for EMG Measurement Implementation of EMG Capture Program Experimental Results Conclusion Copyright 2005 by Saksit Siriprayoonsak

Multifunctional Prosthetic Hand Control A research in Robotics Laboratory, SDSU Copyright 2005 by Saksit Siriprayoonsak

Copyright 2005 by Saksit Siriprayoonsak Object of Thesis Main purpose: Design and develop hardware and software for measuring surface EMG signals from real human muscles in real-time. Immediate application: To control the existing SDSU multifingered robot hand. Hardware-brings the develop of EMG Amplifier Software-brings the develop of EMG Capture Copyright 2005 by Saksit Siriprayoonsak

Copyright 2005 by Saksit Siriprayoonsak EMG Overview EMG – Electromyography Electromyography measures the electrical impulses of muscles at rest and during contraction. Amplitudes of EMG signal range between 0 to 10 mV (peak-to-peak) or 0 to 1.5 mV (rms). Frequency of EMG signal is between 0 to 500 Hz. The usable energy of EMG signal is dominant between 50-150 Hz. Source: http://www.delsys.com/library/papers/SEMGintro.pdf Copyright 2005 by Saksit Siriprayoonsak

Amplification of EMG Signals Factors to be considered: Boost signal to TTL standard level (± 5 V.) Enough gain Noise/Artifact problem Filter, stability of electrodes attached to skin, proper grounding DC offset or bias problem Bias adjustment Power consumption Consume less current -Enough Gain Copyright 2005 by Saksit Siriprayoonsak

EMG Measurement Stages Copyright 2005 by Saksit Siriprayoonsak

EMG Amplifier: Electrode and Extension Stereo phone wire with 3 conductors Positive input to preamplifier Negative input to preamplifier Shield as the input of body reference circuit Velcro strap for securing the electrode to the skin Copyright 2005 by Saksit Siriprayoonsak

EMG Amplifier: Electrode and Extension (cont.) Plastic piece and snap on for holding electrode elements Dimension of 1 inch between electrode contacts 4 electrode extensions and 1 body reference extension Total of 9 electrode contacts Copyright 2005 by Saksit Siriprayoonsak

EMG Amplifier: Power Supply Dual Supply Positive Power Supply Negative Power Supply Two 9-volt batteries connected in series Capacitors provide stability of electrical current. Power Supply Unit Circuit Copyright 2005 by Saksit Siriprayoonsak

EMG Amplifier: Preamplifier Industry standard instrumentation amplifier op-amp (INA2128) Accuracy: providing high bandwidth at high gain and output offset current Differential amplifier circuit with 2 inputs High gain to boost the EMG signals Body Reference Circuit or Feed Back (OPA2604) Copyright 2005 by Saksit Siriprayoonsak

EMG Amplifier: Preamplifier (cont.) BURR-BROWN INA2128 Application Information Copyright 2005 by Saksit Siriprayoonsak

EMG Amplifier: Preamplifier (cont.) Preamplifier with Body Reference Circuit (1 channel) Gain Equation: Find RG at Gain = 1,000: Find Gain at RG = 22 ohm: Copyright 2005 by Saksit Siriprayoonsak

EMG Amplifier: Averaging Body Reference Circuit Common body reference circuit for 4 channels Using summing amplifier circuit and sign changing circuit Sign Changing Circuit (Inverting Amplifier Circuit) Inverting Summing Amplifier Circuit For independent R1, R2, R3, and R4: For independent R1, and R2: For R1= R2= R3= R4: For R1= R2: Copyright 2005 by Saksit Siriprayoonsak

EMG Amplifier: Average Body Reference Circuit (Cont.) Common Body Reference Output: Copyright 2005 by Saksit Siriprayoonsak

Copyright 2005 by Saksit Siriprayoonsak EMG Amplifier: Filter Suppress noise that has been amplified by the preamplifier Help to sink any DC current that cause bias to the output Select particular signal frequency range Use RC High Pass Filter of 12 Hz Copyright 2005 by Saksit Siriprayoonsak

EMG Amplifier: Filter (cont.) RC High Pass Filter Cutoff Frequency of 12Hz RC High Pass Filter Cutoff Frequency: Cutoff Frequency of 12 Hz: Copyright 2005 by Saksit Siriprayoonsak

EMG Amplifier: Amplifier and Bias Adjustment Provide abilities to amplify and adjust reference level of output signals Individual amplifier and bias adjustment unit for each channel Use Non-Inverting circuit for amplifier unit Use Voltage Follower Offset Adjustment circuit for bias adjustment unit Provide Gain of 21 times Provide Offset of ± 9 volts Copyright 2005 by Saksit Siriprayoonsak

EMG Amplifier: Amplifier and Bias Adjustment (cont.) Non-Inverting Amplifier Circuit Non-Inverting Output: Copyright 2005 by Saksit Siriprayoonsak

EMG Amplifier: Amplifier and Bias Adjustment (cont.) Amplifier Circuit with Gain Adjustment Amplifier Gain: At : At : Copyright 2005 by Saksit Siriprayoonsak

EMG Amplifier: Amplifier and Bias Adjustment (cont.) Case 1: at 0% of : ( ohms; volts ) Offset Adjustment for Voltage Follower Case 2: at 50% of : ( ohms; volts ) Output of the circuit: Case 3: at 100% of : ( ohms; volts ) Copyright 2005 by Saksit Siriprayoonsak

EMG Amplifier: Amplifier and Bias Adjustment (cont.) Case 1: at 0% of : ( ohms; volts ) Bias Adjustment Circuit Case 2: at 50% of : ( ohms; volts ) Output of the circuit: Case 3: at 100% of : ( ohms; volts ) Copyright 2005 by Saksit Siriprayoonsak

Copyright 2005 by Saksit Siriprayoonsak A/D Interface Card NI 6220 M-Series Multifunction DAQ Clock Speed: 8 Hz, up to 1 MHz Analog Input Resolution: 16 bits Number of Analog Input Channels: 8 Copyright 2005 by Saksit Siriprayoonsak

Final Product Assembly Netlist, Circuit designed and tested on breadboard Schematic created by Multisim8 PCB layout created by Ultiborad7 Copyright 2005 by Saksit Siriprayoonsak

Final Product Assembly (cont.) A schematic diagram is drawn using Multisim8. Netlist contains all circuit connections. Netlist is transferred to Ultiboard7 for PCB layout. PCB is a double layer (top copper layer and bottom copper layer) Through holes connect between 2 layers. Netlist is database. Copyright 2005 by Saksit Siriprayoonsak

Final Product Assembly (cont.) PCB shipped by the manufacturer Placing the battery on the side, weight balance Copyright 2005 by Saksit Siriprayoonsak

Final Product Assembly (cont.) PCB after soldering Copyright 2005 by Saksit Siriprayoonsak

Calibration Procedure Each channel is individually calibrated. Input is equal to output (100 mV.) If an arbitrary gain is needed, the output is desired gain value multiplied by input. Copyright 2005 by Saksit Siriprayoonsak

Copyright 2005 by Saksit Siriprayoonsak EMG Capture Provides 3 play modes: Real-Time, Record, and Playback mode. Able to save and open EMG data to/from file. Display features: Voltage scales Time scales Readout of exact values Copyright 2005 by Saksit Siriprayoonsak

EMG Capture: User Interface Left side for control. Right side for adjust display Copyright 2005 by Saksit Siriprayoonsak

EMG Capture: Main Parameter Subpanel Working with Real-Time mode and Record mode. Maximum Buffer Size (Samples per Channel) Sampling Rate (Hz) Buffer size has unit in sampler/channel. Sampling Rate has unit in Hz. Copyright 2005 by Saksit Siriprayoonsak

Copyright 2005 by Saksit Siriprayoonsak EMG Capture: Play Mode Copyright 2005 by Saksit Siriprayoonsak

EMG Capture: Real-Time Mode START Start real time mode Stop real time mode Freeze output display for examine interesting segments or save the data Resume real time mode Save data in buffer to file STOP Pause Resume Save Copyright 2005 by Saksit Siriprayoonsak

EMG Capture: Record Mode Start to Record the signals in specific time range in seconds. Save the data to file START Save Copyright 2005 by Saksit Siriprayoonsak

EMG Capture: Playback Mode - Open EMG data file (.emg) Open Standard window open dialog Copyright 2005 by Saksit Siriprayoonsak

EMG Capture: Voltage Scale Voltage scale is independent for each channel. Alternative voltage scales: 200 mV/Div. 500 mV/Div. 1 V/Div. 2.5 V/Div. 5 V/Div. Copyright 2005 by Saksit Siriprayoonsak

EMG Capture: Time Scale All channels use the same time scale Alternative time scales: 1 mSec/Div. 5 mSec/Div. 10 mSec/Div. 50 mSec/Div. 100 mSec/Div. 200 mSec/Div. 400 mSec/Div. Copyright 2005 by Saksit Siriprayoonsak

EMG Capture: Time Slider Scroll time slider to view data from beginning to the end. The numbers on the left and right corner correspond to the time stamp of the first and the last sample shown on the output display screen. ‘5.416’ is 5 seconds and 416 milliseconds. Copyright 2005 by Saksit Siriprayoonsak

Copyright 2005 by Saksit Siriprayoonsak EMG Capture: Readout Read extract value at pink vertical line Need not to compute the value of scale Unit: Time (sec) , Voltage (V) Copyright 2005 by Saksit Siriprayoonsak

EMG Capture: Output Display Displays 4 channels Voltage: 4 divisions 2 positive divisions 2 negative divisions Time: 15 divisions Maximum Display: ±10 volts with 5 volts/Div. 6 seconds with 400 mSec/Div Copyright 2005 by Saksit Siriprayoonsak

EMG Capture: Status Bar Guide user through the usage Display important message eg. Number of samples that went into the buffer. Copyright 2005 by Saksit Siriprayoonsak

Copyright 2005 by Saksit Siriprayoonsak EMGC Implementation Developed by using Microsoft Visual C++ tool GUI developed with MFC (Microsoft Foundation Class) library Runs on Windows 2000 machine which has A/D interface card installed A/D Interface Card: Multifunction Data Acquisition (DAQ), M-6220 series from National Instrument Company Copyright 2005 by Saksit Siriprayoonsak

EMGC Implementation: Output Buffer Structure struct SOutputData { int output_ii; //Iteration start from 0 double time; //Time stamp in Second double volt1; //Voltage value for CH1, CH2, CH3, and CH4 double volt2; double volt1; }; CArray <SOutputData, SOutputData> dumpDataArray; CArray class from MFC Library used to store input signal data. CArray can dynamically shrink and grow if necessary. Copyright 2005 by Saksit Siriprayoonsak

EMGC Implementation: Creating Voltages and Time Scales //For Calculation double voltScaleSet[5] = {5.0, 2.5, 1.0, 0.5, 0.2}; //unit in volt/div //For Screen Display CString voltScaleStrMap[5] = {“5 Volt/Div”, “2.5 Volt/Div”, “1 Volt/Div”, “500 mVolt/Div”, “200 mVolt/Div”}; Use spin control to select the scales. Spin control increase/decrease spin value by a specific number of steps. Use spin value as the index of scale array. Copyright 2005 by Saksit Siriprayoonsak

EMGC Implementation: Draw Grid for Graph Output Use CDC class (Class Device-Context object) to draw output on the screen. The CDC class is a class from the MFC library. CDC provides various kinds of drawing functions (working with drawing tool, converting the coordinates, drawing rectangles, drawing circles, drawing text, changing the color) CDC provides various kinds of drawing functions such as working with drawing tool, converting the coordinate, drawing rectangle, drawing circle, drawing text, or changing the color. Copyright 2005 by Saksit Siriprayoonsak

EMGC Implementation: Draw Grid for Graph Output (cont.) private: //Variables for drawing output int _maxTimeDiv; //Max number of divisions to display on Output-Panel int _maxVoltDiv; //time axis = 15 divisions //volt axis = 4 divisions (2 positive Divs) // (2 negative Divs) int _ptsPerDiv; //How many points are there in 1 division. //1 point = 0.1 milimeter //Default 100 points = 1 division is 1 cm wide // ** Base on: Display Resolution= 1024 x 768 int _maxDrawPtsX; // _maxTimeDiv*_ptsPerDiv, Max Drawing Point for // time int _maxDrawPtsY; // _maxTimeDiv*_ptsPerDiv, Max Drawing Point for volt //Default x=1500, y=400 Copyright 2005 by Saksit Siriprayoonsak

EMGC Implementation: Draw Grid for Graph Output (cont.) Copyright 2005 by Saksit Siriprayoonsak

EMGC Implementation: Drawing Graph Output The output can be drawn by using (x,y) coordinate to specify position to draw. Function CEMGCDlg::voltToDC() Function CEMGCDlg::voltToDC() Copyright 2005 by Saksit Siriprayoonsak

EMGC Implementation: Saving Data Buffer To File File Extension (‘.emg’) Header line contains Sampling rate (HZ) Record time period (sec) Data speparate by a ‘space’. Each record separated by a ‘carriage return’ (put in front). Copyright 2005 by Saksit Siriprayoonsak

EMGC Implementation: Read File To Data Buffer Read header file Sampling rate -> computes sampling period Record time period -> verifies the data file (completed or in completed) Store data in buffer (dumpDataArray) struct SOutputData { int output_ii; //Iteration start from 0 double time; //Time stamp in Second double volt1; //Voltage value for CH1, CH2, CH3, and CH4 double volt2; double volt1; }; CArray <SOutputData, SOutputData> dumpDataArray; Copyright 2005 by Saksit Siriprayoonsak

Copyright 2005 by Saksit Siriprayoonsak Results Our EMG Amplifier ME3000 Muscle Tester ME3000-Muscle Tester Manufactured by Maga Electronics Ltd. Displayed by using program VIEW version2. A comparison of cylindrical grasp recorded from our EMG amplifier and ME3000. Copyright 2005 by Saksit Siriprayoonsak

Copyright 2005 by Saksit Siriprayoonsak Results (cont.) Our EMG Amplifier ME3000 Muscle Tester ME3000-Muscle Tester Manufactured by Maga Electronics Ltd. Displayed by using program VIEW version2. A comparison of preshaping of cylindrical grasp recorded from our EMG amplifier and ME3000. Copyright 2005 by Saksit Siriprayoonsak

Copyright 2005 by Saksit Siriprayoonsak Conclusion This thesis presents an implementation of EMG amplifier device and EMG Capture program. Major problems were: To reduce noise, moving artifacts, system grounding and DC bias. Problems solved through: Proper choice of discrete components (resistors, capacitors, and ICs) Proper design of circuitry Final implementation of the device using PCB technology Systematic experimentation with the prototype (implemented on a breadboard) Extensive testing of the device after implementation and executing final corrections. Copyright 2005 by Saksit Siriprayoonsak

Copyright 2005 by Saksit Siriprayoonsak Future Work EMG amplifier Smaller size of the housing unit. Eliminate electrode extensions EMG Capture program Add print feature Add properties feature for changing system parameters Improve drawing ability Copyright 2005 by Saksit Siriprayoonsak