hog
Hello,
I use an Arduino Nano and want to read the value of a DS18B20 Sensor. I connect the Sensor to pin 16 (A2) of the controller. Everything works fine but the performance is very slow. Is there a possibility to speed up?
Kind regards
Gerhard 
thiagoralves
Nope. OneWire sensors are very slow. This is a hardware limitation. Buffering in software could improve overall performance, but giving the limited amount of resources in little Arduino boards I don’t think it will be worth the hassle.
Reply 0 0
hog
thanks, I think it's ok so, I was only afraid that I make something wrong
Reply 0 0
hog
Hi, I solved the problem with the DS18B20 for me as follows: I built a programm with task cycle time of 15s. Because its enough when the temperature value refreshes every 15s. There I make the mesurement. And in a task class with 20ms Task cycle time I use the stored value of the sensor mesurement. So the rest of the programm works really fast.
Reply 0 0
thiagoralves
That is a good approach. You will just have a little slowdown every 15 seconds when the DS18B20 task runs, but other than that it should be fine
Reply 0 0
Reply