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

    COM.LTE pin 2?

    Scheduled Pinned Locked Moved Modules
    3 Posts 2 Posters 1.8k 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.
    • A Offline
      aezero
      last edited by

      Hi all,

      I have a number of COM.LTE modems running successfully with CoreBasic units. I was just going through some of my code to make a list of which pins are available for use when I noticed a reference to pin 2 during the modem initialization.

      I see it show up in almost every sample config and forum post like this:

      SerialAT.begin(115200, SERIAL_8N1, 5, 13); 
      pinMode(2, OUTPUT);
      digitalWrite(2, 0);
      delay(3000);
      digitalWrite(2, 1);
      

      What is the purpose of pin 2 here? Many of the examples will have a comment along the lines of "set pin 2 high for using the modem (simulates a power button press)".

      My code doesn't have the two digitalWrite lines, but a single modem.restart() and it has been working fine. As an experiment, I tried removing the pinMode(2, OUTPUT) line in my code and reassigning it as an input connected to a toggle switch, and everything still seems to be fine.

      Thanks!

      aezero

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

        Hello @aezero

        this code sequence is used to power on a given modem. Some types of modems power on automatically and other types of modems need a short pulse to turn on.

        The SIM7600 used in COM.LTE is wired to automatically turn on - no additional pin is required for that. In other words you can use pin 2 for something else.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          aezero @felmue
          last edited by

          @felmue Thanks, Felix! You're the best!

          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