Macro for pc using arduino uno r3 smd not working

ive been wanting a switchboard for controlling my microphone in Discord. i already have the switchboard shell and switches. what i need help with is the wiring.

most of the tutorials ive tried to follow put their UNO to DFU mode, something which i cannot seem to enter or activate. The tutorials show that i need to short ground to ground or ground to reset. Whenever ive tried to do this the pc reads the Uno as an unknown device.

Im aware that the UNO does not support USB keyboard inputs straight out of the box, therefore ive downloaded Atmel Flip and Keyboard firmware. Because my UNO does not go into DFU mode the program doesnt register it which means i cant transfer the firmware to the UNO.

I've seen that the Pro Micro is more suitible for this job but there seems to be no place who sell them in my country (Sweden). i could order from Ebay but i want to see if i can do a macros with the UNO before ordering an Pro Micro from Ebay.

thank you for your help.

ikguzzi:
The tutorials show that i need to short ground to ground or ground to reset. Whenever ive tried to do this the pc reads the Uno as an unknown device.

Try this:

  • Open Windows Device Manager
  • Double click on the unknown device.
  • Click the "Update Driver..." button.
  • Click "Search automatically for updated driver software"

Does that manage to successfully install the driver for the ATmega16U2?

ikguzzi:
I've seen that the Pro Micro is more suitible for this job but there seems to be no place who sell them in my country (Sweden).

Other good options are the Arduino Micro, the Arduino MKR Zero, and the Arduino Leonardo.

It says i dont have the ATmega16u2 Drivers installed and that it tried to download it online, but with an error accuring in the installation process. i was thinking of maybe installing the drivers manually.

I was able to reproduce the problem using a fresh Windows installation in a virtual machine. Here's the solution I found:

  • Open Windows Device Manager
  • Double click on the unknown device.
  • Click the "Update Driver..." button.
  • Click the "Browse my computer for driver software" button.
  • Click the "Browse..." button.
  • Select the Atmel Flip installation folder (probably C:\Program Files (x86)\Atmel\Flip 3.4.7).
  • Click the "OK" button.
  • Click the "Next" button. The driver should be successfully installed and your Uno should now show up in Device Manager as "Atmel USB Devices > ATmega16U2".

ok i got it to work now. The PC reads the board as a keyboard. Now i did the stupid thing and forgot to upload the code to the board before installing the keyboard firmware. is there a way to wipe the firmware of the board?

Yes. When you say "firmware of the board", do you mean the firmware on the ATmega16U2, or the firmware on the ATmega328P?

im speaking of the ATmega16u2 firmware. The pc reads the Uno as ATmega16u2 when i enter DFU mode and as a keyboard when not in DFU.

this is the tutorial i am trying to follow.

You need to use the same process to re-install the original Uno's firmware.

Download the firmware for the Uno from ArduinoCore-avr/Arduino-usbserial-atmega16u2-Uno-Rev3.hex at master · arduino/ArduinoCore-avr · GitHub by right-clicking on Raw button and Save As.

.

My goodness, what a hassle :wink: Consider buying a Leonardo if you need the same form factor or a Micro or (Sparkfun) Pro Micro.