An android application that connects to a Bluetooth module and reads from the load cell and streams the data to the app.
We used the JAVA-COMS-LIB library to calculate and send the right values to the modules
The application has three main screens:
The first one with the paired devices:
As we select the Bluetooth module name starting with (H23Rx) as it represents its code.
after that we connect with it to go to the next screen which is the settings fragment in the main screen:
here we select the destination and source of the module after assigning the topology for them in the backend of the modules.
Here we have the Bluetooth module is the source with the ID 1 and the destination module is the load cell with the ID 2
after we make sure the right values are assigned we go to the LOAD_CELL tap that contains the controls:
where we select the unit, period and timeout parameters to send to the modules after that we receive a stream of 4 bytes in a float representation to be displayed in the label as shown.
And we upgrade a weight scale with a 10 Kg load cell
and the modules in the scale with the load cell:
Here is a video showing how the app works:
a
Comments