Arduino Forum

Using Arduino => Microcontrollers => Topic started by: KarlaSvalina on Jul 06, 2020, 04:27 pm

Title: Arduino mega as joystick for pc
Post by: KarlaSvalina on Jul 06, 2020, 04:27 pm
Hi. I want to make big arduino gamepad for pc with a lot of joysticks and buttons. I made mini controller with arduino leonardo and joystick library and it worked and now I want to make bigger controller with arduino mega but I don't know how to make arduino mega as gamepad in controlpanel on windows 10. I bought arduino mega and mega mini. Please help me because I am new in arduino. Thank you. :)  :)
Title: Re: Arduino mega as joystick for pc
Post by: m_k_akash on Jul 06, 2020, 07:34 pm
thanks to Alan Chatham for creating this wonderful Unojoy (https://github.com/AlanChatham/UnoJoy) library which could turn arduino into a potentially good joypad. Here you will find the support for the arduino mega also


thanks, Akash
Title: Re: Arduino mega as joystick for pc
Post by: KarlaSvalina on Jul 06, 2020, 10:50 pm
Thank you so much. :)  :)
Title: Re: Arduino mega as joystick for pc
Post by: m_k_akash on Jul 07, 2020, 07:29 am
your welcome and all the best for your project
Title: Re: Arduino mega as joystick for pc
Post by: DrAzzy on Jul 07, 2020, 08:00 am
Do note that that only works on offical mega2560 and the faithful clones with a 16u2 as serial adapter. The ones with a single-function serial adapter chip (like the countless clones with CH340G serial adapters - though clones with 16u2 are available) - those can't be reprogrammed.
Title: Re: Arduino mega as joystick for pc
Post by: sterretje on Jul 07, 2020, 09:07 am
You can always connect your Leonardo to the Mega via eg. a serial port and let the Leonardo do the hard work ;)

The Mega has 3 additional serial ports (Serial1, Serial2, Serial3) and the Leonardo hase one (additional) serial port (Serial1).

Using a Due instead of a Mega could also be (rather have been) an option (if I'm not mistaken).