Unable to find proper mini usb cable

Hi,

I have bought an Arduino and a USB cable. When I plug it in, the green LED on the board lights up, but I am not able to detect the device as a USB drive with my laptop or my Raspberry Pi 4 B+.

Today I bought another cable and told the clerk that I need to be able to transfer data. This cable, however, doesn't even light up the green LED.

Its quite frustrating. I have the thing here since a week and cannot use it. I have bought twice the "recommended" cable and still no luck.

An arduino does not report as a USB device. It reports as a COM device when connected to your PC

It could be you are not plugging the cable in far enough. I've seen this multiple times.

Most Arduino's do not show up as a USB drive, they normally show as a COM port or a Serial USB 2.0 device.

I am fairly sure the cable is far enough in. The device is not showing in /dev/ttyACM0 with either Cable, that is what I meant.

I don't know how I check that place on Windows though. Ultimately I want to have it to the Pi connect anyways.

In windows, you can check in Device Manager what is happening. The equivalents on the Pi are lsusb and dmesg.

So one thing to note about the cables.

The working one has 2.4A recommended and the new one which doesn't light up the Arduino has 2A.

When the old one is plugged in dmesg is quite but when I plug the new cable in i see this:

90439.024077] usb usb2-port3: over-current condition
[90439.024326] usb usb2-port4: over-current change #1978
[90439.124776] usb 1-1-port4: over-current change #1979
[90439.274302] usb usb2-port1: over-current change #1984
[90439.364642] usb 1-1-port1: over-current change #1982
[90439.514338] usb usb2-port2: over-current change #1982
[90439.604648] usb 1-1-port2: over-current change #1978
[90439.764357] usb usb2-port3: over-current change #1979
[90439.844638] usb 1-1-port3: over-current change #1981
[90440.014301] usb usb2-port4: over-current change #1979
[90440.084666] usb 1-1-port4: over-current change #1980
---

The power supply on the Pi is 5V 3A

I guess that that indicates where your problem is. Did you remove the Arduino from its conductive foam and out of the ESD bag? Is your Arduino laying on a conducting surface (e.g. metal table)?

Where did you buy it?

I bought it in a relatively serious eletronics shop. I also bought my Pi there. They have alot of customers and seem legit. https://diotronic.com/

The board came with male pins soldered in and I have put it in a breadboard which is attached to my wall.

Remove it from the breadboard and test again. If it's still failing, take it back to the shop; if it works, the breadboard is faulty (I hope that you did not use nails to mount it against the wall :wink:

My guess is that it's a Nano, it's the only Arduino that I know that comes with a mini USB-B connector; there are other manufacturers that use a mini USB-B on other boards (e.g. the SparkFun RedBoard is an Uno clone with a mini USB-B).

No the there was glue tape on the back of the board.

I took the Arduino Nano out of the breadboard now, and it shows the same message with that new cable.

I will bring it back tomorrow and see what they see. It will be a bit tricky because I don't really speak Spanish.

Thank you for your advice. I will update you tomorrow if they replaced my chip or not.

So I went to the store and the guy plugged the Arduino in his Windows computer and the device would show on the com port. He said it is ok but still replaced it. So I have a new one here now.

The situation has not changed. This time I did not put it in the breadboard first. I just took it out of the foam and on a sheet of paper.

I have plugged in my pohne into the same usb port of the Pi once, just to make sure something can in fact draw current from there and transfer data.

[56363.766300] usb 1-1.3: new high-speed USB device number 5 using xhci_hcd
[56363.898995] usb 1-1.3: New USB device found, idVendor=2717, idProduct=ff40, bcdDevice= 4.14
[56363.899018] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[56363.899037] usb 1-1.3: Product: POCO X3 NFC
[56363.899054] usb 1-1.3: Manufacturer: Xiaomi
[56363.899071] usb 1-1.3: SerialNumber: 57b7af09
[56368.182664] usb 1-1.3: USB disconnect, device number 5

With the old cable still silence and with the new cable still

[56587.350819] usb usb2-port1: over-current change #197
[56587.444168] usb 1-1-port1: over-current change #197
[56587.581686] usb usb2-port1: over-current condition
[56587.582000] usb usb2-port2: over-current change #197
[56587.684592] usb 1-1-port2: over-current change #195
[56587.821842] usb usb2-port2: over-current condition
[56587.822184] usb usb2-port3: over-current change #196
[56587.934462] usb 1-1-port3: over-current change #195
...

Edit:

I found something iteresting in the boot up logs. I have reimaged the sd card and run full-upgrade.

The below logs show that something called brcmf is failing to load the firmware for a chip called
BCM4345/6.

Afterwards this things is enabling power save which could explain why the something is drawing to much current.

[    4.859174] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    4.860867] usbcore: registered new interface driver brcmfmac
[    4.886273] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2
[    5.122111] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip `BCM4345/6`
[    5.132321] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Jan  4 2021 19:56:29 version 7.45.229 (617f1f5 CY) FWID 01-2dbd9d2e
[    7.423141] random: crng init done
[    7.423167] random: 7 urandom warning(s) missed due to ratelimiting
[    7.476104] uart-pl011 fe201000.serial: no DMA platform data
[    7.566551] 8021q: 802.1Q VLAN Support v1.8
[    7.733844] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[    7.807371] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled