Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
Page 29 of 104 1 2 27 28 29 30 31 103 104
#4204372 - 12/09/15 05:38 PM Re: MMJoy - Build your own USB controller ***** [Re: Sokol1]  
Joined: Jan 2012
Posts: 9
Kallisto Offline
Junior Member
Kallisto  Offline
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?

Inline advert (2nd and 3rd post)

#4204485 - 12/09/15 10:08 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Oct 2015
Posts: 4
sahem Offline
Junior Member
sahem  Offline
Junior Member

Joined: Oct 2015
Posts: 4
MINSK
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.
#4204710 - 12/10/15 02:38 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2012
Posts: 9
Kallisto Offline
Junior Member
Kallisto  Offline
Junior Member

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?

#4204732 - 12/10/15 03:22 PM Re: MMJoy - Build your own USB controller [Re: Kallisto]  
Joined: Nov 2001
Posts: 3,762
Sokol1 Online screwy
Senior Member
Sokol1  Online Screwy
Senior Member

Joined: Nov 2001
Posts: 3,762
Internet
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.
#4204860 - 12/10/15 11:51 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2012
Posts: 9
Kallisto Offline
Junior Member
Kallisto  Offline
Junior Member

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

#4204892 - 12/11/15 02:21 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,762
Sokol1 Online screwy
Senior Member
Sokol1  Online Screwy
Senior Member

Joined: Nov 2001
Posts: 3,762
Internet
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

#4204912 - 12/11/15 04:10 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
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)

#4204973 - 12/11/15 09:14 AM Re: MMJoy - Build your own USB controller [Re: Kallisto]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
Originally Posted By: Kallisto
Arduino Mega 2560 r3 will mmjoy work with this?

not work. this MCU do not have USB inside.

#4205385 - 12/12/15 07:32 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2012
Posts: 9
Kallisto Offline
Junior Member
Kallisto  Offline
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 wink
sry for my bad englsih

Last edited by Kallisto; 12/14/15 07:21 PM.
#4205526 - 12/13/15 06:05 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
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

#4205749 - 12/14/15 03:37 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2012
Posts: 9
Kallisto Offline
Junior Member
Kallisto  Offline
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.
#4205778 - 12/14/15 06:58 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Kallisto]  
Joined: Jan 2014
Posts: 274
mega_mozg_13 Offline
Member
mega_mozg_13  Offline
Member

Joined: Jan 2014
Posts: 274
BELARUS, Minsk
[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

#4205863 - 12/14/15 02:58 PM Re: MMJoy - Build your own USB controller [Re: Euphoria]  
Joined: Oct 2015
Posts: 4
sahem Offline
Junior Member
sahem  Offline
Junior Member

Joined: Oct 2015
Posts: 4
MINSK
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

#4205911 - 12/14/15 05:43 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,762
Sokol1 Online screwy
Senior Member
Sokol1  Online Screwy
Senior Member

Joined: Nov 2001
Posts: 3,762
Internet
Wow! Nice done, great look, and very clear "how to". thumbsup

#4205931 - 12/14/15 06:09 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2009
Posts: 7,074
CyBerkut Online content
Administrator
CyBerkut  Online Content
Administrator
Hotshot

Joined: Jul 2009
Posts: 7,074
Florida
Very nicely done, sahem! yep

#4205940 - 12/14/15 06:33 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Aug 2015
Posts: 67
Debolestis Offline
Junior Member
Debolestis  Offline
Junior Member

Joined: Aug 2015
Posts: 67
Croatia
Great work. Beautiful!!!

#4206151 - 12/15/15 11:34 AM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Mar 2015
Posts: 51
Sak75 Offline
Junior Member
Sak75  Offline
Junior Member

Joined: Mar 2015
Posts: 51
Madrid, Spain
uff very nice and professional, my HOTAS seem made by a child ha ha ha !!!!

#4207148 - 12/17/15 05:08 PM Re: MMJoy - Build your own USB controller [Re: Sokol1]  
Joined: Oct 2015
Posts: 108
AceofPengwins Offline
The Flying Penguin
AceofPengwins  Offline
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
#4207810 - 12/19/15 08:59 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jan 2012
Posts: 9
Kallisto Offline
Junior Member
Kallisto  Offline
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.
#4207815 - 12/19/15 09:34 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Aug 2015
Posts: 67
Debolestis Offline
Junior Member
Debolestis  Offline
Junior Member

Joined: Aug 2015
Posts: 67
Croatia
Try with resistor networks, easier to solder and more compact. They are used in TM shift registers.

Page 29 of 104 1 2 27 28 29 30 31 103 104

Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

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


Recent Topics
Delete account please
by Sammetje92. 04/08/20 08:26 AM
Best Thing I've Seen Today
by F4UDash4. 04/07/20 11:32 PM
A glimmer of Hope...
by Nixer. 04/07/20 07:19 PM
RIP--James Drury--the Virginian
by Forward Observer. 04/07/20 12:43 AM
HMAS Otama in 1999
by Mad Max. 04/06/20 11:24 PM
Metro Exodus
by PanzerMeyer. 04/06/20 11:53 AM
Jaws actress dies of Coronavirus at 91.
by NoFlyBoy. 04/06/20 01:34 AM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0