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   [ 7 posts ]
Author Message
 Post subject: Compiling Error when uploading pulseoximeter code example
PostPosted: Wed Sep 09, 2015 8:45 am 

Joined: Sun Jun 07, 2015 1:59 pm
Posts: 57
Hi when I tried to upload the following code into Arduino uno3:

#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;
}
}




I got the following compiling error:

Arduino: 1.6.5 (Windows 8.1), Board: "Arduino/Genuino Uno"

In file included from C:\Users\Lenovo\Documents\Arduino\libraries\eHealth\eHealthDisplay.cpp:33:0:
C:\Users\Lenovo\Documents\Arduino\libraries\eHealth\eHealthDisplay.h:149:15: error: 'prog_uint8_t' has not been declared
PROGMEM prog_uint8_t *array);
^
C:\Users\Lenovo\Documents\Arduino\libraries\eHealth\eHealthDisplay.cpp:41:11: error: 'prog_uint8_t' does not name a type
PROGMEM prog_uint8_t eHealthLogo[] = {
^
C:\Users\Lenovo\Documents\Arduino\libraries\eHealth\eHealthDisplay.cpp:109:10: error: 'prog_uint8_t' does not name a type
PROGMEM prog_uint8_t cookingLogo[] = {
^
C:\Users\Lenovo\Documents\Arduino\libraries\eHealth\eHealthDisplay.cpp: In member function 'void eHealthDisplayClass::init()':
C:\Users\Lenovo\Documents\Arduino\libraries\eHealth\eHealthDisplay.cpp:201:21: error: 'eHealthLogo' was not declared in this scope
image(0,64,128,64,eHealthLogo);
^
C:\Users\Lenovo\Documents\Arduino\libraries\eHealth\eHealthDisplay.cpp:209:21: error: 'cookingLogo' was not declared in this scope
image(0,64,128,64,cookingLogo); delay(3000);
^
C:\Users\Lenovo\Documents\Arduino\libraries\eHealth\eHealthDisplay.cpp: At global scope:
C:\Users\Lenovo\Documents\Arduino\libraries\eHealth\eHealthDisplay.cpp:663:20: error: 'prog_uint8_t' has not been declared
PROGMEM prog_uint8_t *array)
^
Error compiling.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

Could you help me with these?
Thank you.


Top
 Profile  
 
 Post subject: Re: Compiling Error when uploading pulseoximeter code exampl
PostPosted: Wed Sep 09, 2015 9:13 am 

Joined: Sun Jun 07, 2015 1:59 pm
Posts: 57
Hi I forgot to include the following code:

#include <eHealthDisplay.h> and
#include <PinChangeIntConfig.h>

So that solved some of the problems. However, I still got the following error:


In file included from PulsioximeterExample.ino:37:0:
C:\Users\Lenovo\Documents\Arduino\libraries\eHealth/eHealthDisplay.h:149:15: error: 'prog_uint8_t' has not been declared
PROGMEM prog_uint8_t *array);
^
Error compiling.

I am using Arduino version 1.6.5


Top
 Profile  
 
 Post subject: Re: Compiling Error when uploading pulseoximeter code exampl
PostPosted: Wed Sep 09, 2015 3:42 pm 

Joined: Wed Sep 09, 2015 2:20 am
Posts: 9
Hi friend,

I have fixed this problem by adding the following code to the "eHealthDisplay.h" file.

#ifndef prog_uint8_t
#define prog_uint8_t const uint8_t
#endif


I am not sure if this is the final solution, but it is working for now.


Top
 Profile  
 
 Post subject: Re: Compiling Error when uploading pulseoximeter code exampl
PostPosted: Thu Sep 10, 2015 4:21 am 

Joined: Sun Jun 07, 2015 1:59 pm
Posts: 57
Hi Load456

Thank you for your help.

I downgraded my arduino version to 1.58 and that code you showed worked. Apparently it doesn't work with the latest arduino.

Thanks for you help. :)


Top
 Profile  
 
 Post subject: Re: Compiling Error when uploading pulseoximeter code exampl
PostPosted: Thu Sep 10, 2015 7:30 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11366
Thanks for your contribution load456.

Regards.


Top
 Profile  
 
 Post subject: Re: Compiling Error when uploading pulseoximeter code exampl
PostPosted: Sun Feb 19, 2017 10:47 am 

Joined: Mon Apr 18, 2016 9:37 am
Posts: 13
Hi,

I have the following problem:

I am trying to use ESP8266 WiFi module to upload some eHealth readings to ThingSpeak platform. I was successful so far, but I have a problem with SpO2 sensor. The provided example from eHealth library works fine on its own, so I know that my sensor is o.k. But when I try to use it with ESP8266 I get the following compile error:

Quote:
PinChangeInt\PinChangeInt.cpp.o: In function `__vector_5':
C:\Users\sepidi\Desktop\bitirme\arduino\arduino-1.0.5-r2\libraries\PinChangeInt/PinChangeInt.cpp:163: multiple definition of `__vector_5'
SoftwareSerial\SoftwareSerial.cpp.o:C:\Users\sepidi\Desktop\bitirme\arduino\arduino-1.0.5-r2\libraries\SoftwareSerial/SoftwareSerial.cpp:319: first defined here


This is the hardware connection:
Image
Image

I will not post the code because it is long. I use SerialSoftware.h library to communicate with ESP8266 module. I just want to add that I tried changing digital pins of ESP8266 in case SpO2 uses them, and I also tried downloading the newer versions of PinChangeInt.h library. I wonder if anyone has any idea if I can actually make this work and how? Any help is very appreciated. Thank you!

Edit: I've read on other forums that SerialSoftware.h and PinChangeInt.h libraries conflict with each other, so I don't know how I can resolve my problem. Does anyone have an idea?


Top
 Profile  
 
 Post subject: Re: Compiling Error when uploading pulseoximeter code exampl
PostPosted: Tue Feb 21, 2017 8:49 am 

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

Sorry about it, we have not experience using SerialSoftware and eHealth.

Regards.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 7 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.