I am having a problem connecting to nu Arduino mega 2560 . When I plug in the USB in the pc I het An error. This is in my new laptop with Windows 11.
It is NOT the cable I have tester is with An Uno.
The board is still running the sketch I installed on IT before. The board is detected on 2 other pc's without problemen. These pc's are win10 ( and not practical to use in this project )
My other Arduino's, a nano an Uno and a Robodyn Mega2560 with onboard ESP32 are alle detected by the win11 pc.
So this is a mystery.
Best I can Imagine is that the Arduino Mega2560 USB Driver for win11 is buggy.
Does anyone have a suggestion hoe to het this Mega connecties to nu win11 laptop?
On the systems where the board works, check what the TTL-to-USB chip is. Windows device manager will tell you as well as lsusb and/or dmesg (not sure which one) under Linux. After that you can start looking for the correct driver.
There are no ports in the device manager. That is the problem.
On the win 10 PC the port does exist and no new entry for the usb port in the device manager.
The only difference I see with the USB ports is that on the eXtrensible Host Controller on the win 10 is from AMD version 1.0 (Microsoft) and on the win 11 Intel version 1.10 (Microsoft)
I don't know how all this gets met to the TTL-toUSB chip.
Also note worthy On botch machines I have the eXtensible Host Controller, the USB Composite Device and the USB Root Hub. But on the win 11 pc I have all off them twice ( so 6 entries in Universal Serial Bus controllers )
Check the Win10 PC; what do you see under Ports?
In the above image, the first one is an official Uno (from the old Arduino.org) and the last one is a clone with CH340. The entry should disappear if you disconnect the board.
Your Mega will either identify itself as a Mega instead of an Uno or as something else (e.g. CH340 but there are other options). Which one of the two is it?
You can take it a step further, right click the one that you found and select Properties, select the Details tab and select Hardware Ids as shown below. You can use the VID (vendor ID) and the PID (product ID) to try to find the correct driver for your Win11 PC
@sterretje Very strange. I connect my Robodyn Arduino Mega ( clearly a clone ) to the win 11 pc I have no problem I do get a port and in the device manager it looks like this:
The only diverence is the revision. 0254 vs 0264 so I would need to google for the revision as well.
And hope that when I install it it will not mess things up for the Arduino's that are working now.
I was typing a message asking for that. So thanks.
Both are CH340, the difference is indeed the revision. As far as I understand it, the revison is 'part of' the device (and not the driver). Can you repeat for the Nano? My Nano has the CH340G (and revision is 0263).
I'm not sure where to go from here.
Did you install the driver yourself? Or did it come with Win11? The manufacturer's driver can be downloaded from CH341SER.ZIP - NanjingQinhengMicroelectronics; it doesn't seem to have changed since 2019.
Can you try to identify the TTL-to-USB chip on those boards. It will be a bit tricky to read; I use a phone with macro mode and you might have to vary the angle a bit to get a readible text on the chip. It would be interesting to see the exact chip number (the X in CH340X).
I would possibly look in Windows EventViewer to see if there is any additional information; but that will probably be a long exercise and might not reveal anything.