🤖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.

    Scheduled Pinned Locked Moved PROJECTS
    2 Posts 2 Posters 3.3k Views
    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 Offline
      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 Offline
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post