SimHQ
Previous Thread
Next Thread
Print Thread
Rating: 5
Hop To
Page 29 of 112 1 2 … 27 28 29 30 31 … 111 112
Joined: Jan 2012
Posts: 9
K
Junior Member
Junior Member
K Offline
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?

Inline advert (2nd and 3rd post)

Joined: Oct 2015
Posts: 4
S
Junior Member
Junior Member
S Offline
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
K
Junior Member
Junior Member
K Offline
Joined: Jan 2012
Posts: 9
Quote:
Hi, Kallisto. Here is the list of compatible boards: mmjoy2 wiki on github

thanks

if i understand this correct
Quote:
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
S
Senior Member
Senior Member
S Offline
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
K
Junior Member
Junior Member
K Offline
Joined: Jan 2012
Posts: 9
Quote:
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
S
Senior Member
Senior Member
S Offline
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. smile

Joined: Jan 2014
Posts: 274
M
Member
Member
M Offline
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
M
Member
Member
M Offline
Joined: Jan 2014
Posts: 274
Originally Posted By: Kallisto
Arduino Mega 2560 r3 will mmjoy work with this?

not work. this MCU do not have USB inside.

Joined: Jan 2012
Posts: 9
K
Junior Member
Junior Member
K Offline
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 wink
sry for my bad englsih

Last edited by Kallisto; 12/14/15 07:21 PM.
Joined: Jan 2014
Posts: 274
M
Member
Member
M Offline
Joined: Jan 2014
Posts: 274
Kallisto
mcp3208:
1) with power supply higher 5.5v it will be dead http://ww1.microchip.com/downloads/en/DeviceDoc/21298c.pdf
2) you are lost a "CS line" - individual to each mcp3208
matrix:
1) limits matrix rows = 10 and columns = 10

Joined: Jan 2012
Posts: 9
K
Junior Member
Junior Member
K Offline
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: Jan 2014
Posts: 274
M
Member
Member
M Offline
Joined: Jan 2014
Posts: 274
[quote=Kallisto
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?
[/quote]
better stop all of this, and search something "ready to use"...
you have an error in the understanding of the axes and buttons. matrix of buttons and shift registers.
http://blog.komar.be/how-to-make-a-keyboard-the-matrix/
http://pcbheaven.com/wikipages/How_Key_Matrices_Works/
https://www.arduino.cc/en/Tutorial/ShiftIn
https://learn.sparkfun.com/tutorials/shift-registers

Joined: Oct 2015
Posts: 4
S
Junior Member
Junior Member
S Offline
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
S
Senior Member
Senior Member
S Offline
Joined: Nov 2001
Posts: 3,960
Wow! Nice done, great look, and very clear "how to". thumbsup

Joined: Jul 2009
Posts: 11,932
Likes: 141
C
Administrator
Veteran
Administrator
Veteran
C Offline
Joined: Jul 2009
Posts: 11,932
Likes: 141
Very nicely done, sahem! yep


"praemonitus, praemunitus"
"We in America have no interest in being polite and orderly caretakers of the West’s managed decline." - Secretary of State Marco Rubio
[Linked Image]
What we agreed to abide by in these forums!
CB's Tips for Potentially Contentious Forum Discussions
Joined: Aug 2015
Posts: 68
D
Junior Member
Junior Member
D Offline
Joined: Aug 2015
Posts: 68
Great work. Beautiful!!!

Joined: Mar 2015
Posts: 51
S
Junior Member
Junior Member
S Offline
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
A
The Flying Penguin
Member
The Flying Penguin
Member
A Offline
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
K
Junior Member
Junior Member
K Offline
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
D
Junior Member
Junior Member
D Offline
Joined: Aug 2015
Posts: 68
Try with resistor networks, easier to solder and more compact. They are used in TM shift registers.

Page 29 of 112 1 2 … 27 28 29 30 31 … 111 112

Moderated by  RacerGT 

Link Copied to Clipboard
Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
God Forbid they want to have a bit of fun at work
by NoFlyBoy - 09/22/26 08:50 PM
How a 5" 38 Caliber US Naval Gun Works
by F4UDash4 - 09/19/26 01:20 AM
100% commission based sales
by PanzerMeyer - 09/18/26 04:47 PM
Relativity
by Terl9999 - 09/18/26 04:34 AM
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
September 15th Battle of Britain Day.
by RedToo - 09/15/26 08:06 PM
Population Patterns
by PanzerMeyer - 09/15/26 03:43 PM
"Problem occurred in connection"
by F4UDash4 - 09/14/26 01:41 PM
Popular Topics(Views)
7,068,614 SAM Simulator
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 8.0.1