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

    M5StickC Plus 2 ADC voltage measurements

    M5 Stick/StickC
    2
    2
    388
    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.
    • S
      schlasnik
      last edited by

      Hi there, I would like to use the M5StickC Plus 2 to measure several capacitive sensors in a loop by reading their voltage depending on their charge/discharge curve.
      There are 12 sensors in total so each one needs their own analog pin on the ESP32. The fact that the ESP32-PICO-V3-02 offers 2 ADCs would make it possible to parallelize measurements. Hence 6 of the sensors could be measured on ADC1 and 6 others on ADC2. Would this somehow be possible with the M5StickC Plus 2 ? There are 2 problems that I see with this:

      • not enough pins left because of peripherals inside the M5StickC package occupying them

      • no way to access the left-over pins other than the GROVE port which can only give me e.g. 6 additional analog Inputs using the PbHUB

      Any help?

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

        Hello @schlasnik

        you can connect multiple PbHubs in parallel. For that you'll need to make sure they all have different I2C addresses. The original PbHub has three solder bridges (A0, A1, A2) for that. See here. PbHub v1.1 allows to change its I2C address via command (0xFF). See here.

        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