element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Powering Arduino with 5V pin and using USB for serial comms
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 6 replies
  • Subscribers 388 subscribers
  • Views 7224 views
  • Users 0 members are here
Related

Powering Arduino with 5V pin and using USB for serial comms

Andrew J
Andrew J over 4 years ago

I Want to power a Nano or Mega with the 5V pin from my own regulated 5V supply.  But I also want to attach a USB cable for serial comms from a PC.  Looking at the schematic, there doesn’t appear to be any protection or mediation between the USB port and the 5V line only USB and Vin. 

I don’t need power from the USB port but I do need it to be recognised as a COM port on the PC.  Has anyone tried this?

  • Sign in to reply
  • Cancel

Top Replies

  • shabaz
    shabaz over 4 years ago +5
    Hi Andrew, I'm not super familiar with Arduino Nano/Mega, I took a look at the Nano schematic , and there is a diode between +5V and VUSB which should meet your need. I think the VIN supply won't interfere…
  • Andrew J
    Andrew J over 4 years ago in reply to shabaz +5
    I missed that on the Nano schematic - I looked at the PDF on the official site and the auto-selector circuit is tucked up at the top partially obscured by something else! But, yes that would give the protection…
  • Andrew J
    Andrew J over 4 years ago +4
    To wrap this up, I think the easiest thing to do is provide footprints for a USB-UART circuit so that if necessary I can bypass the USB power issue altogether! Something like a Microchip MCP2221a. I can…
Parents
  • shabaz
    shabaz over 4 years ago

    Hi Andrew,

     

    I'm not super familiar with Arduino Nano/Mega, I took a look at the Nano schematic, and there is a diode between +5V and VUSB which should meet your need.

    I think the VIN supply won't interfere with the ability to plug in via the USB. Everything on the Nano board appears powered up via the VIN supply, and similarly everything  is powered by the VUSB supply if that's all that is available. If both are available, then everything is powered by the VIN supply since there's not a diode drop of voltage difference between VIN and VUSB.

    Have I misunderstood the requirement? Or the circuit?

    EDIT: Having re-read, I think you're saying you wish to connect 5V, not a higher VIN (which has to be probably ~ 6V or higher for a regulated output). In that case, you could wire your 5V supply directly to the +5V connection, if you don't use the VIN pin at all. The IC2 (LM1117) might be ok with this (I've not checked the LM1117 datasheet). Worst case, it could be desoldered off, but I suspect it should be fine. Worth a try!

     

    7266.contentimage_207301.png

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Cancel
  • Andrew J
    Andrew J over 4 years ago in reply to shabaz

    I missed that on the Nano schematic - I looked at the PDF on the official site and the auto-selector circuit is tucked up at the top partially obscured by something else!  But, yes that would give the protection if I used a Nano, great find thanks. 

     

    On the Mega, there doesn't appear to be such a circuit.  There's a diode between the DC connector and VIN; and the USB and VIN is selected through a comparator and FET (basically, if VIN is > 2x3.3V then it wins.)  The best it gives is a poly fuse (F1) and I don't think I could rely on that body diode in the FET.

    3343.contentimage_207302.png5428.contentimage_207303.png3857.contentimage_207304.png

     

    So you're right, I want to use the 5V pin with a regulated 5V supply, and I don't want to use Vin (or a DC connector); I don't even want to power from USB, just be able to communicate to the board whilst it's powered on in-circuit.  The Nano works fine because of that diode.

     

    My choice will come down to memory - the Nano Every has 48KB + 6KB which may be enough; if it isn't I would have to shift up to the Mega.  Using Vin would bring power dissipation concerns (and expense!) into play so whilst I could do it, it would be a bit of a pain.

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Andrew J
    Andrew J over 4 years ago in reply to shabaz

    I missed that on the Nano schematic - I looked at the PDF on the official site and the auto-selector circuit is tucked up at the top partially obscured by something else!  But, yes that would give the protection if I used a Nano, great find thanks. 

     

    On the Mega, there doesn't appear to be such a circuit.  There's a diode between the DC connector and VIN; and the USB and VIN is selected through a comparator and FET (basically, if VIN is > 2x3.3V then it wins.)  The best it gives is a poly fuse (F1) and I don't think I could rely on that body diode in the FET.

    3343.contentimage_207302.png5428.contentimage_207303.png3857.contentimage_207304.png

     

    So you're right, I want to use the 5V pin with a regulated 5V supply, and I don't want to use Vin (or a DC connector); I don't even want to power from USB, just be able to communicate to the board whilst it's powered on in-circuit.  The Nano works fine because of that diode.

     

    My choice will come down to memory - the Nano Every has 48KB + 6KB which may be enough; if it isn't I would have to shift up to the Mega.  Using Vin would bring power dissipation concerns (and expense!) into play so whilst I could do it, it would be a bit of a pain.

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube