|
|
Joined: Jan 2012
Posts: 9
Junior Member
|
|
Junior Member
Joined: Jan 2012
Posts: 9 |
hi guys can you tell me please on which arduiono board can i connect the most buttons i have already a Arduino Mega 2560 r3 will mmjoy work with this?
|
|
|
|
|
Joined: Oct 2015
Posts: 4
Junior Member
|
|
Junior Member
Joined: Oct 2015
Posts: 4 |
Hi, Kallisto. Here is the list of compatible boards: mmjoy2 wiki on github Unfortunately, no Mega among them. On the bright side, Chinese clones of arduino micro/pro-mirco/Leonardo are cheap and easy to get.
Last edited by sahem; 12/09/15 10:20 PM.
|
|
|
|
|
Joined: Jan 2012
Posts: 9
Junior Member
|
|
Junior Member
Joined: Jan 2012
Posts: 9 |
Hi, Kallisto. Here is the list of compatible boards: mmjoy2 wiki on github thanks if i understand this correct MMJoy supports up to 8 axis and up to 96 buttons (64 buttons organized as 8x8 matrix and 4 hat switches). It can be configured to suit individual needs to contain only necessary controls (only buttons; or only axis)
then it should be possible to make a matrix with 96 buttons and 8 axis it seems only the teensy ++ 2 can realise 96 and 8axis is that righht?
|
|
|
|
|
Joined: Nov 2001
Posts: 3,960
Senior Member
|
|
Senior Member
Joined: Nov 2001
Posts: 3,960 |
Yes, the maximum of buttons depends o Arduino board pinnout, e.g. PRO Micro have limited pins available, what don't allow use 8 axis and 96 buttons. What help little is if you dont want 8 axis can use this pins for buttons.
Last edited by Sokol1; 12/10/15 03:28 PM.
|
|
|
|
|
Joined: Jan 2012
Posts: 9
Junior Member
|
|
Junior Member
Joined: Jan 2012
Posts: 9 |
what don't allow use 8 axis and 96 buttons. But if i use the Teensy ++ 2.0 then i can use 96 buttons and 8 axis, right? i mean you have posted already a picture from a teensy++2.0 with a 8*12 matrix and 8 axis at the same time
|
|
|
|
|
Joined: Nov 2001
Posts: 3,960
Senior Member
|
|
Senior Member
Joined: Nov 2001
Posts: 3,960 |
Well, I am not sure about number of buttons supported be firmware actually - this may was changed over time, to add other features. Better wait Mega_Mozg confirm. 
|
|
|
|
|
Joined: Jan 2014
Posts: 274
Member
|
|
Member
Joined: Jan 2014
Posts: 274 |
firmware have a 96 buttons + 10 axis possible to use for joystick: 64 buttons + 2 hats(8 buttons) + 8 axis possible to use for mouse emulation: 3 buttons + 2 axis possible to use for keyboard emulation: 12 buttons (or 15 without "mouse")
if you want to take more and use less pins of you MCU: for axis - MCP3208, 8 channel 12 bit ADC (minus 4 pins, plus 8 analog axis sources) for buttons - shift register 74HC165 or 4021B (minus 3 pins, plus UNLIMIT button sources)
|
|
|
|
|
Joined: Jan 2014
Posts: 274
Member
|
|
Member
Joined: Jan 2014
Posts: 274 |
Arduino Mega 2560 r3 will mmjoy work with this? not work. this MCU do not have USB inside.
|
|
|
|
|
Joined: Jan 2012
Posts: 9
Junior Member
|
|
Junior Member
Joined: Jan 2012
Posts: 9 |
for my switch panel i will use the Arduino micro (not promicro). so that i can use all 96buttons and all potentially possible axis so i think i have to use two "mcp3208" so i have enough pins to make a matrix with 96 buttons without using shift register 74HC165 or 4021B to realise 96 buttons. i need the axis only for mixture, water radiator, oil radiator, light dimming and so on therefore i think for this purpose it is not so important that the mcp3208 to get a stable 5v via an external 12v supply for getting the highest sampling rate. please correct if i am wrong btw: stunning piece of software  sry for my bad englsih
Last edited by Kallisto; 12/14/15 07:21 PM.
|
|
|
|
|
Joined: Jan 2014
Posts: 274
Member
|
|
Member
Joined: Jan 2014
Posts: 274 |
Kallistomcp3208: 1) with power supply higher 5.5v it will be dead http://ww1.microchip.com/downloads/en/DeviceDoc/21298c.pdf2) you are lost a "CS line" - individual to each mcp3208 matrix: 1) limits matrix rows = 10 and columns = 10
|
|
|
|
|
Joined: Jan 2012
Posts: 9
Junior Member
|
|
Junior Member
Joined: Jan 2012
Posts: 9 |
is it possible to connect mcp3208 for more axis and 74HC165 for more buttons both on the arduino
would i realise 96 buttons with 74HC165 then i need 4 of them, because each 74HC165 offers 4 Pins for axis. therefore i need 5 74HC165 to get 20 Pins to make a matrix with 96 buttons (8 Lines x12 Columns) Are my thoughts correct?
Have you or somebody a circuit layout with multiple 74HC165, i have not really an idea how to build a matrix with 74HC165.
Last edited by Kallisto; 12/14/15 06:00 AM.
|
|
|
|
|
Joined: Oct 2015
Posts: 4
Junior Member
|
|
Junior Member
Joined: Oct 2015
Posts: 4 |
All hail mega_mozg!:) No, seriously, thanks to the engineering guy behind all our creations. I made my Gametrix ECS-based custom build with mmjoy inside Euphoria, if you still read this forum, have my "thank you" as well - your work inspired me to do my own. The build process is described in this imgur album: http://imgur.com/gallery/5BcCI
|
|
|
|
|
Joined: Nov 2001
Posts: 3,960
Senior Member
|
|
Senior Member
Joined: Nov 2001
Posts: 3,960 |
Wow! Nice done, great look, and very clear "how to". 
|
|
|
|
|
Joined: Jul 2009
Posts: 11,932 Likes: 141
Administrator Veteran
|
|
Administrator Veteran
Joined: Jul 2009
Posts: 11,932 Likes: 141 |
Very nicely done, sahem! 
|
|
|
|
|
Joined: Aug 2015
Posts: 68
Junior Member
|
|
Junior Member
Joined: Aug 2015
Posts: 68 |
|
|
|
|
|
Joined: Mar 2015
Posts: 51
Junior Member
|
|
Junior Member
Joined: Mar 2015
Posts: 51 |
uff very nice and professional, my hotas seem made by a child ha ha ha !!!!
|
|
|
|
|
Joined: Oct 2015
Posts: 108
The Flying Penguin Member
|
|
The Flying Penguin Member
Joined: Oct 2015
Posts: 108 |
Hey, i have a question. I'm trying to use an arduino pro micro i purchased from ebay (china). I'm trying to follow the instructions, but i never see anything in COM ports. When i plug in the arduino, it shows up in device manager as ATmega32U4 (with unknown device symbol) and a solid green light shows on the arduino. i can install the driver by pointing windows to the driver folder from MMJoy download, then it shows up like this: But when i connect the gnd and rst pins together to make it enter bootloader mode, nothing appears in com ports (also there is nothing there to start with.) the device does disappear from device manager when i do this, but then when i release them it comes back but only under libusb-win32 devices, nothing under COM ports. Does anyone know what i might be doing wrong? edit: it's possible these pro micros were not flashed with any bootloader beyond the stock DFU bootloader? (based on the fact that in linux it shows up as atmega32u4 DFU bootloader when i run lsusb) edit2: got it, had to use dfu-programmer in ubuntu to load the .hex, now it's detected as an input device so i think we're all set.
Last edited by AceofPengwins; 12/17/15 07:11 PM.
Heir to the honors associated with the Order Sphenisciformes
|
|
|
|
|
Joined: Jan 2012
Posts: 9
Junior Member
|
|
Junior Member
Joined: Jan 2012
Posts: 9 |
can anyone please take a look on these pictures 12x CD 4021B for 96 buttons 2x MCP 3208 for 10 axis what value should the resistors have? in case of the CD4021B arduino.cc seem using resistors with 10k in their tutorial
Last edited by Kallisto; 12/19/15 09:16 AM.
|
|
|
|
|
Joined: Aug 2015
Posts: 68
Junior Member
|
|
Junior Member
Joined: Aug 2015
Posts: 68 |
Try with resistor networks, easier to solder and more compact. They are used in TM shift registers.
|
|
|
|
|
|
|
|
|
|
|
HOA's
by Terl9999 - 09/18/26 04:12 AM
|
Football
by Terl9999 - 09/18/26 02:42 AM
|
Flags
by Terl9999 - 09/15/26 10:03 PM
|
|
|
|
|
|
|
|
|
|