Problem with connecting Arduino UNO R3

I recently bought an Arduino UNO R3 with the ATmega16u2 chip. I connected it to my pc and saw in the device manager that it was under unknown devices. I installed the right driver for the chip and now it is located under libsub-win32 devices. The Arduino IDE won't allow me to select "port". I also changed the usb cable so that won't be an issue. Hope that someone can help me out.

Please, post the picture of your Arduino to asses if it contains 32-pin SMD MCU or 28-pin DIL MCU.

What operating system you are using in your PC - WIN?
IDE version -- 1.8.19 or 2.1.1?

Perhaps the bootloader is missing? See "Tools: Burn Booloader" in the IDE.


I am using Windows 11 (64bit) and
Arduino IDE 2.2.1

Yes. I get "Missing programmer". What should I do now?

I have no idea, hope for answer from a guru :frowning:
Or search the forum for "programmer".

Now i get the message Failed chip erase: no upload port provided

Follow these steps and put Tick Marks if they are correct/done:
1. Connect UNO with the PC.

2. Check that power LED of UNO ON.

3. Perfrom:
Start ---> Device Manager ---> (click) Ports (COM & LPT)

4. Click on Ports to expand.

5. Check if you see the following:
Arduino Uno (COMXX)

6. Record the value of XX of Step-5.

7. Open IDE.

8. Perform the following:

Tool ---> Board ---> Arduino AVR Boards ---> (selec) Arduino UNO

9. Perform the following:
Tool ---> Port ---> (select) COMXX (Arduino Uno) (XX is a 1-digit or 2-digit number)

10. Check that at the right-bootom of the IDE, the followin g message ha appeared:
Arduino Uno on COMXX

11. Perform:
File ---> (click) New Sketch

12. Check that the IDE contains the following two blanl functions:

void setup() {

}

void loop() {

}

13. Press Ctrl A and then press Delete key to remove the functions from the IDE.

14. Copy and paste the following sketch on the blank IDE. This sketch (after uploading) will blink the onboard LED (L) of UNO at 1-sec interval.

void setup()
{
     pinMode(13, OUTPUT);
}

void loop()
{
    digitalWrite(13, HIGH);
    delay(1000);
    digitalWrite(13, LOW);
    delay(1000);
}

15. Perform the following task:
Sketch ---> (click) Verify/Compile

16. Perfprm the following task:
Sketch ---> (click) Uplaod

17. Check that onboard LED (L) of UNO Board blinks at 1-sec interval.

If you fail in the above process, try with IDE 1.8.19.

image

I only got till point 5. The Arduino is not there

image
I only have found the driver that i installed

With the 16U2, you should see the board in device manager as "Arduino Uno". As that is not happening, the 16U2 does not behave as it should. Some options

  1. Ship the board back to the seller as it's not as advertised (or maybe broken).
  2. Burn the firmware using atmel flip or with a programmer; for the latter, you need to use the 6 pin header in the right top of your image.
    If not mistaken, the file to load will be C:\Users\yourUsername\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\firmwares\atmegaxxu2\Arduino-COMBINED-dfu-usbserial-atmega16u2-Uno-Rev3.hex.

PS
I have never had to update the firmware myself so can't help further.

2 Likes

You must reach at Step-5 and the rest.

The driver chip in your board is not CH340/CH341. Why have you installed that? The UNO that comes with 16U2 driver chip should automatically be equipped with correct soft device driver when connected with PC.

It is my first time using the Arduino and I thought I had a clone board. Now I
have the right driver installed but the Arduino still won't show under Ports (COM & LPT)

The Uno should NOT show up as a libusb-win32 device, it should show up as a COM port.

I'm not sure of what would cause the behavior you're seeing - I don't think it's ever come up before.
Are you sure you installed the correct driver?

I hope i installed the right driver. I downloaded it from here ATmega16U2 Drivers Download for Windows 10, 8.1, 7, Vista, XP

The driver comes with the IDE. Did you install the IDE?

On my Windows system, C:\Users\myUsername\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\drivers

I cant find AppData under my username I dont know why

Non-English Windows have alternative entries for that directory, e.g. Anwendungsdaten in German. Try enabling "show system folders" in the explorer.

Now i found the folder thank you. However the avr folder is empty

That is unexpected, but might happen if you uninstalled the "Arduino AVR Boards" platform for some reason. Please do this:

  1. Select Tools > Board > Boards Manager from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
  2. Scroll down through the list of boards platforms until you see the "Arduino AVR Boards" entry.
  3. Click the "INSTALL" button at the bottom of the entry.
  4. (possibly depending on your Windows security settings), you will eventually see a "User Account Control" dialog about dpinst-amd64.exe asking whether you "want to allow this app from an unknown publisher to make changes to your device". Click the "Yes" button.
    This is Arduino IDE automatically installing the driver for the Uno board.
  5. Wait for the installation to finish.

As I noted above, as long as you click the "Yes" button in that "User Account Control" dialog, the driver is installed automatically. So it should not ever be necessary to hunt down the drivers on your hard drive and install them manually.

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