Salut,
voila, j'utilise le shield eHealth pour le monitoring de la tension arterielle sauf que je n'arrive pas à récuperer la mesure faite par le tensiometre sur le port série.
j'ai utilisé le code
/*
* 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 < eHealth.h >
void setup() {
eHealth.readBloodPressureSensor();
Serial.begin(115200);
delay(100);
}
void loop() {
uint8_t numberOfData = eHealth.getBloodPressureLength();
Serial.print(F("Number of measures : "));
Serial.println(numberOfData, DEC);
delay(100);
for (int i = 0; i<numberOfData; i++) {
// The protocol sends data in this order
Serial.println(F("=========================================="));
Serial.print(F("Measure number "));
Serial.println(i + 1);
Serial.print(F("Date -> "));
Serial.print(eHealth.bloodPressureDataVector[i].day);
Serial.print(F(" of "));
Serial.print(eHealth.numberToMonth(eHealth.bloodPressureDataVector[i].month));
Serial.print(F(" of "));
Serial.print(2000 + eHealth.bloodPressureDataVector[i].year);
Serial.print(F(" at "));
if (eHealth.bloodPressureDataVector[i].hour < 10) {
Serial.print(0); // Only for best representation.
}
Serial.print(eHealth.bloodPressureDataVector[i].hour);
Serial.print(F(":"));
if (eHealth.bloodPressureDataVector[i].minutes < 10) {
Serial.print(0);// Only for best representation.
}
Serial.println(eHealth.bloodPressureDataVector[i].minutes);
Serial.print(F("Systolic value : "));
Serial.print(30+eHealth.bloodPressureDataVector[i].systolic);
Serial.println(F(" mmHg"));
Serial.print(F("Diastolic value : "));
Serial.print(eHealth.bloodPressureDataVector[i].diastolic);
Serial.println(F(" mmHg"));
Serial.print(F("Pulse value : "));
Serial.print(eHealth.bloodPressureDataVector[i].pulse);
Serial.println(F(" bpm"));
}
delay(20000);
}
tiré du site web de cooking mais j'ai toujours le message ( Number of measures : 0 )
j'ai suivi exactement les étapes mentionnées dans le site web mais ça ne marche pas, normalement je dois:
bracher le tensionmetre avec l'arduino grace à la prise jack puis, le (UUU) sur le tensionmetre s'est affiché comme dit dans le site web sauf que lorsque je click sur on/off pour lancer la mesure le tensionmetre ne ragit pas
quelqu'un pourrait il m'aider
REERCIEMENTS...