Cooking Hacks Forum

position sensor
Page 1 of 1

Author:  ichrak [ Tue May 01, 2018 2:37 pm ]
Post subject:  position sensor

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() {


void loop() {

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

delay(1000); // wait for a second.

Author:  libelium-dev [ Wed May 02, 2018 3:09 pm ]
Post subject:  Re: position sensor


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".


Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group