Libelium is offering new technical support channels, to contact with de Technical Support team to solve any issue our doubt please contact with your sales agent or visit our contact site



Post a new topicPost a reply Page 1 of 1   [ 6 posts ]
Author Message
 Post subject: e-Health Sensor Platform V2.0 for Arduino
PostPosted: Mon Apr 23, 2018 7:03 am 

Joined: Mon Apr 23, 2018 6:50 am
Posts: 12
https://www.cooking-hacks.com/documenta ... pi-medical

I ran the sample program in the above URL but it does not work. eHealth and PinChangeInt are included in libraries. Arduino version is 1.0.1. Please let me know if anyone can solve this problem.

-code-

#include < PinChangeInt.h >
#include < eHealth.h >

int cont = 0;

void setup() {
Serial.begin(115200);
eHealth.initPulsioximeter();

//Attach the inttruptions for using the pulsioximeter.
PCintPort::attachInterrupt(6, readPulsioximeter, RISING);
}

void loop() {

Serial.print("PRbpm : ");
Serial.print(eHealth.getBPM());

Serial.print(" %SPo2 : ");
Serial.print(eHealth.getOxygenSaturation());

Serial.print("\n");
Serial.println("=============================");
delay(500);
}


//Include always this code when using the pulsioximeter sensor
//=========================================================================
void readPulsioximeter(){

cont ++;

if (cont == 50) { //Get only of one 50 measures to reduce the latency
eHealth.readPulsioximeter();
cont = 0;
}
}

-error-

sketch_apr23a.cpp: In function 'void setup()':
sketch_apr23a:32: error: 'eHealth' was not declared in this scope
sketch_apr23a:35: error: 'PCintPort' has not been declared
sketch_apr23a.cpp: In function 'void loop()':
sketch_apr23a:41: error: 'eHealth' was not declared in this scope
sketch_apr23a.cpp: In function 'void readPulsioximeter()':
sketch_apr23a:59: error: 'eHealth' was not declared in this scope


Top
 Profile  
 
 Post subject: Re: e-Health Sensor Platform V2.0 for Arduino
PostPosted: Tue Apr 24, 2018 10:11 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11366
Hi,

Do you have MySignals HW v2? In that case, please follow the instruction of this guide. you can use a new Arduino IDE
https://www.cooking-hacks.com/mysignals ... -tutorial/

Regards


Top
 Profile  
 
 Post subject: Re: e-Health Sensor Platform V2.0 for Arduino
PostPosted: Thu Apr 26, 2018 7:06 am 

Joined: Mon Apr 23, 2018 6:50 am
Posts: 12
Thank you for answering. But I do not have Mysignals HW. It has only e - Health.What if I have e-Health only?


Top
 Profile  
 
 Post subject: Re: e-Health Sensor Platform V2.0 for Arduino
PostPosted: Thu Apr 26, 2018 12:24 pm 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11366
Hi,

Sorry for the misunderstanding.

Please try to remove the blank spaces at the beginning and end of the libraries. Replace
Code:
#include < PinChangeInt.h >
#include < eHealth.h >

with
Code:
#include <PinChangeInt.h>
#include <eHealth.h>


Hope this solves the issue.
Regards


Top
 Profile  
 
 Post subject: Re: e-Health Sensor Platform V2.0 for Arduino
PostPosted: Fri Apr 27, 2018 8:23 am 

Joined: Mon Apr 23, 2018 6:50 am
Posts: 12
Thank you for your answer. If you replace it as you say, the program has moved without problems! It was saved. Thank you!


Top
 Profile  
 
 Post subject: Re: e-Health Sensor Platform V2.0 for Arduino
PostPosted: Fri Apr 27, 2018 9:14 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11366
Glad to hear that the problem was solved! :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 6 posts ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use.