Go Down

Topic: DS18B20 Temperature Sensor Interrupt (Read 403 times) previous topic - next topic

Aruen

Hi.

I checked the Dallas library and it uses delays so it stop the microcontroller.

Is there any library who use interrupts to retrieve temperature from that sensor?



wildbill

There is a function in the library that allows you to avoid the delay: setWaitForConversion. You have to manage the wait yourself using millis, but it lets you do other work while you're waiting.

Aruen

I was trying to program the interrupts but Im leaving. I am going to use another microcontroller to handle the polling.

This code does not work. I left here if someone want to use it or take as a reference.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy