USB type B cable difference?

I'm calibrating a single SG90 servo using an UNO board powered by USB cable.
But I've found that some cables aren't able to power the servo (board reboots when servo tried to move), while some other cables will work just fine.

The cables works completely fine to upload sketches, and works fine when used on my printer.

Visually the cables looks the same, the markings on the cables are:
doesn't work: 24AWG/1PR AND 24AWG/2C
works: 28AWG/1P AND 28AWG/2C
works: USB 2.0 high speed (cable very thin compared to the other two)

I'm confused as to why there's a difference?
and how do I differentiate the difference when I need to buy a new cable for the UNO?

and yes i know that I'm not supposed to run a servo motor off the board directly, i will buy a power supply, just haven't gotten it yet.

So why do you think the problem is cable?

On the board I have a sketch that rotates the servo to 0 then 90 and waits 10 seconds.
on the two working cables, they rotate just fine, will rotate back and forth multiple times.
on the other cable, it won't move, just keep rebooting.

Plugged into the same port on the same PC, only difference is the cable, so I came to the conclusion that it's the cable,

also, the cable lengths are pretty much the same, the not working cable is actually 1 cm shorter.

The worry when powering a servo from the Arduino 5V pin usually relates to the inability of the Uno to supply the required current. However, if the Uno is powered by USB rather than the barrel jack or RAW pin then is this really such a worry as the onboard voltage regulator is not involved ?

For sure there are other considerations such as can the USB connection supply enough current for the servo but the Uno has a PTC thermistor and MOSFET in series with it with the 5V supply and will shut down if too much current is drawn. This will not damage the Uno

What @testbugtai describes could be the USB power source and/or cable not being able to supply enough current, particularly through a long lead with thin wires, or the PTC/thermistor cutting off the supply if the current taken is too high but frankly, when I have done casual experiments with a single 9 gram servo I have always powered it from the 5V pin and have experienced no problems

Having said all that, the best thing to do is, of course, to power the servo from an external supply. 4 AA batteries makes a good power source and battery holders are easy to come by

Maybe, maybe not. There are many unknowns in OP post, for example missing schematics, missing code, we don’t even know if the UNO they are using is cheap CN knock off. The original UNO has a fuse that servo can blow up. Also USB source, what is it, what it’s specs? All we know it is a bad idea through OPs own admission yet we are here.

schematics and code is as below

board is a genuine UNO board bought from the Arduino store a few years back.

Lost the original cable, wanting to buy a new cable but noticed that there's discrepancies between different cables that looks visually similar.

On the not working cable, it's slightly shorter and marked 24AWG, isn't that thicker than the working 28AWG?

Am I to assume the marking is false?
or 24AWG cable provides enough current so servers overdraw, whereas thinner cable provide less current so no over draw? (this seems sounds weird?)

basically I'm wondering what I should look out for when I buy a new cable?
would like the cable to work when i need a quick test.

Just use an external power supply and stop messing around with the cables

Maybe you just got cheap cable that has a lot of resistance so when servo pulls some current it browns out.

that seems to be the case, measured with a multimeter, the non-working cable had double the resistance

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