Klipper and Multiple ADC Channels

Hi!

I’m working on a project and am wondering how Klipper handles pins that are connected to three ADC channels (e.g. ADC123_IN11). Particularly, using this datasheet, page 47, say I have the following pinout:

  • Sensor 1 → PC1/ADC123_IN11
  • Sensor 2 → PC2/ADC123_IN12
  • Sensor 3 → PC3/ADC123_IN13

Can I simply setup that pin (PC1/2/3) as an ADC in Klipper and read from it? Or do I have to somehow tell Klipper which ADC channel to use?

Any help would be appreciated!

IIRC, it is solved underneath.

ADC internally polled for the data; there is no stream/continuous conversion.

And high-level code simply schedules the queries:

So, you should have no problem doing so, as long as those pins are correctly defined within the code.

1 Like

Thank you!