Selected board/port doesn't exist when data, 5V, and GND pins are connected

Hello! I bought an Arduino Uno Rev3 starter kit a few years back and I'm trying to re learn how to use an Arduino for some quarantine projects.
I'm trying to start off by learning this Sweep Example for a servo. The problem is I get the error bellow if I upload the code to my Arduino if and only if the data, 5V, and ground pins are connected. The blink example with the build in LED works fine and so does this LED example. I'm guessing something is messing up if i use the 5V and GND pins.

I also looked at the Device Manager to see if the port is being detected, and again, as long as the 5V and GND pins aren't connected its fine. But if I upload the code with them connected, the device manager starts to refresh itself over and over. and my little servo makes a buzzing sound as if its actuating, and it buzzes in time with the device manager refreshing.

Any help on this would be greatly appreciated!

Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"

Sketch uses 2128 bytes (6%) of program storage space. Maximum is 32256 bytes.

Global variables use 52 bytes (2%) of dynamic memory, leaving 1996 bytes for local variables. Maximum is 2048 bytes.

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\definitelynotmyname\AppData\Local\Temp\arduino_build_905684/ServoPBandJ.ino.hex:i

avrdude: Version 6.3-20190619

Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : COM3

Using Programmer : arduino

Overriding Baud Rate : 115200

avrdude: ser_drain(): read error: The device does not recognize the command.

avrdude: ser_send(): write error: sorry no info avail

avrdude: ser_drain(): read error: The device does not recognize the command.

avrdude: ser_send(): write error: sorry no info avail

avrdude: ser_drain(): read error: The device does not recognize the command.

avrdude: ser_send(): write error: sorry no info avail

avrdude: ser_recv(): read error: The device does not recognize the command.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x2d

avrdude: ser_send(): write error: sorry no info avail

avrdude: ser_recv(): read error: The device does not recognize the command.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x2d

avrdude: ser_send(): write error: sorry no info avail

avrdude: ser_recv(): read error: The device does not recognize the command.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x2d

avrdude: ser_send(): write error: sorry no info avail

avrdude: ser_recv(): read error: The device does not recognize the command.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x2d

avrdude: ser_send(): write error: sorry no info avail

avrdude: ser_recv(): read error: The device does not recognize the command.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x2d

avrdude: ser_send(): write error: sorry no info avail

avrdude: ser_recv(): read error: The device does not recognize the command.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x2d

avrdude: ser_send(): write error: sorry no info avail

avrdude: ser_recv(): read error: The device does not recognize the command.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x2d

avrdude: ser_send(): write error: sorry no info avail

avrdude: ser_recv(): read error: The device does not recognize the command.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x2d

avrdude: ser_send(): write error: sorry no info avail

avrdude: ser_recv(): read error: The device does not recognize the command.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x2d

avrdude: ser_send(): write error: sorry no info avail

avrdude: ser_recv(): read error: The device does not recognize the command.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x2d

avrdude: ser_drain(): read error: The device does not recognize the command.

avrdude done. Thank you.

the selected serial port

does not exist or your board is not connected

It looks like the servo is drawing too much current! Then the supply voltage of the UNO breaks down.
What kind of servo did you connect? Larger types require a separate power supply.
For a beginner, however, it makes more sense to experiment with LEDs and buttons. A servo is a bit more complex.

RudolfAtRTC:
It looks like the servo is drawing too much current! Then the supply voltage of the UNO breaks down.
What kind of servo did you connect? Larger types require a separate power supply.
For a beginner, however, it makes more sense to experiment with LEDs and buttons. A servo is a bit more complex.

Thank you! I think you're right, I'm using an off brand 9g servo, and after a quick google search i found out that the real brand this is copied off of is Tower Pro so maybe the quality isn't as good

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