Arduino_MachineControl icon indicating copy to clipboard operation
Arduino_MachineControl copied to clipboard

RTD reading too slow

Open pnndra opened this issue 3 years ago • 2 comments

the 150 ms delay seems unreasonable. time to select analog muxes shall be much slower

https://github.com/arduino-libraries/Arduino_MachineControl/blob/7697070ed1143df11aac1df8fa7583c1b08cd768/src/Arduino_MachineControl.h#L34

pnndra avatar Feb 07 '22 08:02 pnndra

I was just running into this as well. Wondering if there is a way to speed it up? I am also wondering if there is a way to switch the mux and then continue reading other sensors instead of sitting in the mux function on the delay command. Our system is running a loop that would completely stall with a 150 delay.

Undermine28 avatar Apr 16 '22 17:04 Undermine28

I had a go at changing the delay to 100ms and it caused instability in the results, with random spikes to ~500degC. Did also make the function non-blocking similar to the common example 'blink without delay' by having the function return a bool that is true when the change is finished. Can submit a pull request if needed.

SJThomas29 avatar Nov 24 '22 08:11 SJThomas29

Hi @pnndra, It is not possible to reduce the delay due to hardware limitations.

leonardocavagnis avatar Sep 20 '23 14:09 leonardocavagnis