Olimex Support Forum

DUINO => SHIELDS => Topic started by: Megmed on January 29, 2015, 07:10:19 PM

Title: SHIELD-EKG-EMG data conversion
Post by: Megmed on January 29, 2015, 07:10:19 PM
Hello there

So i've been using the Shield above to read the ECG data, the data is sent through packets of 17 octets long

How can i convert the data from the big endian format that it's used to a proper ECG format (the decimal one).

Thank's
Title: Re: SHIELD-EKG-EMG data conversion
Post by: Sakar on March 14, 2016, 10:21:03 PM
You can get a single byte, instead of the packets, if you skip the example code and "Serial.print(analog.read(A0));" This will print to the serial monitor graphable data, just import to excel (or program of choice) and graph. Read at 250-256 Hz for accurate data.