You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Michael Bleier edited this page Jul 10, 2024
·
2 revisions
Connect your computer to the USB-C port of the Arduino in the Sensor Cube. Sensor messages are send over the serial port in JSON format. One JSON message per line. Every message/command must be followed by a line break.
The message can be enabled by writing the following command to the serial port:
{"messages":["pressure_raw"]}
Write a program that reads the pressure sensor messages and computes the altitude.
On Wikipedia you can find a formula from the National Oceanic and Atmospheric Administration (NOAA) for directly converting atmospheric pressure in millibars (mb) to pressure altitude in feet (ft):
https://en.wikipedia.org/wiki/Pressure_altitude