/baustella-interface

Primary LanguageTypeScriptGNU General Public License v2.0GPL-2.0

baustella-interface

Arduino libraries

Serial protocol

The Arduino Nano and Raspberry Zero communicate in both directions over a serial port via USB.

Arduino -> Raspberry

Value name Schema Example
Weight 0 w0:<long>; w0:22500;
Weight 1 w1:<long>; w1:22500;
Temperatur 0 t0:<float>; t0:20.3;
Button 0 b0:<0|1> b0:1
Button 1 b1:<0|1> b1:1
Button 2 b2:<0|1> b2:1

Raspberry -> Arduino

Value name Schema Example
Display d0:<char[]>; d0:XXXX;

The chars are to be set like described here.