🤖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

    Scheduled Pinned Locked Moved General
    3 Posts 2 Posters 1.3k Views
    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 Offline
      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 Offline
        kuriko @madwilliamflint
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • kurikoK Offline
          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

          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