connecting Arduino with Matlab - how to interface ?

dear Arduino-experts,

today i have a special question:

How can I connect an Arduino board and MATLAB for Signal-processing? I am making an EGC which require signal processing in MATLAB. do i can use the MATLAB-to-Arduino package at the offical MATLAB site, "MATLAB Interface to Arduino".

Background: i just have stumbled over a intersting approach - real time ECG Signal Transmission for Remote Monitoring

well i like it alot - guess that i will try to combine the two approaches - and try to get a matlab setup. Do you think that this is possible!?

see the following https://www.ijedr.org/papers/IJEDR1303068.pdf

Abstract - Our main objective is to implement a monitoring system which monitors the heart pulse of a patient. This work presents a novel easy-to-use system intended for the fast and non invasive monitoring of the Lead I electrocardiogram (ECG) signal by using a wireless steering wheel. The steering wheel used here is a prototype model. A novel heart rate detection algorithm based on the continuous wavelet transform has been implemented, which is specially designed to be robust against the most common sources of noise and interference present when acquiring the ECG in the hands. Skin Electrodes were used to record the nerve voltages for monitoring the heart pulse. The voltages recorded will be sent to an instrumentation amplifier which amplifies the signal, and then to a filter which filters the noise. Thus, analog signal is given to Analog-to-Digital Convertor (ADC) of Arduino. There, analog voltages are been converted to digital and that digital values will be stored in the EEPROM of Arduino. The values stored in EEPROM will be sent to PC via XBEE (IEEE 802.15.4) wirelessly and a serial port will be opened in the MATLAB by using a serial object. GUI is programmed to make the user interface interactive and simple. Using the real time plot, I’ve plotted the values received by XBEE module and making a running waveform which displays when the MATLAB sent a query to Arduino.

see more: https://www.ijedr.org/papers/IJEDR1303068.pdf

the most intersting parts of this

Internal circuit of INA126U
Instrumentation Amplifier The signal acquisition is the first consideration when an HRM is implemented. But the signal is too small and contains a lot of added noise. As we said above the signal extracted from the heart has amplitude of approximately 0.5mV. Since, it is necessary to amplify the signal and filter the noise, and then extract the QRS complex. An instrumentation amplifier is usually the very first stage in an instrumentation system. This is because of the very small voltages usually received from the probes need to be amplified significantly to be proceeding stages. We can summarize the reasons to use

instrumentation amplifier

  1. Get differential signal
  2. High input impedance
  3. High CMRR

Output Stage Amplifier The LMC6084 is a precision quad low offset voltage operational amplifier, capable of single supply operation. Performance characteristics include ultra low input bias current, high voltage gain, rail to rail output swing, and an input common mode voltage range that includes ground. These features, plus its low offset voltage, make the LMC6084 ideally suited for precision circuit applications.

see more: https://www.ijedr.org/papers/IJEDR1303068.pdf

well first of all i have to setup the Matlab on Arduino - in other words i have to setup the Matlab interfacing on Arduino

Are you using the YUN board ?

I see from the original paper it does not use the YUN so you might come up with a few MCU issues.
There are a lot of tutorials for using Arduinos of many flavours with matlab on the internet.

This link should get you started.

hello dear ballscrewbob

many many thanks für the quick reply - i am glad to hear from you

i will follow your hints.

have a great day

greetings