Note: FixedTopology must be assigned to the modules before we can connect the software to them, in this project, we have the main steps configuring them in the appropriate way.
There are a few steps to set up the hardware before we can start:
1. 3D print your project case, The 3D file are available at Thingiverse.
2. Assemble your array.
3. Make a fixed topology for your project array (Wiki).
4. Load firmware on the modules (Wiki).
Note: This project is an upgrade version of the Hexabitz Digital Weight Scale
In this project, we are using the serial port connection to connect the application with the USB module but in the future, we will add the network connectivity as it will be the main way to interact with Hexabitz modules on a bigger scale.
Let's start with how to build the main web application which is built using Visual Studio IDE from Microsoft.
we are going to create a new web application:
after that, we are going to use the NuGet packages manager from solution to add the System.IO.Ports package from Microsoft to import the necessary libraries to let the web application communicate with the computer serial port (USB):
we created the web application and added the required code in the attached repo, and here is the main web application interface:
Where it's constructed from two main sections.
- The connection option section.
Where we select the connection configurations like the COM, Baud Rate, and Source and Destination IDs for the modules.
Connect and disconnect buttons.
The connection status labels.
- The Load cell control section.
in this section, we can control the load cell after we've connected to the modules,
we select the Time out, Period, and unit parameters then send them to the module after that that we will receive the weight value from the load cell as the video in Digital Weight Scale but in the web app written in ASP.NET core.