Sartorius Entris II#
The Entris II is a line of laboratory balances from Sartorius with an RS-232 serial interface (SBI protocol).
Property |
Value |
|---|---|
(archived) |
|
Communication |
Serial / RS-232, SBI protocol |
Serial settings |
9600 baud, 8 data bits, odd parity, 1 stop bit |
Warning
This driver has NOT been tested against hardware in PyLabRobot. The protocol follows the Sartorius interface spec above. If you verify it on a balance, please open a PR to remove the not-tested warning.
Physical setup#
Connect the balance’s RS-232 port to your computer, typically through a USB-to-serial adapter (any generic FTDI-based adapter works).
Make sure the balance’s serial parameters match the driver defaults (9600 baud, 8 data bits, odd parity, 1 stop bit). These are set on the balance in the setup menu under the interface/SBI settings.
Note
The balance’s factory default is 7-bit ASCII with hardware (CTS/RTS) handshake. If the balance does not respond, check that its data-bits and handshake settings match the driver (8 data bits, no handshake).
Connect#
setup() opens the serial port and reads the serial number. It also logs the not-tested warning.
from pylabrobot.sartorius import SartoriusEntris2
scale = SartoriusEntris2(port="/dev/ttyUSB0") # replace with your port
await scale.setup()
Measure the weight#
measure_weight() returns the current value in grams (<Esc>P print command).
weight = await scale.measure_weight()
print(f"Weight: {weight} g")
Zero#
Zero the balance with an empty pan (<Esc>V, Key ZERO). Use at the start of a workflow.
await scale.zero()
Tare#
Tare the balance to subtract a container already on the pan (<Esc>T, Zero/Tara command). Place your container, tare, then subsequent reads reflect only the added material.
await scale.tare()
Device info#
Query the model and serial number (<Esc>x1_ and <Esc>x2_).
print("Model:", await scale.get_model())
print("Serial number:", await scale.get_serial_number())
Teardown#
await scale.stop()