Versions Compared

Key

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

...

All sensors include:

1NameName is given by teh the system automatically. You can change it to anything you want.
3IDSystem ID of the element
4TypeExample: temperature, humidity, vibration
5ClassExamples: analog, CAN, switch, discrete
6Hardware portНомер внешнего порта на панели устройства к которому подключен датчик (если датчик внешний).

...

Sensors have the option of setting the hysteresis state. Hysteresis can be a time, a value or it can be disabledisabled.

If the hysteresis is set in a time, the sensor will transit transmit to a new state with a delay of the specified number of seconds in the corresponding field. The time counting will begin from the moment when the measured value value of the sensor has left the current range.

...

You can calibrate the sensors. Use K and B coefficients. After the calibration, please, save the values in flash memory.

Note

To save sensor properties in the device flash memory press "  "  then "OK" to confirm. 

...

Hysteresis

Sensor readings can be tunned by a linear formula

...

"y = k * x

...

Default settings

In rare cases, the sensor readings may be too high or too low. End sensor readings can be adjusted using the linear formula. Consider the following example of a temperature sensor:

We have the linear formula:

y = k * x + b

Where:

x = self determined temperature sensor reading

ytemperature sensor reading that have to be shown (true)

k, bthe coefficients in the formula

By default:

k = 1

b = 0

In this case:

y = 1 * x + 0

y = x

We have the following schedule:

Image Removed

The graph shows that for each value of x = y.

Sensor tuning

For proper tuning of the temperature sensor from example above, we will need additional diagnostic temperature sensor with more accurate readings. Using both sensors you need to measure the readings of the two sensors in the same place, at the same time. For a more precise determination of "k" and "b" values we should try to take two valuee of one sensor with a more distant values:

We measure two values of both sensors. For example:

When x = 25°C; y = 27°C

When x = 30°C; y = 31.5°C

Where

xtemperature sensor reading of Vutlan sensor

y = sensor reading of a more accurate testing temperature sensor

We put all the values in the formula, and we get two formulas::

k * 25 + b = 27

k * 30 + b = 31.5

Using simple math we find both values "k" and "b":

k = 0.9

b = 4.5

And we get the following formula:

y = 0.9 * x + 4.5

We can draw a graph for this formula:

Image Removed

...

- b"

Example VT406 + HOS-100Q1 / DC current converter:

Metered current for HOS is from -100A to +100A (This means that the range equals to 200)
The output of VT406 is 0-5V (That means that the range is equal to 5)

This means that k = 200/5
"b" = the value that the sensor shown in WebUI when there's no current. Let's say that b = + 0.21

You should use the following formula for HOS: 200/5*(x-b)
The expression formula would be 40*(x-0.21).


Example VT407 + HAT-100Q1 / AC current converter:

Metered current for HAT: from 0 to 100A (This means that the range equals 100, k = 100)

The output of VT407 is 0-5V (That means that the range is equal to 5)

"b" = the value that the sensor shown in WebUI when there's no current. Let's say that b = + 0.21

You should use the following formula for HAT: 100/5*(x-y)

The expression formula would be 20*(x-0.21)


Example: Using fuel tanks.

Each fuel tank has it's own formula for volume vs height. Please see this useful resource for finding out such a formula.

https://www.calculatorsoup.com/calculators/construction/tank.php

In this can, You need to use non-linear formula.






Child pages (Children Display)