Read Voltage from Heatbed Power IN
-
Hello everyone,
I am looking for a way to read in an analog signal of 0-10V from a distance sensor and display it. I use the Duet 3 Mainboard 6HC and build a laser powder 3d printer. I don't need a heating bed for this and my idea is to use the free OUT 0 POWER IN for the analog signal. Is there any way to read out the voltage value. I have not found anything in the documentation.
Thanks -
@ErlerPrint3D
I have already tested:M308 S18 P "io3.in" Y "linear-analog" A "MySensor" F0
It works well but you have to convert the voltage from 0-10V to 0-3.3V. And I would like to avoid that.
-
@ErlerPrint3D said in Read Voltage from Heatbed Power IN:
M308 S18
Ths sounds like what you need.
Bnnn The temperature or other value when the ADC output is zero
Cnnn The temperature or other value when the ADC output is full scaleReference:
https://docs.duet3d.com/User_manual/Reference/Gcodes#m308-set-or-report-sensor-parametersAdditional parameters for linear analog sensors
Fn F0 = unfiltered (fast response), F1 = filtered (slower response, but noise reduced and ADC oversampling used to increase resolution). F1 is only available when using a port intended for thermistors, not when using a general input port.
Bnnn The temperature or other value when the ADC output is zero
Cnnn The temperature or other value when the ADC output is full scale -
@bricor Thanks for your answer. As I said, I have tested it with M308 and it would be a solution, but I ask myself if there is another way. For example via the free Power IN. In addition, all inputs (I0_0 to IO_8) are used for endstops. Therefore I am looking for another input.
-
@ErlerPrint3D Out0 power in is not an input to the MCU. It's the power input for OUT0. OUT0 is switched on the ground side by the out0 pin; there are no other input/outputs available there.
If you need more I/O, note that:
IO output pins can be used as inputs, but are only 3.3V tolerant. IO input pins can be used as outputs, but have 10K protection resistors in series with them, so you would need to bypass these to use them as outputs.
Ian
-
@droftarts okay, thank you.