🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5 Stick C Plus temperature sensor without hat.

    PROJECTS
    2
    2
    2.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Peter Sain
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        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

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • First post
          Last post