//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;
}
}
Using library PinChangeInt in folder: C:\Program Files (x86)\Arduino\libraries\PinChangeInt (legacy)
Using library PinChangeInt in folder: C:\Program Files (x86)\Arduino\libraries\PinChangeInt (legacy)
exit status 1
Error compiling for board Arduino/Genuino Uno.
Please use code tags (</> button on the toolbar) when you post code or warning/error messages. The reason is that the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier to read your code and to copy it to the IDE or editor. Using code tags and other important information is explained in the How to use this forum post. Please read it.
When your code requires a library that's not included with the Arduino IDE please always post a link(using the chain link icon on the toolbar to make it clickable) to where you downloaded that library from or if you installed it using Library Manger(Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.
"Using library PinChangeInt in folder: C:\Program Files (x86)\Arduino\libraries\PinChangeInt (legacy)"
You installed the library in the wrong place. Third-party libraries go in:
C:\Users\Monaa_000\Documents\Arduino\libraries
The Library Manager (Sketch->Include Library->Library Manager...) knows of two libraries with PCINT in the name. If you install one of those it should be a known working version. It doesn't know about eHealth so just move that directory to the proper place and re-start the IDE.
and i got this message
i dont know what is the meaning of this message..
avrdude: Version 6.3, compiled on Sep 12 2016 at 17:24:16
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM3
Using Programmer : stk500v1
Overriding Baud Rate : 19200
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x48
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xf6
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x41
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x3b
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xbb
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xbb
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xfc
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x62
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x20
avrdude done. Thank you.
An error occurred while uploading the sketch
and i want run the code as it is.. and represent this dialog
.. the code is working but the problem is the readings from e-health is appears ( zeros ) as you can see my code is
Serial.print("PRbpm : ");
Serial.print(eHealth.getBPM()); \\ this output is 0
Serial.print(" %SPo2 : ");
Serial.print(eHealth.getOxygenSaturation()); \\ and this output is 0
i dont know what is the problem ..
the output in compiling is:
avrdude: Version 6.3, compiled on Sep 12 2016 at 17:24:16
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 115200
AVR Part : ATmega328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : Arduino
Description : Arduino
Hardware Version: 3
Firmware Version: 4.4
Vtarget : 0.3 V
Varef : 0.3 V
Oscillator : 28.800 kHz
SCK period : 3.3 us
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "C:\Users\MONAA_~1\AppData\Local\Temp\arduino_build_649629/test2.ino.hex"
avrdude: writing flash (3482 bytes):
Writing | ################################################## | 100% 0.57s
avrdude: 3482 bytes of flash written
avrdude: verifying flash memory against C:\Users\MONAA_~1\AppData\Local\Temp\arduino_build_649629/test2.ino.hex:
avrdude: load data flash data from input file C:\Users\MONAA_~1\AppData\Local\Temp\arduino_build_649629/test2.ino.hex:
avrdude: input file C:\Users\MONAA_~1\AppData\Local\Temp\arduino_build_649629/test2.ino.hex contains 3482 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.46s
avrdude: verifying ...
avrdude: 3482 bytes of flash verified
avrdude done. Thank you.
Try the examples provided with the eHealth library. If those don't work your device is probably not connected correctly or it is faulty. If they do work you may be using the library incorrectly so check your sketch against the examples to see if you missed any steps.
i tried two of them (pulse oximmiter and Blofand i got this message
avr-g++: error: CreateProcess: No such file or directory
Using library eHealth in folder: C:\Users\Monaa_000\Documents\Arduino\libraries\eHealth (legacy)
Using library eHealth in folder: C:\Users\Monaa_000\Documents\Arduino\libraries\eHealth (legacy)
Using library eHealth in folder: C:\Users\Monaa_000\Documents\Arduino\libraries\eHealth (legacy)
Using library eHealth in folder: C:\Users\Monaa_000\Documents\Arduino\libraries\eHealth (legacy)
/*
* eHealth sensor platform for Arduino and Raspberry from Cooking-hacks.
*
* Copyright (C) Libelium Comunicaciones Distribuidas S.L.
* http://www.libelium.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* a
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see http://www.gnu.org/licenses/.
*
* Version: 2.0
* Design: David Gascón
* Implementation: Luis Martin & Ahmad Saad
*/
#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;
}
}