Is it safe to connect USB-C and the VIN pin at the same time for Arduino Nano ESP32?

Hi!

Since the power will come from the VIN pin (12 volts), I want to know whether it is safe to upload sketches without disconnecting the VIN pin while I test and debug the logic of my project.

Any help would be much appreciated. Thanks :grimacing::ok_hand:

Hello @Stagirite, welcome to the forums!

Yes, it's safe to use both: the Arduino Nano ESP32 has a diode between VIN and VUSB so that if VIN > VUSB, VIN takes precedence and the board is always powered regardless of the PC being connected or not. :+1:
Note that no other pins are 12V safe though, so test with care! :wink:

1 Like

Thanks @lburelli :grimacing::ok_hand:, I appreciate your time and support. Thanks for the explanation, that is an amazing feature!

1 Like