Skip to main content

BP Sensors to Console

Loading...

Here is another Modbus project. This one polls two BP sensors -- BP#02 and BP#03 -- and prints the data into the debug console. These two sensors provide three data streams, and the application prints all three values at a time.

Our AppBlocks Demo Kit (ADK) is equipped with the BP#02 and BP#03 sensors, so the Kit owners will be able to run the application immediately.

As with the previous project, the IDs and registers of the BP sensors are configured on the Modbus Master page of the Features Tab. For example, here is the configuration for the temperature and humidity sensor (BP#02):

bpsensorstoconsole_sensorThe data coming from BP#02 is not expressed in degrees Celsius or humidity percentages, so a conversion to standard measurement units is nevessary. This conversion is performed by the row of **Variable Set/Math** blocks. BP#03, our ambient light sensor, requires no data massaging.

Here is what the application's output looks like:

bp_console