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

    Advanced pins programig help!

    Scheduled Pinned Locked Moved Lessons and Guides
    6 Posts 3 Posters 10.9k Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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 Offline
                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

                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