M5 Stick C Plus temperature sensor without hat.



  • Hi everyone. In a M5 Stick C Plus are pins 32 or 33 analog Pins? I want to connect a DS18B20 temperature sensor to the Grove Port but i'm not getting data. I don't want do use a ADS hat because will not be functional to the solution i want. Thanks in advance



  • Hello @Peter-Sain

    most GPIOs on the ESP32 can be setup to do different things - so yes an no, GPIO32 and GPIO33 are not per se analog pins, but they can be if needed.

    However the DS18B20 is a OneWire component which is a digital bus (and not analog).

    I just ran a test (Arduino) with my M5StickPlus and either GPIO32 or GPIO33 can be used just fine to talk to a OnWire DS18B20 temperature sensor.

    Did you connect a 4.7 k resistor between VCC and OneWire data line?

    Could you share your code?

    Thanks
    Felix