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

    Stamp C3 mate. 3 adc instead of 4?

    Scheduled Pinned Locked Moved Units
    3 Posts 2 Posters 2.2k 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.
    • H Offline
      HappyUser
      last edited by

      Because Gpio5 on Esp32 can not be used as ADC together with WiFi, is there another pin I could use as ADC?
      Thanks.

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

        Hello @HappyUser

        well, according to ESP32C3 documentation ADC1 has 5 channels (GPIO0 - 4) and ADC2 has one (GPIO5). Of the total six channels GPIO5 cannot be used together with WiFi. However GPIO0, GPIO1 and GPIO4 are available.

        That leaves GPIO2 (RGB LED) and GPIO3 (button). If you do not need the button it should be possible to use GPIO3 after soldering a thin wire to it. To use GPIO2 however would require to remove the RGB LED I guess.

        Thanks
        Felix

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

        1 Reply Last reply Reply Quote 0
        • H Offline
          HappyUser
          last edited by

          Thank you, but the is too much off a hassle, will come up with another solution.
          Regards

          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