SciELO - Scientific Electronic Library Online

 
vol.10 issue18Controller optimization for a solar tracking system using differential evolutionGrafting telinne monspessulana fiber with vinyl-trimethoxysilane. Effect of dicumyl peroxide catalyst author indexsubject indexarticles search
Home Pagealphabetic serial listing  

Services on Demand

Journal

Article

Indicators

Related links

  • On index processCited by Google
  • Have no similar articlesSimilars in SciELO
  • On index processSimilars in Google

Share


Tecciencia

Print version ISSN 1909-3667

Tecciencia vol.10 no.18 Bogotá Jan./June 2015

https://doi.org/10.18180/tecciencia.2015.18.3 

DOI: http://dx.doi.org/10.18180/tecciencia.2015.18.3

PSoC-based embedded system for the acquisition of EMG signals with Android mobile device display

Sistemas embebidos basados en PSoC para la adquisición de señales EMG con un dispositivo móvil Android

Javier Andrés Almeida M.1, Mayra Alejandra Rodríguez Q.2, Juan Sebastián Rubiano L.3*

1 Universidad Central, Bogotá, Colombia, Jpachecoa@ucentral.edu.co
2 Universidad Central, Bogotá, Colombia, Mrodriguezq@ucentral.edu.co
3 Universidad Central, Bogotá, Colombia, jrubianol@ucentral.edu. co

* Corresponding Author. E-mail: jrubianol@ucentral.edu.co Tel: 57+1+3239868 Ext: 3202

How to cite: Almeida, J.; Rodriguez, M.; Rubiano, J., Psoc based embedded system fot the acquisition of EMG signals with android mobile device display, TECCIENCIA, Vol. 10 No. 18., 14-19, 2015, DOI: http://dx.doi.org/10.18180/tecciencia.2015.18.3

Received: 3 Oct 2014 Accepted: 16 Nov 2015 Available Online: 27April 2015


Abstract

In this study, we present the development of an embedded system for the acquisition and processing of Surface Electromyography (EMGs) signals, using Cypress Semiconductor's PS0C technology. With this technology, we achieved a decrease in resource consumption during implementation and in the usage of passive components that are usually part of the filtering, conditioning and acquisition stage, thus allowing for the development of a lightweight portable device. We also developed an application for the Android operating system, where EMG signals sent by Bluetooth can be displayed on a mobile device such as a smartphone or tablet.

Keywords: Android, Bluetooth, mobile device, EMGs, PSoC, embedded system.


Resumen

En este estudio se presenta el desarrollo de un Sistema de embebido para la adquisición y procesamiento de señales de electromiografía de superfície (EMGs), usando la tecnología Cypress de semiconductor PS0S. Con esta tecnología hemos logrado un descenso en la fuente de consumo durante la implementación y el uso de componentes pasivos que son usuales en la etapa de filtración, acondicionamiento y adquisición permitiendo asi el desarrollo de un dispositivo ligero portátil. También se desarrolló una aplicación para un sistema operativo Android, donde las señales EMGs son enviadas via Bluetooth, pueden ser mostradas en un dispositivo móvil como un Smartphone o tablet.

Palabras Clave: Android, Bluetooth, dispositivos móviles, EMGs, PsoC, Sistema de embebido.


1. Introduction

Today, the study of Surface Electromyography (EMG) signals is employed for a variety of purposes - for example, studying the average behavior of the electrical activity of a muscle or muscle group, which is widely used to detect muscle fatigue, monitor athletic performance, develop human-machine communication interfaces and control home automation systems for the disabled, thus providing them autonomy and comfort. EMG signal acquisition systems have therefore gained great importance as an input language for systems that perform diverse tasks, whose output is an actuator as well controlled by them.

Electromyography (EMG) signals are electrical signals produced by a muscle during the process of contraction and relaxation. These signals can be acquired and employed as a multipurpose tool (monitoring, diagnosing, etc.) and for developing several research projects. Therefore, the implementation of PSoCs technology is of major importance since it manages to integrate the filtering stage, digitization and processing into a single chip, thus reducing resource consumption, size, cost and implementation, leading to a portable prototype.

This paper presents the design and implementation of an electronic system based on PSoCs technology for the acquisition, treatment and processing of two Surface Electromyography (EMG) signal acquisition channels. This system has a Bluetooth communication interface for sending acquired bioelectrical signals to mobile devices, as well as an application for the Android operating system, where signals can be displayed in real-time and stored in the device's memory.

1.1. Surface Electromyography

