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

    Units
    2
    3
    1.2k
    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
      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
        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
          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
          • First post
            Last post