Hi at element14
We have been trying to solve this matter for quite some time now, and we simply haven't been able to come up with a satisfying solution. We are working on a little "bot" placed on top of a height adjustable desk. The bot has to measure whether the desk is in a sitting or standing position. So we do either need to measure the movement and direction of movement or the height of the table. We have had some luck using proximity sensors (IR and US), but they are very dependent on the environment and placement, as e.g. a desk lamp can make the readings worthless.
We are now working with an accelerometer and/or a barometric sensor, but the acceleration of a table is very small and the height difference of the table is only 20-40 cm's. So the sensors have to be very precise and sensitive.
Soo, do you maybe have other ideas to what sensors we could use? Or maybe some insights into how we can get the accelerometer and barometric sensors to work properly? - would be a of great help
Best regards Mads