grblHAL / Plugin_plasma

grblHAL plugin for plasma cutters (THC)
Other
13 stars 1 forks source link

Analog voltage input on STM32F1xx driver #11

Open jas-mic opened 2 days ago

jas-mic commented 2 days ago

Hello,

I would like to test the plasma module with a board based on the STM32F1xx (STM32F103RC). This is a "High-density" chip that has I/Os for reading and writing analog signals. Datasheet of the STM32F103(RC) The pins are labeled "ADC123_IN" in the documentation on page 13, and there are 3 12-bit ADCs.

Is it possible to use these inputs to read the reference voltage of the plasma arc (coming from a voltage divider, plasma plugin mode 1) ? I don't think this is currently implemented in this driver, either through the ADC pins or via I2C ?

Thank you for your work Best regards

terjeio commented 1 day ago

It is possible but code has to be added to support both analog input and step injection. It can be ported over from the STM32F4xx driver, currently I have no plans to do so myself.