I'm currently developing a project that consists in creating a racing gaming kit (steering wheel and pedals) with an arduino Mega 2560. I did downloaded the UnoJoy-Master files and I got it working on a arduino Uno. Altought, as I need more input entrances I changed to the Arduino Mega.
The normal "turning into joystick" procedure works fine for the Uno, however, when I try to the same in Mega it does not work. I upload the code given in the file, I short the pins but then when I run the .bat file it says that the "Could not open USB device".
How can I correct this problem?
I'm kinda new to Arduino. I got the basics os hardware and software but im not pretty sure what do you mean with troubleshooting. Troubleshooting to what? The code used, the hardware...? I tested it in 2 diferent arduino Megas 2560 and non worked
If you have authentic Uno and Mega with ATMega16U2 USB chips, then UnoJoy should work. If you have clone boards without the 16U2 (for example, CH340 is a common substitute) then UnoJoy does not work.
We need to know what Arduino board (or other brand, such as ESP32) you are using
However, I think that anyone following the instructions would have stopped at the part where they were told to connect to the 16U2 ICSP, and found that there wasn't one.
When I started my project I had a problem in turning the Arduino Uno into DFU mode. This would give me the same error as with the Arduino Mega. Is it possible tham I'm not doing the correct procedure to make it to DFU mode?
Currently I'm doing so:
In arduino IDE I send the code to the Arduino;
Short the pins near the cable entrance;
And run the .bat (MegaJoy - Attack!.bat) - here the error occurs