Giter VIP home page Giter VIP logo

Comments (3)

MHeironimus avatar MHeironimus commented on May 20, 2024

@pizman asked

Is there a limit how many buttons can be ON same time ?

No. You can have them all pressed simultaneously if you like.

Is Every Arduino used as a single HID Gamecontroller or is it possible to combine for example 3 Micros so i set 20 Buttons on Controller 1 Hat switches on Controller 2 Axis on Controller 3 ... BUT All this is show as ONE Gamecontroller in Windows ??

I suppose you could if you wired them together. You would only want one Arduino connecting to the PC. The others would be slaves of the "master" Arduino. You could connect them together via their serial ports/pin.

However, I think your real question is how do I get over 20 buttons connected when I only have 20 (or fewer) pins. To do that you will want to use a button or key matrix (see http://pcbheaven.com/wikipages/How_Key_Matrices_Works/ or other Internet articles for more details); an encoder chip (e.g. http://www.ti.com/lit/ds/symlink/sn74ls348.pdf); or a shift register (https://playground.arduino.cc/Code/ShiftRegSN74HC165N).

Is it correct i can define a "ID Number" for the HID Device so i can set for example 3 Arduinos to the
SAME HID Gamecontroller ??

The ID number allows you to have the Arduino appear as multiple joysticks, not to allow multiple Arduinos to appear as a single joystick.

Hope this answers your questions,
Matt

from arduinojoysticklibrary.

pizman avatar pizman commented on May 20, 2024

Dear Matt.
At Firt THANK YOU for your incredible support.... A Reply to a question within some hours is wunderfull !

I not be advanced enough to use shift registers or to implement Matrix in the script myself ( i just beginning with the Arduino scripting) .....

So my last question is simple....

Do you see a way in the future to support YOUR System for a Arduino Board with more Pins ( Like the MEGA) ?
There we got already 52 IO Pins (Enogh for 32 Buttons) and a lot of Analog Pins to set the Axis...... So a Using of Registers and Matrix is not needed.

I Read in the TXT, that the Mega Not be able to work with your Code..... And i fully understand for your personal use the low number of Pins are Ok ( or you work with Matrix /Shift Registers)

But finaly for the "dummy" User like me.... Is it possible to make a MEGA to a Full 32 Button Game Controller with axis ?? Can you help us there ??

( I know itΒ΄s unfriendly to ask you for giving me a recommendation to a other software..... But maby you can help me )

Thanks again for your work, Sir !

from arduinojoysticklibrary.

MHeironimus avatar MHeironimus commented on May 20, 2024

@pizman The key to this library's flexibility and ease of use is the fact that the USB communications are done via the main ATmega32u4 microcontroller, rather than some other piece of hardware (e.g. the FTDI FT232RL for the Arduino Mega you reference). This allows the library to make the USB device look like anything you want, rather than being "hard-coded" as a serial port (I know this is not technically true, but...).

I do not currently support this (as I have not had a chance to try it out), but a fellow contributor, @sreksten, has written up some instructions on how to use the Mega and the older version of the library. These instructions can be found at Issue #37 .

Hope these comments help,
Matt

from arduinojoysticklibrary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.