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

    How many of the M-Bus GPIO capable of capacitive input (TOUCHx) ?

    M5stack Grey
    3
    6
    12.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.
    • B
      brus
      last edited by

      Hi everyone, I'm about to get my first M5Stack, and for the main use I have for it I'd need capacitive inputs, or at least 3 of the 10 available on the esp32.
      In the image below (from the esp32 datasheet), you can see there are 10 GPIOs capable of getting capacitive input, named from TOUCH0 to TOUCH9.
      0_1584654049865_cap-gpio.png
      Looking at the schematics, it seems that a good part of this inputs are already dedicated to some other function, namely

      • GPIO32
      • GPIO33
      • GPIO27
      • GPIO14
        for the LCD display
      • GPIO4
        for the SD card.

      The remaining GPIOs available are 0,2,12,13,15; and they are all marked as "IO" as alternative function in the M-Bus definition of the schematic (see below)
      0_1584654525012_m-gpio.png

      Of these, only GPIO0 seems to be dedicated to some hardwired function (Auto-Download), while also having a pullup resistor, while the rest of them don't seem to be bound to anything.

      Can anybody confirm if the only available pins for touch input are 2,12,13,15 (and possibly 0) ? Or, are they also unavailable for some other reason?

      Thanks everyone for your time!

      1 Reply Last reply Reply Quote 0
      • m5stackM
        m5stack
        last edited by

        G2 and G12 In the ESP32 boot process. have voltage level requirements. so you can't use they. otherwise it will affect the ESP32 boot

        1 Reply Last reply Reply Quote 0
        • B
          brus
          last edited by

          Thanks for the reply. However, could they be used as this kind of input afterwards? Like, plugging the electrodes in after the booting has completed?
          Also, is 0 definitely unavailable for this purpose?

          m5stackM 1 Reply Last reply Reply Quote 0
          • m5stackM
            m5stack @brus
            last edited by

            @brus after boot you can use the G2 ,G12. the G0 if you don't need download program operation you can use it

            1 Reply Last reply Reply Quote 0
            • B
              brus
              last edited by

              Thanks! That's perfect, cause I need at least 3 of them for an usable application, and 5 would be ideal. I wonder, would it make sense (to your knowledge) to decouple G2 and G12 from the electrodes at boot time, by placing a MOSFET inbetween the connections, which in turn would be activated at runtime from another GPIO of the M-Bus, acting as output? In this way it wouldn't be necessary to physically disconnect the electrodes every time.

              1 Reply Last reply Reply Quote 0
              • C
                crami25
                last edited by crami25

                @brus

                Use the M5Stack with the makey 16-channel capacitive touch unit !
                I've made a banana touch keyboard using the M5Stack and the makey hub as shown with the original Arduino-MakeyMakey in https://www.youtube.com/watch?v=pfjWdoW7pt4 .

                You can program the makey banana keyboard using blockly.

                good luck crami25

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