Insert a new sensor or actuator into the system.
Insert a new sensor or actuator into the system.
Adding a new sensor or actuator to the system is as easy as filling in a form. Once the correct details are provided the sensor will start reporting data to the ubiworx broker. If actuators are created then they can be controlled using the steps described in the sensors dashboard documentation section.
The ubiworx IoT framework allows users the ability to declare 2 types of sensors/actuators:
A full list of currently suported sensors and actuators is provided bellow as well as examples on how to add and enable them.
In order to add a new sensor/actuator to a gateway the following details are required:
Calculating scale
Formula
(maxExpectedValue - minExpectedValue) / (maxRawValue - minRawValue)
Example: Temperature
Expected value -20 to 100 degree C
raw value: 0 to 4096
Scale =>
(100 - (-20)) / (4096 - 0) = 0.029296875
Set the Offset to the minimum expected value, in this case -20.
Fields marked with an asterisks * are mandatory.
Field | Description |
---|---|
Type | Select the type of sensor you want to add. |
Name * | Insert a name for the new sensor. |
Unique ID * | Insert a unique ID, this ID needs to be unique only to this gateway. Note: this field can NOT be changed once created |
Hardware Address | Identifies the address where the sensor is connected. (See examples bellow) |
Hardware type | Specify what type of sensor you want to create. Possible options are: * iio-adc - analog * iio-dig - digital (See examples bellow) |
Field | Description |
---|---|
Min | The minimum expected value. |
Max | The maximum expected value. |
Field | Description |
---|---|
Scale | The value used to convert raw date into samples in the expected range. For more details on how to calculate scale see the formula above. |
Offset | A number used to indicate the lowest expected value. If the min recordable temperature is -30 then the value of this field should be -30. |
Sample rate | The expected sample rate sent to the ubiworx broker. |
Units | Describe the sample value. |
Filters | Add filters to the sensor to extend the default sensor functionality. Available filters: * average(10) - function used to average a number of samples. |
Example:
Reads the core temperature. This module is platform specific, use one of the hardware types bellow:
Example:
Reports percentage idle CPU.
Example:
Reports percentage free RAM.
Example:
This module is platform specific, use one of the hardware types bellow:
Example:
Example:
Example:
Reads a value from a proximity sensor. This module is platform specific, use one of the hardware types bellow:
Example:
Set the speed of a fan. This module is platform specific, use one of the hardware types bellow:
Example: