I am pretty new to Arduino but I am building a code for two temp sensors (ds18b20’s) to control a servo.
Anyway, I was trying to apply the code for the encoder to set a ‘setpoint’ and It works great, apart from the values jumping a bit from the encoder…anyone know why this happens?
However, I have worked out that as soon as the ‘sensors.requestTemperatures();’ is activated in the code then the encoder will then muck up and doesn’t serial print properly etc. Does anyone know why this might be? Also any future tips on presenting my code below would be taken on board :).
The code below is a section taken out of my full code. But I have narrowed it down to this small piece of code that isn’t working properly.
Problematic_code.ino (1.13 KB)