xbst / KUSBA

Klipper USB Accelerometer Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

documentation of the protocol

tcurdt opened this issue · comments

Fantastic project.
I was thinking of building something similar for another context (non-Klipper).

I am trying to understand how the communication works over USB.
What's the protocol? Are there some docs?
Is the latency a problem for the measurements?

Where is the code that actually runs on the MCU?
And what's the flash used for?

commented

The protocol is spi to the rp2040, then usb, so no different from the normal klipper setup. Latency shouldn't be any different compared to wiring the spi pins to a normal controller or a pi pico. The code is klipper, built at the time of flashing with the latest files available at the time. flash is used to store the klipper code.

The protocol is spi to the rp2040

of course

then usb

And that's the bit I am after.
But it sounds like this might be more of a question for the Klipper project.

To give more context:
Let's say I connect board and connect it to linux machine.
How could I talk to the board (without using Klipper)?

Seems I would need a custom firmware for the rp2040 and something on the host as well.

commented

Probably something can be programmed for that with arduino IDE.