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 7222 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
  • Andrew J
    Andrew J over 4 years ago

    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't work out whether that should be powered from the USB VBUS or whether I can power it from my own 5V supply (preference); nor whether the ground connections for the USB connector, MCP2221a and the Arduino (or MCU) should be the same even if powered from different sources (I always get confused by that!).  I'd rather just connect the D+, D- and GND and leave the VBUS disconnected as not needed.

     

    EDIT: Providing this, where +5Vdd and -Vdd is used as power connections for everything (MCP2221A, Arduino/MCU, USB connector), ignoring USB power, looks like a good fallback position that might cost a couple of quid to add to a PCB if needed.

     

    5504.contentimage_207305.png

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

    Hi Andrew,

     

    If you're planning to use a USB-UART chip like this, an option could be to use the USB supply for only powering up the MCP2221A chip. It seems the easiest, since there will always be power available via USB if is connected, and the MCP2221A chip is doing nothing when the USB connector is not plugged in anyway.

    In other words, you could power the MCP2221A via USB, and power the remainder by whatever is required/preferred for your project (USB or other supply or both), and the USB connector GND and MCP2221A VSS and the remainder circuit ground will still be connected all together, since that's the reference for the RX/TX signals. I wasn't sure if -Vdd is ground or a different voltage in the diagram.

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

    Hi Shabaz,

     

    That makes a lot of sense given the way I've drawn it, but I've spent some more time thinking through the right approach.

     

    I'm not sure yet whether a 5V MCU will turn out to be the right solution - memory issues, pin counts etc - so I've provided an option for VDD being 3.3V.  That gives me access to a greater range of MCUs, LCDs with built in processors, and so on.

     

    I have a jumper to link VDD and VUSB on the MCP2221A if VDD is 3.3V.  If I power VDD with VBUS and VUSB with 3.3 I think there will be an issue as the internal 3.3 LDO won't be disabled; also Rx and Tx will be 5V levelled and I would want them to be 3.3V levelled.  In a tradeoff, having the chip powered but doing nothing is not ideal but I'd rather that than have problems if I have to power it with the lower voltage.  Hope I've explained that well enough.

     

    -VDD is ground tied to the +5V (or +3.3.V) regulator.

     

    Here's a more complete schematic of this section.  VDD will be either +5V or +3.3V; JP1 will be populated 1 to 2 if it's +3.3V and 2 to 3 if 5V.  I suppose I could also jumper VDD pin between +Vdd and VBUS so that if 5V is used, then I could run the IC off VBUS. 

    2772.contentimage_207306.png

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

    Hi Andrew,

     

    I see what you mean, it makes sense for the two scenarios (3.3V and 5V logic).

    I tried creating a standalone USB-UART, for both logic levels, and I used a separate voltage regulator as shown in the circuit diagram below.. but I've also been dropping this circuit into microcontroller projects as-is, but hard-wired to the correct logic levels without the jumpers shown in the circuit below. It doesn't add much to the cost since it's a very cheap LDO, but admittedly it is a bit unnecessary if the 3.3V supply is available elsewhere!

     

    Recently I've decided to try to use a different USB-UART chip (Cypress Cy7C65213) since it supports a few features I wanted for a specific project (in particular flow control pins) I have not tested it yet. For that too I've just gone with adding the 3.3V LDO.. the unnecessary "luxury" option but I don't lose much sleep over it since I'm not doing anything price-sensitive, and has the slight benefit that it's decoupled from the microcontroller supply.. sometimes that might run at 3V or something I suppose, if it's running off a battery etc. It could be an option if you can't entirely predict how you may use the project or the board may be used for other purposes one day. Using the existing supply on the board makes total sense too.

    3463.contentimage_207307.png

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

    Hi Andrew,

     

    I see what you mean, it makes sense for the two scenarios (3.3V and 5V logic).

    I tried creating a standalone USB-UART, for both logic levels, and I used a separate voltage regulator as shown in the circuit diagram below.. but I've also been dropping this circuit into microcontroller projects as-is, but hard-wired to the correct logic levels without the jumpers shown in the circuit below. It doesn't add much to the cost since it's a very cheap LDO, but admittedly it is a bit unnecessary if the 3.3V supply is available elsewhere!

     

    Recently I've decided to try to use a different USB-UART chip (Cypress Cy7C65213) since it supports a few features I wanted for a specific project (in particular flow control pins) I have not tested it yet. For that too I've just gone with adding the 3.3V LDO.. the unnecessary "luxury" option but I don't lose much sleep over it since I'm not doing anything price-sensitive, and has the slight benefit that it's decoupled from the microcontroller supply.. sometimes that might run at 3V or something I suppose, if it's running off a battery etc. It could be an option if you can't entirely predict how you may use the project or the board may be used for other purposes one day. Using the existing supply on the board makes total sense too.

    3463.contentimage_207307.png

    • Cancel
    • Vote Up +1 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