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

    NanoC6 dev kit. Code only runs when attached to IDE

    General
    2
    3
    349
    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.
    • M
      madwilliamflint
      last edited by

      Good afternoon,

      I'm pretty much a complete hardware noob. I spent yesterday getting a Nano c6 board to activate a relay after 2 seconds of powering on (and when the button is depressed.)

      The code works fine while attached to the computer on which I'm running the arduino ide.

      But when I plug it in to simple usb power, it's dead as a doornail. If I plug it back into the computer, everything's fine.

      I know I'm missing something silly. But...what?

      I can paste the code if you'd like. But I'm not sure what difference it would make.

      The thing I'm trying to get done is "Turn on this relay for 1 second when the nano gets power." So it's nothing too complicated.

      What am I missing?

      Thanks.

      • M
      kurikoK 2 Replies Last reply Reply Quote 0
      • kurikoK
        kuriko @madwilliamflint
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • kurikoK
          kuriko @madwilliamflint
          last edited by

          @madwilliamflint
          You can check whether the problem is related to the relay or the nano itself: for example, connect the nano to a specified Wi-Fi after powering it on, and see if there is any difference when plugging it into a computer or a USB power source.

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