-
Notifications
You must be signed in to change notification settings - Fork 18
Sensor creation
Sensors must be created before using any Sensor block. In the creation process you must provide the sensor type, it's name in the workspace, and how it is connected to your board.
The sensor creation is done pressing the Create new sensor button in the Sensors category:
You will see the following window to create the sensor:
Now select the category:
Once the category is selected select the sensor, which are filtered according to the selected category:
Now, you must inform about the sensor name in the workspace and how the sensor is connected to your board. This depends on the sensor hardware interface.
For an ADC sensor, you must select the ADC unit and the ADC channel or the GPIO at which the sensor is attached:
For an I2C sensor, you must select the I2C unit at which the sensor is attached:
For a GPIO sensor, you must select the GPIO at which the sensor is attached:
For a 1-WIRE sensor, you must GPIO at which the sensor is attached and the sensor identifier on the 1-WIRE bus:
For an UART sensor, you must select the UART unit at which the sensor is attached:
Enter the data required to create the sensor and press the Create button to create the sensor.
Once the sensor is created new blocks to work with the created sensor appears in the toolbox:
Now work as usual to work with the sensor blocks.