Skip to content

Conversion Factors for sensor values

Lyman Cao edited this page Nov 4, 2013 · 2 revisions

Conversion factors for sensors (NOTE: this table provides the coefficients a and b for the linear conversion equation y=ax+b, where x is the raw sensor reading and y is the reading translated into real-world units):

+--------------+---------------------------------+-----------------+-------------------+------+-----------+-----------+

quantity description conversion_type a b chart_min chart_max
bat Battery voltage (V) linear 0.003060217176703 0 0 5
temp Temperature (analog sensor, F) linear 0.07506 32 40 90
digital_temp Temperature (digital sensor, F) linear 0.18 32 40 90
light Incident Illumination (lumens) linear -1 1024 0 1024
humidity Relative Humidity (%) linear 1 0 0 100
pressure Barometric Pressure (in. Hg) linear 0.000295780903035 0 28 31
acc_x Acceleration - X (ft / sec^2) linear 1 0 0 50
acc_y Acceleration - Y (ft / sec^2) linear 1 0 0 50
acc_z Acceleration - Z (ft / sec^2) linear 1 0 0 50
audio_p2p Audio Level (relative) linear 1 0 0 100
motion Motion Detected (binary) threshhold 950 0 0 1

+--------------+---------------------------------+-----------------+-------------------+------+-----------+-----------+

Clone this wiki locally