Page 1 of 1

ds18b20 programming

Posted: Mon Dec 24, 2018 9:41 am
by Nikunj_Vadher
As I read data sheet for ds18b20, I found we can program it. I would like to know how to program it and how to set alarm level and how trigger some function(code) in micropython.

Re: ds18b20 programming

Posted: Fri Dec 28, 2018 2:17 am
by danjperron
I know is not micropython but I made some bitbanging code for the DS18B20 in C using a raspberry Pi.

Maybe you should look what I did in c and convert it in Python.

The configDS18B20 module allow you to set the bit resolution. It should be easy to set the alarm.

For the Alarm the only problem is that you need to send a command to read the alarm which is way simpler to add the code into your micropython code.


Re: ds18b20 programming

Posted: Thu Jan 24, 2019 3:20 am
by mcauser