ds18b20 programming
-
- Posts: 14
- Joined: Mon Dec 10, 2018 6:37 am
ds18b20 programming
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: 51
- Joined: Thu Dec 27, 2018 11:38 pm
- Location: Québec, Canada
Re: ds18b20 programming
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.
https://github.com/danjperron/BitBangingDS18B20
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.
Daniel
Maybe you should look what I did in c and convert it in Python.
https://github.com/danjperron/BitBangingDS18B20
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.
Daniel