ds18b20 programming

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
Posts: 14
Joined: Mon Dec 10, 2018 6:37 am

ds18b20 programming

Post by Nikunj_Vadher » Mon Dec 24, 2018 9:41 am

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.

Posts: 2
Joined: Thu Dec 27, 2018 11:38 pm

Re: ds18b20 programming

Post by danjperron » Fri Dec 28, 2018 2:17 am

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.


Post Reply