Arduino Nano external 5V DC supply while using Serial communication

Hello, I am a newbie with Arduino.

I am making an rc car with mpu6050, servos, and bldc motors. But my laptop (windows 10) has been getting BSOD a lot recently. First I thought it was because of my old SSD, no biggy. But after several checks, my SSD seemed fine. I concluded that it might be the Arduino that's causing the problem.

Here is my setup. I am powering my Arduino nano via 5V pin.
And I am aware that this method is not advised, but unfortunately this is my only option.
5V pin is connected to step down voltage converter which is fixed at 5V (3A max), and the converter is connected to 3S lipo battery.

For serial communication, laptop is connected with Nano via usb cable. (this is needed in order to tune the pid gains, will be removed if a good value is found)

My laptop crashes after I stop the motors. I have read that it is fine to use external power supply and usb port at the same time if the external power is connected to Vin. But mine is not, so I am guessing that maybe 5V to 5V pin is causing the problem.

Is my guess correct? And what do you suggest me to do if it is correct??
Thanks in advance.

Is that a band??? acronyms need defining! It sounds like a transient is being passed from the motors via the USB to your laptop. Keep doing this and you will have to replace the laptop. There is a good reason it is not recommended to do it this way. Try powering the nano with the 11.1 volts from the battery, it is in range and you will get the benefit of the onboard filtering of the nano. Also why did you not post the rest of the schematic, I find it hard to believe the motors just run. That could also be the source of your problem.

BSOD is a common Windows term.
Blue Screen Of Death.
Leo..

@gilshultz
as @Wawa pointed out, BSOD stands for Blue Screen Of Death, a crash basically.

Also, there are ESCs before the motor. Sorry that I did not draw the whole schematic. They are run by pwm signals from arduino pin 5, 6, 10, 11.

I can not power the Arduino directly because when the 3S lipo battery is fully charged, it is 12.6V.
A bit outside the range...

You could put a diode or two in series with the 3.6 from the battery and that would work for you (1N400? series would work as there is no load on the Nano). If your regulator will give you about 8 volts that will work as well. The regulator will give you better filtering on the 5V and with the diodes you have reverse battery protection.

No

This is part of the schematic of an official Nano (V3.0); full schematic (V3.2) https://www.arduino.cc/en/uploads/Main/Arduino_Nano-Rev3.2-SCH.pdf, it uses different components but the idea stays the same

image

The 5V is either

  1. The 5V from the voltage regulator (if you use Vin > 7V) or 5V supplied on the 5V pin.
  2. Vusb.

The first ones win over the last one due to the diode. One problem can come when your 5V is not exactly 5V but e.g. 4.7V; in that case Vusb will win.

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