Connect DS18B20 to Grove Port A?
critter last edited by
has anyone been able to connect a 1 wire ds18b20 waterproof temperature sensor to the m5stack grove connector A?
I see a + and a - port, and an SDA and an SCL port. Can either of those be used to one wire connections? And how would I do that in code?
Thank you so much!
robalstona last edited by
I made custom block for uiflow for do this. But i implemented use only one sensor per gpio pin without checking crc errors (shorter and simplicity code).
and here is python code used in this custom block:
Try connect sensor to SDA pin in groove port, but you must find a number of gpio pin assigned for this line.
You also should connect a pullup resistor (2-10kohm) betwen sensor DQ pin and sensor Vcc. In my case i use ds18b20 without this resistor, but my connection to sensor is shorter than 10cm.