Surface Electromyography is based on the acquisition of electrical impulses through surface electrodes. These electrodes are placed directly on the skin using a conductive gel on the muscle whose information is desired. The EMGs signals display the activity of various motor units recruited in the execution of a net movement of the studied muscle. EMGs signals are thus used to determine the average behavior of the electrical activity of a muscle or group of muscles, to detect muscular performance under conditions such as muscular fatigue, and/or to monitor muscle performance in athletes [1].

Muscle fibers suffer from transient depolarization (action-potentials) due to the signals coming from nerve cells, which permit the contractile capacity of the fiber. Muscular activity is registered in the electromyogram, using the action-potential of the motor-unit which is generated in each muscle after an excitation occurs. In this register, it is possible to distinguish the activation of motor-units, characteristic changes of these variations and relations between units. Taking into account the number of muscular fibers a single motor neuron innervates, one can determine whether a movement is smooth or rough [2]

EMGs signals consist of the summation of motor-unit action-potential trains. The action-potential duration is between 2 and 15 ms and its amplitude is between 100 pV and 2mV. The morphology of this type of signal depends on the recorded region and the type of electrodes to be used [3].

1.2. PSoC Technology

The PSoC family corresponds to Mixed-Signal Array with On-Chip Controller devices. These microcontrollers have been designed to replace multiple traditional MCUs with a single low-cost programmable device. PSoCs include both analog and digital configurable blocks, configurable with Cypress PSoC Designer software [4]. PSoC CY8C29466 is an 8-bit microprocessor, manufactured by Cypress Semiconductor® and with a Harvard architecture, capable of operating at a frequency of up to 24 MHz.

1.3. Android Operating System

Android is a mobile operating system based on Linux, and along with middleware applications, is designed to be used on mobile devices like smartphones, tablets, Google TV and other devices. The system was developed by Open Handset Alliance, which is led by Google. Android has the advantage of being an open code system, which allows for having more than 800,000 apps on the market [5], most of them free. It allows multitasking, yet this could at times be a disadvantage, since many tasks do not close down after the user finishes using them, thereby consuming memory and rapidly depleting the device's battery. It is for this reason that an additional application that takes care of this function is needed. There are many tools that have facilitated the development of applications for Android. Among these is App Inventor, developed by Google, which is based on graphical programming language with block diagrams.

2. Methodology

2.1. Design and Implementation

The designed and implemented embedded system can be seen in Figure 1

For the present research, self-adhesive Ag/AgCl electrodes were used to acquire EMGs signals with an amplitude of between 10pV and 2mV. To achieve this, we used a INA128 biomedical instrumentation amplifier manufactured from Texas Instruments®, which has a CMRR of 120 dB, necessary to acquire such signals. Since EMG signals are within a range of 20Hz and 500Hz [3], a band-pass filter for both channels of the EMGs was designed and implemented on the PSoC CY8C29466 of the family 1.

The module employed to filter the EMG signal was BPF4, which refers to a fourth order Butterworth bandpass filter. Here, requirements in the frequency domain such as bandwidth, filter gain, center frequency of operation and required filter type (Butterworth, Bessel, Chebyshev and Gaussian) are configured by software. Figure 2 shows the configuration window of the filter and Equations (1) and (2) show the calculations necessary for its proper design.

Where:
Bw = Bandwidth
FH = Higher Frequency of the filter
FL = Lower Frequency of the filter

Now, center frequency was calculated as follows:

Where:

Fc = Center Frequency
FH = Higher Frequency of the filter
FL = Lower Frequency of the filter

We employed the ADC Delta-Sigma integrated in the PSoC, in which the sampling frequency of 2 Khz was configured according to the bandwidth of the signal and the sampling with 14-bit resolution. Wireless communication using the Bluetooth module and the mobile device was made via asynchronous serial communication with the UART module of the PSoC at a speed of 115.200 bps.

Data sent are displayed in an application designed with the App Inventor tool, which consists of three screens, permitting the user to effortlessly interact with the device. Figure 3 shows the startup screen and the application's connection options.

The third screen displays signals in a panel and has the Channel 1 and Channel 2 buttons, configured so that they send a character via Bluetooth which is received by the PSoC through the UART and thus enables an integrated analog multiplexer. The aim is to provide the user with the ease with which to choose which of the two channels of implemented EMG signal acquisition he/she wants to display in the application. Further, the capture button enables the user to save the image that is currently being displayed in the application so it can be consulted when needed. The display screen is shown in Figure 4

3. Results and Discussion

