Open JackDaviesDesign opened 2 months ago
I have not added analog input capability to this driver yet so it is not possible to use voltage driven THC until that is done.
How do plan to connect arc voltage? More or less directly to an analog capable MCU pin? Or via galvanic isolation?
FYI Phil Barrett has made an I2C ADC board that provides isolation, aimed at plasma use. Adding support for that may be a tad easier (and safer) than using a MCU pin.
Anyway code has to be added and I am not able to do that for a while since I am away and without access to a dev board. If you are capable of adding it then the driver that might have the closest matching bits could be the STM32Fxx driver, the most complex part is in this file.
Thank you for the feedback, that would explain it!
I have since purchased an ADC board from Phil based on your recommendation. Would be great if you could look at implementing this for the SMART Ramps when you are back/have time. I looked at your examples but it goes a bit over my head!
Thank you in advance!
MCP3221 support added in the latest commit - but not yet available from the Web Builder.
MCP3221 support now available in the Web Builder, enable in the Optional inputs tab.
I am trying to add an analog input to measure the arc voltage of a plasma cutter using the THC plugin.
This is with no changes to the ramps_smart_map.h file.
I then added these lines to the ramps_smart_map.h file
This is the result of
$pins
Everything got shifted down a level. Do I need to define that this pin (B20) is an analog pin somewhere?