Alexa, table up!

Adjustable table desks are GREAT !

Protocol

  • total 32 bits
  • 1ms = 1 bit
  • 23 fixed bits
  • 8 height bits
    • negated + reversed
  • 1 check bit
10111111100111111111101 01001001 0
01001001 -> neg -> 10110110 -> reverse -> 01101101 = 109 cm

Motor

Raspberry

Controller

Arduino

Text

Raspberry

Text

So just connect wires, right? 🤩

NOPE

5V vs 3.3V

  • Arduino 5 V
  • Raspberry 3.3 V
  • you need step up and step down level shifter curcuit

Step down/step up level curcuit

Driver in Typescript

  • quick prototype
  • nodejs is fast, right?

too SLOW

Driver in Rust

  • worked reasonably well
  • REST API for setting table height
  • raspberry should be fast enough, right?

Not always

Alexa, table up!

Conclusion??

use Arduino for low level hardware operations

use proper tools 🔧

be lazy and don't wait for a table

Thank you

@martin_nuc

Martin Nuc

Made with Slides.com