Considering that the signal is being digitalized and sent by Bluetooth, as well as being displayed at different frequencies, we shall proceed to compare the PSoC acquisition and filtering stages with other EMG signal acquisition devices, such as the KL700. For this purpose, we use National Instruments® Labview software and a VI interface designed to acquire the signal with the DAQ6008 card, which displays the signal and stores data in a plain text file, used to create graphics in Excel, as shown in Figure 5 and Figure 6 respectively.

Two net movements involving the flexor carpi radialis muscle are chosen, corresponding to flexion (F) and abduction (P), in a combination of four movements, as shown in Table 1

The graphics obtained show the previously indicated movements, acquired for the KL700 equipment and the PSoC acquisition system.

In the two acquired graphics shown above, it is possible to identify the movement, whether it is P or F, according to the amplitude and duration of the pulse.

With the patterns of movement mentioned above, the acquisition of the EMGs signals was performed with the developed prototype (see Figure 9) and its display on the Android application. Figure 7 and Figure 8 show the images captured and stored within the mobile device.

Since the developed embedded system integrates multiple resources, the blocks to be implemented were divided in two PSoCs.

Figure 10 shows the consumption of resources required during the implementation of the band-pass filter, the analog-to-digital conversion and the transmission/reception of the serial data.

One of the most important criteria considered in designing the device was the requirement for user safety. To this end, we consulted Colombian Standard NTC-IEC 60601-1: Equipos Electromédicos parte I. The device was hence classified as portable equipment, with general safety requirements according to section 3 - Protección contra los riesgos de descargas eléctricas:

The Android application for visualizing images was not conceived of for performing diagnosis. In this first stage, the aim is only to capture and display the EMG signal of one or another channel. With this in mind, with the images stored on the mobile device it is possible to recognize the signals via observation and to determine movement type by its amplitude and relation with observed noise.

The PSoC has many advantages due to its integration of analog and digital tools. It is necessary to consider the configuration of each module and their required parameters in order for them to work, especially the oscillator and the frequency dividers needed for each application. This advantage allows for the integration of the entire filtering stage and the processing in a single chip.

For the data transmission stage, the sampling frequency that must be used for functional requirements is 2KHz, which means that every 0.5ms data are being sent. To guarantee data acquired was received and displayed in real-time, the Bluetooth block in charge of this function, which is the Clock module, needs to be synchronized and needs to review the data, which comes in twice as fast as the time in which it is sent. This means Clock needs to work with a time interval of 0.25ms. However, the App Inventor tool does not allow this value to be established, since 1ms is the minimum configurable value. We therefore devised a solution not limited by the tool, consisting of the implementation of an interruption in the PSoC, controlled by a timer, so that the sampling frequency is not affected and data can be sent every 20ms. Thus, the Clock interval was set in the application as 10ms, synchronizing the PSoC with the application.

We suggest for future studies using Java Native Android or another development tool with more functions, since the App Inventor tool, despite its many advantages, such as the ease of programming and simulation, has a major disadvantage -the limited management of the other functions of the components, different to those already established in each block, for sturdier applications. The benefits of this tool are not enough.

4. Conclusions

The designed device manages to capture, digitalize and process, through two input channels, the EMG signal, thus reducing the amount of passive components and integrating many of the signal filtering and conditioning stages onto a single chip employing PSoC technology.

The correct positioning of the electrodes and preparation of the signal-recording zone are crucial for proper acquisition.

The manufacture and assembly of the whole embedded system using surface-mount PCB technology enabled the considerable reduction of the size of the final prototype.

The developed system has the option of reprogramming its configuration, thanks to PSoC resources, and can be implemented to process or visualize other bioelectric signals as ECG, EOC, and EEG, among others.


References

[1] I. Cifuentes G., «Diseño y construcción de un sistema para la detección de señales electromiográficas,» UADY. Facultad de Matemáticas, Mérida, 2010.         [ Links ]

[2] R. Barea Navarro, «Electroneurografía,» Universidad de alcalá. Departamento de Electrónica, Alcalá         [ Links ].

[3] S. Fonseca Gonzales and D. Vanegas Barreto, "Interfaz hombre-máquina utilizando señales electromiográficas de musculo masetero. Tesis," Universidad Central, Bogotá, 2007.         [ Links ]

[4] C. Perform, «Programmable System on Chip,» Cypress, [En línea]. Available: http://www.cypress.com/psoc/.         [ Links ]

[5] G. Ojeda and A., "Google Play Supera a la App store con 800.000 aplicaciones disponibles," 10 Jan 2013. [Online]. Available: http://andro4all.com/2013/01/google-play-supera-app-store.         [ Links ]