Out of the box the Arduino Leonardo or the Arduino Micro (and some other) can appear to the host computer as a generic keyboard and mouse but the arduino uno is not one of those and does not act as a USB joystick...
J-M-L:
Out of the box the Arduino Leonardo or the Arduino Micro (and some other) can appear to the host computer as a generic keyboard and mouse but the arduino uno is not one of those and does not act as a USB joystick...
//Logitech Driving Force Shifter USB Adapter
//By Armandoiglesias 2018
//Based on Jason Duncan functionreturnfunction Project
//Video tutorial DIY LOGITECH USB SHIFTER ADAPTER DRIVING FORCE - YouTube
//Use Arduino Leonardo
//Install Joystick Library
//Attribution-NonCommercial-NoDerivatives 4.0 International
This library can be used with Arduino IDE 1.6.6 (or above) to add one or more joysticks (or gamepads) to the list of HID devices an Arduino Leonardo or Arduino Micro (or any Arduino clone that is based on the ATmega32u4) can support. This library will also work with the Arduino Due, thanks to @Palakis. A complete list of supported boards can be found in the Wiki. This will not work with Arduino IDE 1.6.5 (or below) or with non-32u4 based Arduino devices (e.g. Arduino UNO, Arduino MEGA, etc.).
It specifically says it can't be used with an Uno. The library can only use used with ATmega32U4-based boards and the Arduino Due.
jannikbaesken24:
what about the arduino digispark does the work
No. It won't work. The Digispark uses the ATtiny85 microcontroller. That microcontroller doesn't have the native USB functionality required by the library.
pert:
From the link you posted:It specifically says it can't be used with an Uno. The library can only use used with ATmega32U4-based boards and the Arduino Due.
No. It won't work. The Digispark uses the ATtiny85 microcontroller. That microcontroller doesn't have the native USB functionality required by the library.
pert:
From the link you posted:It specifically says it can't be used with an Uno. The library can only use used with ATmega32U4-based boards and the Arduino Due.
No. It won't work. The Digispark uses the ATtiny85 microcontroller. That microcontroller doesn't have the native USB functionality required by the library.
Do you know another library that is compatible with the digispark
I have never used a digispark and don't know much about how their software USB implementation works. If you do a google search for digispark joystick you will get some helpful information.
It is also possible to use the ATmega16U2 on official or faithful clone Uno boards (many of the clones use a CH340 instead of the ATmega16U2, and that won't work) to emulate an HID joystick. You can find an example here:
However, that is a very advanced project and you may end up getting your Uno into a state where you can no longer use it if you do something wrong.