Post a new topicPost a reply Page 1 of 1   [ 2 posts ]
Author Message
 Post subject: position sensor
PostPosted: Tue May 01, 2018 2:37 pm 

Joined: Wed Apr 25, 2018 5:56 pm
Posts: 3
hello ,
I use the body position sensor and I connect it to the shield ehealth and I write the code arduino but usually it show

Current position : non-defined position

Current position : non-defined position
I dont know what's the problem with it .
by the way I use IDE 1.0.1
and this is the code :
#include <eHealth.h>

void setup() {

Serial.begin(115200);
eHealth.initPositionSensor();
}

void loop() {

Serial.print("Current position : ");
uint8_t position = eHealth.getBodyPosition();
eHealth.printPosition(position);

Serial.print("\n");
delay(1000); // wait for a second.
}


Top
 Profile  
 
 Post subject: Re: position sensor
PostPosted: Wed May 02, 2018 3:09 pm 

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

How is the sensor set when it shows "non-defined position"? If the sensor isn't in a defined position it will send "non-defined position". It's a normal behaviour.

The defined positions are "Prone position", "Stand or sit position", "Left lateral decubitus", "Supine position", "Rigth lateral decubitus".

Regards


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