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

    Advanced pins programig help!

    Lessons and Guides
    3
    6
    9.1k
    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.
    • R
      RB 0
      last edited by

      Hi ! Can anyone tell me how can I connect a button on m5stack PINs? I did the connections on the image but it gave some strange results: the device would have trouble connecting via USB, or it turnd ON but doing nothing or simple turning OFF instead.. This is an endstop button that is connected on a normally ON state

      1 Reply Last reply Reply Quote 0
      • R
        RB 0
        last edited by

        I mean... I can't upload the image... i connected the switch to 3.3V and GPIO36, used a resistor to connect to ground... and in the programing I used the [Init pin0 (Pin 36) mode IN PULL_UP] and used an [if GET pin0 value = 0] [Set Screen backgroundColor].

        1 Reply Last reply Reply Quote 0
        • R
          RB 0
          last edited by

          I mean... I can't upload the image... i connected the switch to 3.3V and GPIO36, used a resistor to connect to ground... and in the programing I used the [Init pin0 (Pin 36) mode IN PULL_UP] and used an [if GET pin0 value = 0] [Set Screen backgroundColor].

          1 Reply Last reply Reply Quote 0
          • M
            mb
            last edited by

            Hi RB0,

            if you need to show an image here you can just use any image hosting service.

            I have searched for a service which needs no registration and found imgpile.com

            ! THIS IS NO RECOMMENDATION - IT'S JUST ONE OF MANY SERVICES !

            1. Upload the image
            2. The image will be shown on a full page (like https://imgpile.com/i/uL5fGC)
            3. Right-click and select "View image" in your browser
            4. Now you get the real image with suffix (like https://imgpile.com/images/uL5fGC.png)
            5. This link you can copy into the picture tag

            ! THIS IS NO RECOMMENDATION - IT'S JUST ONE OF MANY SERVICES !

            1 Reply Last reply Reply Quote 0
            • R
              RB 0
              last edited by

              Hi mb ! Thank you for your repply ! I followed your sugestion and uploaded the picture. Here it goes:

              https://imgpile.com/images/uL9Vg4.png

              Unfortunatly you can't preview it of course.
              Thanks a lot for your help.

              1 Reply Last reply Reply Quote 0
              • R
                robalstona
                last edited by

                Gpio 36 don't have any internal pullup, so code generated in uiflow may fail and throw error (try to set non existing internall pullup or pulldown). You should connect to device by serial terminal and observe the messages. You also should use a resistor with values in kilo ohms eg. 4.7kohm or 10kohm

                esp32 pinout reference:
                https://randomnerdtutorials.com/esp32-pinout-reference-gpios/

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