Olimex Support Forum

DUINO => SHIELDS => Topic started by: Gravity on October 31, 2012, 10:39:31 PM

Title: SHIELD-EKG-EMG
Post by: Gravity on October 31, 2012, 10:39:31 PM
SHIELD-EKG-EMG with the OLIMEXINO-328 :)

Can anyone tell me what alternative software I can use with this board in order to run the demo examples.  I tried to get the 'Electric Guru' software but it is no longer available on the web.

:)
Title: Re: SHIELD-EKG-EMG
Post by: LubOlimex on November 01, 2012, 01:35:44 PM
Hello there Gravity,

I have uploaded it in the Software section of the SHIELD-EKG-EMG page: https://www.olimex.com/Products/Duino/Shields/SHIELD-EKG-EMG/ (https://www.olimex.com/Products/Duino/Shields/SHIELD-EKG-EMG/).

Direct link for download: https://www.olimex.com/Products/EEG/OpenEEG/EEG-SMT/resources/ElecGuru40.zip (https://www.olimex.com/Products/EEG/OpenEEG/EEG-SMT/resources/ElecGuru40.zip)

Alternatively, you can use BrainBay.

Best regards,
Lub/OLIMEX
Title: SHIELD-EKG-EMG
Post by: yb on November 08, 2012, 10:27:50 AM
I have a question about the 6 channels of the SHIELD-EKG-EMG.
I use the example code on an olimexino328 to interface with a computer, the packets are correctly received.
I can detect the beginning of a packet 'Z'  and the end '\xa5', i get the packet version '\x02' and the counter.
The next 12 bytes are the payload (2bytes per channel), but i don't exactly know what each of the channel corresponds to physically? (i have three electrodes (L/R/D))

here are two sample packets:
"
Z\x02G\x02\x9e\x02A\x02\x0f\x02\x0f\x03\xff\x03\xff\x01\xa5
Z\x02H\x03\x02\x02\xa7\x02g\x02P\x03\xff\x03\xff\x01\xa5

"
legend: packet delimiter, version, packet number, data, switches

any documentation available on the subject? do you have any insight, on how the data relate to the ECG waveform i want to reconstruct?

thanks!
Title: Re: SHIELD-EKG-EMG
Post by: LubOlimex on November 08, 2012, 04:51:50 PM
Hello yb,

The useful data in the red is only the two bytes for you. The rest is for the other 5 channels.

struct modeeg_packet
{
uint8_t sync0; // = 0xA5
uint8_t sync1; // = 0x5A
uint8_t version; // = 2
uint8_t count; // packet counter. Increases by 1 each packet
uint16_t data[6]; // 10-bit sample (= 0 - 1023) in big endian (Motorola) format
uint8_t switches; // State of PD5 to PD2, in bits 3 to 0
};


You can find the source of the firmware where the packet is defined:

http://openeeg.sourceforge.net/doc/modeeg/firmware/modeeg-p2.c (http://openeeg.sourceforge.net/doc/modeeg/firmware/modeeg-p2.c)

Best regards,
Lub/OLIMEX
Title: Re: SHIELD-EKG-EMG
Post by: gridman on November 21, 2012, 06:49:53 PM
Can't seem to locate the ElecGuru files. The link was no good. Most other links to it just end up on the Realization page.
Title: Re: SHIELD-EKG-EMG
Post by: LubOlimex on November 27, 2012, 03:13:07 PM
Try to access it from the software section located on the EEG-SMT page (not from the forum): https://www.olimex.com/Products/EEG/OpenEEG/EEG-SMT/ (https://www.olimex.com/Products/EEG/OpenEEG/EEG-SMT/)

Best regards,
Lub/OLIMEX