- set up Rasperry Pi Pico environment as described here
- prepare Bekant PCB as described here
- install firmware onto Raspberry Pi Pico
- mkdir build
- cd build
- cmake ..
- make
- boot Rasperry Pi Pico in storage mode and copy
main.uf2
onto it
- create & connect circuit board as in
schematic.png
TP1 LIN
corresponds to theTP1
header on the Bekant PCBH5
andH6
corresponds to the 5th and 6th header pin on the Bekant PCB as inbekant_pcb.jpg
- a long press on
BUTTON_UP
/BUTTON_DOWN
will manually move the desk up / down - a short press on
BUTTON_UP
/BUTTON_DOWN
will move the desk to the pre-definedPOSITION_STAND
/POSITION_SIT
- the desk will also report its height (as reported on the LIN bus and converted to millimeters) over the USB serial interface