Serial communication not working when powered with external 5V

purchased a couple of Arduino nano r4 boards and I’m having trouble setting them in my current project. When powered by an external 5V supply via the 5V pin, the Arduino USB serial port is not discoverable. However, when I solely rely on the USB port for power, the Arduino is discoverable and I can properly interface with it. When powered with the external 5V supply on the 5V pin and running the Blink demo, the Arduino works as expected indicating that it’s running sketches but just not opening up its serial port. I’ve used many Arduino’s in the past for different projects and I’ve never had this problem before so just checking to see if there’s something unique to the Nano R4.

I’ve tried rebooting the board after connecting the USB cable and using different cables. I’m using a M1 MacBook Pro and tried using all USB-C ports.

Why is this a "problem"?

Well, powering via the 5V pin looks like it won't provide 5V on VUSB (check the schematic), but it's not immediately obvious to me why that would matter. In fact, I won't expect it to provide 5V on VUSB. Maybe it's a USB-C thing, something I cheerfully admit to knowing nothing about its internals?

What's more interesting right off that bat is that powering the board via the 5V pin is not listed as a valid power option in the Nano R4 docs:

The board supports multiple power input options:

The VIN pin accepts an input voltage range of +6–21 VDC, which is internally regulated down to +5 VDC.

The board can also be powered directly via the board's USB-C® port, which supplies +5 VDC to the system.

If you power the board via VIN with 6-21V, is the serial port discoverable then?

Edit: are you plugging the USB cable in after or before applying 5V to the board?

From the Nano R4 schematics (relevant section below) I don't see that powering from the +5V would present a problem, nor do I have any idea why the USB is not discoverable under those circumstances. As suggested, the reported "issue" might be with the host.

its not an functional issue in terms of the overall hardware working but being able to connect via usb for communication is part of how I prototype and debug

I haven’t tested with Vin yet but the hardware the Arduino plugs into supplies power to the board only via 5V so it’s useful to test just to see but isn’t a viable solution long term. I checked the schematics and datasheet and agree that there shouldn’t be an issue. The data sheet indicates that you can use the 5V pin as a power input, assuming the power supply is properly regulated.

I plug the USB after powering 5V and have tried rebooting the Arduino as well.

Of course you do, but why also supply power via the 5V pin?

In any case, the trivial solution to your dilemma is to send debug info out of the hardware UART subsystem (Serial1).

I haven’t tested with Vin yet

Why not?

Neither the online docs nor the data sheet say that. They both say VIN or USB. And looking at section 3.2.1 Power Tree in the datasheet, the 5V pin is clearly indicated to be an output, not an input.

sorry, meant to say the online docs https://docs.arduino.cc/tutorials/nano-r4/user-manual/#uart-communication

I have external components that also use 5V power and the USB cable connection is only meant for debugging, not a final part of the hardware. I havent gotten around the Vin input test since I’m away from the bench but will test and come back with info

I'd say then that you need a clarification from someone who actually works for Arduino and has actual knowledge of what the R4 Nano was designed for. Because in two places it says VIN or VUSB. And in a third, it adds 5V. Picking the one you want to be right and ignoring the others is probably not the most logical course of action. One or the other is wrong; time to find out which it is.

I'll reach out to Arduino for more information, hopefully they respond in a timely manner. Assuming the 5V pin is designed as an output, any idea why it can it still be supplied with power and run programs? The schematic suggests to me that it should still work.

I would test feeding through the 5V pin but through a Schottky diode to avoid any possible voltage conflict with the computer's USB port (Although looking at the R4 scheme in detail I don't know if anything is avoided...).

As Remington shows
by the looks of it - there's no VBUS ("vusb") from either VIN or a 5V applied to "+5V".
They don't use D1 on NanoEvery where this external 5V is an issue (and could whack the SMPS IC).

haven’t heard back from Arduino yet but the Arduino is recognizable when powering via Vin.

Is it "connected to" USB at the same time?

yes. I have the usb-c cable connected to my computer and it’s being powered via Vin with 12V. I powered the 12V first then connected the USB-C cable to my computer.

When "the Arduino" is plugged into USB it will, of course, be 'recognizable'.

If USB connection works when the Arduino is powered by Vin, then it is reasonable to assume that there is a problem with the wiring, or the "5V" power supply you forgot to describe.

Good luck with your project.

The problem here is that you cannot provide 5V using the 5V pin and use the USB serial communication simultaneously, which isn’t obvious based on current documentation and experience with using prior arduinos.