analougue read on inputs duet3
-
Hi , i want to put 4 buttons on one input on a duet3 board,
to do this i want to read an analouge input
if Ip x<1V run macro A
if ip x >1 & < 2 run macro B
if ip x >2 & < 3 run macro c
if ip x >3 & < 4 run macro cusing a voltage divider , is this Possible?
i looked for a Voltage read Input i could not find anything. -
@moth4017 it should be possible if you configure a LinearAnalog sensor on that port, then read the value from that sensor. However, I don't advise polling such a sensor rapidly in daemon.g because of the amount of CPU time and SD card bandwidth it would take up. If you've run out of input ports, consider using a tool board or SAMMYC21 as expansion.