Can I use a diode to prevent voltage feedback to VIN from USB port?

Hi all. I'm using a Buck voltage converter to power the Arduino Nano ESP32 via the VIN pin. Whenever I need to make some code changes, I then plug my computer in to the USB port, which also supplies power (no power is going to the Buck converter input when USB is connected). However, some voltage is finding it's way from the USB connector to the VIN (4.4v), which is causing the Buck Converter to get power to it's output, which I can see on it's voltage display. I would imagine that this may cause some damage to the Buck converter or Nano board. I've done some research, and found one post that mentioned I may be able to use a diode (1N4004 or 1N5817) between the Buck converter and VIN to prevent reverse voltage to the Buck converter output when the Nano is powered by the USB port. That post I found was 8 years ago, so wanted to ask if I can still do that with the Nano ESP32 board, and which diode should I use?

Much appreciated

The Nano ESP32 schematic shows a diode between VUSB and Vin (Step down converter): https://docs.arduino.cc/resources/schematics/ABX00083-schematics.pdf

1 Like

Thanks for the response, but I'm not sure I understand how it answers the question. I'm not an electronics expert; just trying to figure out if there is a way to solve the problem mentioned.

Thanks

1 Like
  • In a similar situation I made a USB cable where the 5v pin from the PC is disconnected.

I guess I rushed to provide an answer.

Vin is fed to a built-in buck converter capable to receive 6-21V (MP2322GQH). You do not need an external buck converter if your power supply is within these limits.

If you feel more comfortable using one, place an 1N4004 or similar to protect it. THis diode can handle up to 1A continuously, just consider its voltage drop of about 1V.

Check also https://docs.arduino.cc/resources/datasheets/ABX00083-datasheet.pdf

Hi @smeyers61 ,

Welcome to the forum..

need one of these USB Power Blocker..

good luck.. ~q

When powered by USB it is possible to draw power from the Vin pin.

What happens next depends on your buck converter. Many (most?) buck converters do have a back feed path, allowing to supply power to circuitry that is meant to use the same source that supplies your buck converter, possibly damaging it. A diode between your buck converter and the Vin pin prevents that.

Some power supplies have a circuit that discharges the output capacitor under certain circumstances. If you are sure your converter doesn’t do that, it is energetically advantageous to place the diode at the input of the converter.

1 Like

What voltage is your buck applying to the VIN pin?

Thank you, somehow I missed that! Just to be sure, can I supply 12v from a marine battery (actually 12.8v) without a regulator directly to the Nano's VIN?

  • Yes's 12v can be connected.

  • Remember, W = V * A. Where the more voltage dropped across a voltage regulator the hotter it gets.

  • Where high capacity batteries are concerned, always have a properly rate fuse at the battery in the event you short something.

1 Like

Yes.

The MP2322 regulator has an absolute max input of 24V, recommended max 22V.

A lead-acid battery is usually charged up to 14.8V.

But be aware of back current (the chipmakers usually don’t provide a max):

Here it is for direct supply to the Nano ESP32:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.