The DS18B20 1-wire temperature sensor

The DS18B20 is a high precision temperature sensor using Maxim's 1-wire protocol. Again a driver is already available in the micro Python library making it easy to interface to the module.

wemosDS18B20.png

As before I wrote a small hardware testing program stored in my driver directory

https://github.com/uraich/MicroPython_IoTDemos/tree/master/drivers/ds18b20

and only when I can read the temperature as expected I add the WiFi and MQTT code for Cayenne and save it into the cayenne directory

https://github.com/uraich/MicroPython_IoTDemos/blob/master/cayenne/ds18b20/cayenneDS18B20.py

-- Uli Raich - 2019-03-22

Comments

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt cayenneDS18B20.py.txt r1 manage 1.4 K 2019-03-22 - 14:28 UliRaich  
Texttxt ds18b20Test.py.txt r1 manage 0.5 K 2019-03-22 - 14:28 UliRaich  
PNGpng wemosDS18B20.png r1 manage 110.5 K 2019-03-22 - 14:26 UliRaich  

This topic: AFNOG > WebHome > AFNOGWorkshop2019 > WeMosD1Mini > DS18B20Shield
Topic revision: r2 - 2019-05-17 - UliRaich
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback