Note
The Load Cell is discontinued and is no longer sold. The Load Cell 2.0 is the recommended replacement.
The Load Cell Bricklet can be used to extend the features of Bricks by the capability to measure load cells. Only a single known weight is required to calibrate the load cell. It is possible to measure weight differences of few grams in objects that weigh many kilograms.
Load cells with different maximum weights are available in the shop:
The Bricklet has an LED that can be turned on trough the API, e.g. to show that a weight measurement is in range.
Property | Value |
---|---|
Sensor | HX711 |
Current Consumption | 150mW (28mA at 5V) |
Resolution | 24bit |
Dimensions (W x D x H) | 30 x 30 x 14mm (1.18 x 1.18 x 0.55") |
Weight | 7g |
The Load Cell Bricklet has four terminals. The PWR and GND terminals are for the excitation voltage and the IN+ and IN- terminals are for the signal measurement.
A typical load cell will have four or five wires. Check the specification of your load cell for its pinout and connect it according to the table below.
Connection | Terminal | Possible Wire Colors |
---|---|---|
Excitation + | PWR | red |
Excitation - | GND | black, yellow |
Signal + | IN+ | green, blue |
Signal - | IN- | white |
Plugin version 2.0.0 for the Load Cell Bricklet had a bug that resulted in inverted weight measurements. To avoid this you could swap the signal wires connected to the IN+ and IN- terminals. This bug was fixed in version 2.0.1 and the signal wires can be connected according to the table above now.
To test a Load Cell Bricklet you need to have Brick Daemon and Brick Viewer installed. Brick Daemon acts as a proxy between the USB interface of the Bricks and the API bindings. Brick Viewer connects to Brick Daemon. It helps to figure out basic information about the connected Bricks and Bricklets and allows to test them.
Connect the Load Cell Bricklet to a Brick with a Bricklet Cable. Additionally connect and calibrate a load cell.
If you connect the Brick to the PC over USB, you should see a new tab named "Load Cell Bricklet" in the Brick Viewer after a moment. Select this tab. If everything went as expected you can now see the weight in gram and a graph that shows the weight over time.
After this test you can go on with writing your own application. See the Programming Interface section for the API of the Load Cell Bricklet and examples in different programming languages.
The Load Cell Bricklet has to be calibrated for the connected load cell and the specific setup.
Connect a load cell to the Bricklet as described above. Then start Brick Viewer and click the "Calibration" button on the "Load Cell Bricklet" tab. With no weight on the load cell, click the "Calibrate Zero" button. Now put a known weight on the load cell, enter the known weight in gram as the "Current Weight", then click the "Calibrate Weight" button.
Now the Load Cell Bricklet is calibrated for the connected load cell and the specific setup.
The Scale Kit is build from MakerBeam, a 1kg Load Cell and laser cut plastic parts. It is available in the Tinkerforge shop, but you can also just use the description to get an idea on how to mount a load cell in general.
A laser-cut case for the Load Cell Bricklet is available.
The assembly is easiest if you follow the following steps:
Below you can see an exploded assembly drawing of the Load Cell Bricklet case:
Hint: There is a protective film on both sides of the plates, you have to remove it before assembly.
See Programming Interface for a detailed description.
Language | API | Examples | Installation |
---|---|---|---|
C/C++ | API | Examples | Installation |
C# | API | Examples | Installation |
Delphi/Lazarus | API | Examples | Installation |
Go | API | Examples | Installation |
Java | API | Examples | Installation |
JavaScript | API | Examples | Installation |
LabVIEW | API | Examples | Installation |
Mathematica | API | Examples | Installation |
MATLAB/Octave | API | Examples | Installation |
MQTT | API | Examples | Installation |
openHAB | API | Examples | Installation |
Perl | API | Examples | Installation |
PHP | API | Examples | Installation |
Python | API | Examples | Installation |
Ruby | API | Examples | Installation |
Rust | API | Examples | Installation |
Shell | API | Examples | Installation |
Visual Basic .NET | API | Examples | Installation |
TCP/IP | API | ||
Modbus | API |