Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Code for the Temperature sensor is based on its technical data, where 0v = 0ppm[NOT VERIFIED]  which linearly scales to 10v = 4000ppm[NOT VERIFIED]that 0v is equal the minimum ppm and 5 volts is equal the maximum ppm. This means that linear interpolation is utilized to scale the input voltage too an output in ppm.

...

Linear interpolation is performed with the following function (Chapra and Canale, 2015),


This means that the inputs needs to be,

...

Visually the function block looks as following,



Chapra, S.C. and Canale, R.P. (2015). Numerical Methods for Engineers. 7th ed. New York: McGraw-Hill Education. [pdf] Available at: https://gdcboysang.ac.in/About/Droid/uploads/Numerical%20Methods.pdf (Accessed: 28 May 2024).