TY - JOUR TI - LabNet hardware control software for the Raspberry Pi AU - Schatz, Alexej AU - Winter, York A2 - Mathis, Mackenzie W A2 - Wassum, Kate M A2 - Saunders, Jonny L A2 - Lopes, Gonçalo VL - 11 PY - 2022 DA - 2022/12/30 SP - e77973 C1 - eLife 2022;11:e77973 DO - 10.7554/eLife.77973 UR - https://doi.org/10.7554/eLife.77973 AB - Single-board computers such as the Raspberry Pi make it easy to control hardware setups for laboratory experiments. GPIOs and expansion boards (HATs) give access to a whole range of sensor and control hardware. However, controlling such hardware can be challenging, when many experimental setups run in parallel and the time component is critical. LabNet is a C++ optimized control layer software to give access to the Raspberry Pi connected hardware over a simple network protocol. LabNet was developed to be suitable for time-critical operations, and to be simple to expand. It leverages the actor model to simplify multithreading programming and to increase modularity. The message protocol is implemented in Protobuf and offers performance, small message size, and supports a large number of programming languages on the client side. It shows good performance compared to locally executed tools like Bpod, pyControl, or Autopilot and reaches sub-millisecond range in network communication latencies. LabNet can monitor and react simultaneously to up to 14 pairs of digital inputs, without increasing latencies. LabNet itself does not provide support for the design of experimental tasks. This is left to the client. LabNet can be used for general automation in experimental laboratories with its control PC located at some distance. LabNet is open source and under continuing development. KW - software KW - hardware KW - behaviour JF - eLife SN - 2050-084X PB - eLife Sciences Publications, Ltd ER -