Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
Page 109 of 112 1 2 107 108 109 110 111 112
#4566367 - 04/28/21 04:13 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino ***** [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
AlenC

For what you want will be need an multiplexe. May this guy can help you.

https://www.youtube.com/watch?v=6Jl0DkayZzE

BTW - The LED function in MMjoySetup is for games that export data, being compatible only with War Thunder, for other games able to do this, e.g. MSFS, DCS World... you need create an API.

Inline advert (2nd and 3rd post)

#4566400 - 04/28/21 07:00 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Apr 2021
Posts: 7
AlenC Offline
Junior Member
AlenC  Offline
Junior Member

Joined: Apr 2021
Posts: 7
Thanks,

I'll see if he's willing to explain his connection scheme. BTW, what's a multiplexe?


Edit: Actually, let me ask directly; would the connection as represented in attachment damage the ProMicro board?

Since I can't do it in software, I don't think I'll bother if I have to do anything more complicated than this.

Attached Files SunCom_LED.jpg
Last edited by AlenC; 04/28/21 09:07 PM.
#4566475 - 04/29/21 08:59 AM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Dovahkiin]  
Joined: Mar 2021
Posts: 3
Dovahkiin Offline
Junior Member
Dovahkiin  Offline
Junior Member

Joined: Mar 2021
Posts: 3
Iran
Originally Posted by Dovahkiin
Hello,
I built a button box with 128 buttons and 8 axes. I have following problem (I think its a software related problem.)
All the button of my button box is recognized with mmjoy software button page.( the page in above pic)

I configured them  all as normal buttons in the right section. So far so good.
[Linked Image]
(This pic is from MMJOY wiki and I use it just for showing sections that I will mention)
Then I used joystick germlin (is the spell right? :D) and I pressed some buttons, the program recognized some. But some of them didn't recognized by the program. I opened VKB button test in MMjoy and it didnt recognized the buttons that joystick germlin couldnt recognized. At the same time when I press them, the nummber of the button goes red in the MMjoy button section (pic above). So they have no hardware problem. Then I changed the nummber of button in the right section of pic above and then saved them. I tested it with VKB button test and joystick germlin, both didn't recognized some buttons but they were diffrent button from the first test. I realy hope someone could help me solve this problem beacuse I put a lot of time on buliding my button box.

(I'm using SRs and arduino Leonardo, also I tested both 2016 versions of MMJOY and both had this problem but with diffrent buttons)


I tested it more and found out that in the MMJOY, button that connected to the first line of shift regisers have no problem, but the secound line have some... (for 128 button, I splited to 2 line of SRs, 12 pcs and 4 pcs, beacuse MMJOY have no option for 16 pcs of SR)

So I think I should split my BB.

#4566511 - 04/29/21 04:22 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: AlenC]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Originally Posted by AlenC
BTW, what's a multiplexe?


Typo. biggrin

I want mean a optocoupler multiplexer mc, an example, H11AA2.

[Linked Image]

- Notice that button matrix signal is just for activate the circuit, that have independent +5v, Gnd source for lit the LED.

Another, from BU0836 matrix, but for use an ON-OFF-ON switch.

[Linked Image]

Both examples show that you can' use the matrix lines and columns for supply the LED.











Last edited by Sokol1; 04/29/21 04:30 PM.
#4566513 - 04/29/21 04:29 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Dovahkiin]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Quote

[Linked Image]


This image show that are using an old version o MMjoy2, from 2015.

The one that is considered more stable is the he penultimate [v20160818upd1], the last supposed have a bug, don'k remember what.

MMjoy2 download from mega MOZG (author) page.

Last edited by Sokol1; 04/29/21 04:31 PM.
#4566519 - 04/29/21 06:00 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Apr 2021
Posts: 7
AlenC Offline
Junior Member
AlenC  Offline
Junior Member

Joined: Apr 2021
Posts: 7
Thanks a bunch for the instructions!! It seems a bit too complicated, but I think I could do it. I'm unfortunately rather ignorant when it comes to electronics. I mainly just solder things together and see if they work! smile

On the first image, it seems to me that pressing the button on joystick will light the LED and also activate multiplexer that in turn shorts row and column on button matrix. Is that correct? In that case I'd need a multiplexer for each button?
Or can I invert the logic and by pressing the button allow current to flow to LED? In that case I'd need multiplexer for each LED....

#4566703 - 04/30/21 04:37 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Pressing the button (in the drawing is showed an toggle switch, bu the effect is the same) will LID the LED with +5v, Gnd and activate the H11AA2, that will an signal send through Column and Row to MMjoy2 see an button pressed. You need an H111AA2 for each button.

Curiosity, what 2will be utility of a blink LED when pressing button(s)?
What matter when press an button is the correspondent action in the game.

In the above linked video, the guy use a more capable multiplexer - an integrated circuit - he made a topic in REDIT/HOTASDIY; so:

Pressing one of the four red buttons in the base will activate a button profile (mode) for stick 4 press buttons and the left HAT (+ 4 buttons) = 4 x 8= 32 buttons, plus the 8 with no red button pressed = 40 buttons.

No red button pressed, buttons and left HAT is logical buttons #'1 to #8" buttons.

With first red button pressed, buttons and left HAT is logical buttons #9 to #16 and so on.


The small button bellow HAT's activate a second mode for POV HAT (right) and lit the LED at top of grip indicating = 2 HATS (one physical, one virtual).



Last edited by Sokol1; 04/30/21 04:41 PM.
#4566708 - 04/30/21 04:53 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Apr 2021
Posts: 7
AlenC Offline
Junior Member
AlenC  Offline
Junior Member

Joined: Apr 2021
Posts: 7
I wanted to use the LED since it is already present on the stick, but as I said, it's not a big deal if I skip that. The way it's wired, it seemed to me that activating any direction of the right hat would light the LED.

I didn't know what was the original use for buttons, I meant to use them as simple switches (which I'll still probably do). Was that guy's solution just his way of doing it, or was it the way the stick worked originally?

I'll see if I can fit all those multiplexers in the case (I'd need nine...). Would this model work in the same way: https://www.vishay.com/docs/83725/4n25.pdf ?


Last edited by AlenC; 04/30/21 04:54 PM.
#4566757 - 05/01/21 12:21 AM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
What the guy create with multiplexer microcircuit was an new solution for use the original mode buttons, allowing use more 32 virtual logical buttons, instead only the 8 physical.

Originally Suncom stick are a 2 axis 2 buttons stick for Windows/games, the extra buttons are used through keypress emulation - through a PS2 keybaord by-pass connection, with 4 memory slots for store different combinations.

Since actual USB controllers can use 32 (and even 64 or 128 buttons), the buttons now select different buttons number instead keypress.

Originally the LED in top of grip is for indicate that keyboard emulation was activated, enabled though the small button bellow HAT's, and the LED at side of red button on base for show what memory slot for keypress are selected.

Last edited by Sokol1; 05/01/21 12:26 AM.
#4566771 - 05/01/21 01:50 AM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Apr 2021
Posts: 7
AlenC Offline
Junior Member
AlenC  Offline
Junior Member

Joined: Apr 2021
Posts: 7
Hm, I never thought of that, but yeah, there was a time when joysticks had one or two buttons! This was pretty clever way of increasing the button count. Thanks for the info!!

#4567502 - 05/06/21 04:52 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Nov 2006
Posts: 11
Llama Offline
Junior Member
Llama  Offline
Junior Member

Joined: Nov 2006
Posts: 11
Can I ask what is surely an insane question about a simple, single pushbutton and MMJoy2?

I've successfully used MMJoy2 (version 20161101) and some Pro Micro Breakout Boards to convert a Thrustmaster Attack Throttle, a TM FLCS, a TM F-22 Pro, and a WCS Mk II, so I know how to connect and configure pushbuttons via Shift Registers and Matrixes and set the software.

The FLCS has an extra switch on the base, and I got it working by wiring it up to two pins (such as B4 and B5) and calling it a 1x1 matrix in MMJoy2 using B4 and B5 as a row and column. Seems like overkill, but fine.

But suppose I want to add another pushbutton to the base; I've got all these extra pins on the Pro Micro so it doesn't seem like I should have to wire it up to the first switch to make a 2x1 or 1x2 matrix; I should be able to connect it independently to some of the other free pins. However...

I don't see anything in the MMJoy2 interface to let me create in the software a "simple" pushbutton that exists outside of a Matrix or Shift Register. What am I missing?

OR, should I just then connect the second button to something like B6 and B7, telling MMJoy2 that I have a 2x2 matrix but I'm only using 2 of the 4 possible "slots?" And if I want to add any more buttons and if I still have free pins (these Pro Micro Breakout Boards have A LOT of pins) I just keep using two new pins and increasing the size of my Button Matrix, but I then just have a lot of "wasted" potential button slots?

To be sure, if I was adding "lots" of buttons I would of course use a proper Matrix or one of these Shift Register circuit boards I have here, but I would love to keep things simple for just a few extra buttons or switches. Thoughts?

EDIT: I just increased the size of the Matrix across both dimensions to add a few simple switches. It works fine.

Thanks,
Llama

Last edited by Llama; 05/11/21 12:13 AM.
#4568291 - 05/13/21 03:15 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Apr 2021
Posts: 7
AlenC Offline
Junior Member
AlenC  Offline
Junior Member

Joined: Apr 2021
Posts: 7
Hi again!

I'm slowly putting everything together, but I'm having a bit of an issue with MCP3208. I tested it once as shown here:
https://raw.githubusercontent.com/MMjoy/mmjoy_en/master/img/Hardware%20connection/mcp3208.png

And it worked. But in subsequent test I may have connected something wrong and I can't get it to work again. Could I have damaged the chip by connecting power to a wrong pin?

And one more question about that schematic: Pro Micro seems inverted (as if seen from beneath), which is what I'd expect for a printed circuit, but what I can tell from its datasheet, MCP3208 is not. If I were to print this circuit I'd have to connect one upside down. Or am I misinterpreting something?

Edit:

I just tested optocoupler and it worked initially, but the light started to get dimmer until it wouldn't turn on anymore. I tried the same setup without the capacitor (I left only 330 Ohm resistor) and it worked perfectly. Can I safely ommit the capacitor?

Edit 2:

Replacement MCP3208 arrived and it's working. I must have ruined the first one... I just need to know now about capacitors... Thanks!


Last edited by AlenC; 05/18/21 04:09 PM.
#4569604 - 05/23/21 07:55 AM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Jan 2017
Posts: 35
sunrrrise Offline
Junior Member
sunrrrise  Offline
Junior Member

Joined: Jan 2017
Posts: 35
Hello,
I have a quick question on CD4021 shift registers and MMJOY2. Is it possible to use them in parallel (=NOT daisy-chained).? Say I will use common Vcc, Gnd and CLK, but separate CS and DATA. Will it work?

Kind regards,
sunrrrise

#4570556 - 05/31/21 01:52 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: May 2021
Posts: 1
chmooreck Offline
Junior Member
chmooreck  Offline
Junior Member

Joined: May 2021
Posts: 1
Hi

ProMicro clone, Defender Cobra M5

Trying to upgrade with MMJoy because of broken original sensors.

I connected throttle pot to A0, VCC and GND, configured it in setup and saved to device. Unfortunately it shows value 0 only. Value row shows actual value, right ?


I verified if ProMicro isn't broken by running simple program:
Code
int sensorPin = A0;    // select the input pin for the potentiometer
int sensorValue = 0;  // variable to store the value coming from the sensor

void setup() {
}

void loop() {
  // read the value from the sensor:
  sensorValue = analogRead(sensorPin);
  Serial.println(sensorValue);
  delay(100);
}

and it works fine - I'm getting values in range 220-1024 depending on pot position.

What am I doing wrong ?


P. S.
I tried to connect https://www.aliexpress.com/snapshot...30798024438335&productId=32634095245 but all i get is link errors counter. Now I've got connected pot only to verify simple things first.

Attached Files mmjoy.jpg
Last edited by chmooreck; 06/06/21 01:36 PM.
#4570671 - 06/01/21 07:42 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: sunrrrise]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Originally Posted by sunrrrise

I have a quick question on CD4021 shift registers and MMJOY2. Is it possible to use them in parallel (=NOT daisy-chained).? Say I will use common Vcc, Gnd and CLK, but separate CS and DATA. Will it work?


Can select two SR inputs:

[Linked Image]




Last edited by Sokol1; 06/01/21 07:46 PM.
#4571469 - 06/10/21 07:39 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Jun 2021
Posts: 2
AzureZenith Offline
Junior Member
AzureZenith  Offline
Junior Member

Joined: Jun 2021
Posts: 2
Canada
Hey, I've started using version v20160818upd1 to convert some old gameport CH accessories to USB, and I don't see an option to add more than 1 hat. Is this something that was removed in newer versions of the software, or am I just blind?

[Linked Image]

#4571535 - 06/11/21 07:17 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Only some old firmware versions has two POV HAT's, removed probable because most games recognize only one POV HAT (way).

Available firmwares: https://sites.google.com/site/mmjoyproject/fajly-dla-skacivania

BTW - In old CH sticks none of the HAT's are POV HAT (8 way), is need modify one physically for work as POV HAT, see here:

http://snomhf.exofire.net/8-WayHat.html

#4571610 - 06/12/21 06:26 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Jun 2021
Posts: 2
AzureZenith Offline
Junior Member
AzureZenith  Offline
Junior Member

Joined: Jun 2021
Posts: 2
Canada
Thanks! I figured that was the case, but wanted to double check.

Thanks for the tip as well. I don't know if this is the case for all the old CH stuff, but they also cheaped out on the diodes in mine. They only used them for the four push button in the throttle (and none in the stick), so I also had to add some myself

#4578470 - 08/28/21 08:05 PM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Jan 2010
Posts: 464
tirta Offline
Member
tirta  Offline
Member

Joined: Jan 2010
Posts: 464
Hi Guys,

I am trying to replay XWA and Tie Fighter again since now the graphic has been upgraded.
However the joystick setting there is not compatible with my mmjoy joystick,
some buttons can not be mapped, it is limited for 16 buttons.
and also the button reaction is too fast, it seems all of them is continuous response.

I remember a long time ago there is a small joystick program that can map a single press for all buttons.
in fact, you can program 2 function for a button, one for pressing the button and the other one for releasing.
And it can program all the buttons in my mmjoy joystick.

What is the name of that joytick programmer?
Do you guys still have it?
Please help.

#4578707 - 08/31/21 07:38 AM Re: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino [Re: Sokol1]  
Joined: Aug 2021
Posts: 2
DonPIn Offline
Junior Member
DonPIn  Offline
Junior Member

Joined: Aug 2021
Posts: 2
Auckland, New Zealand
A copy of MMJoy2 20160818 version required.

Emails to Mega Mozg bounce back with a "Full mailbox" problem and the MMJoy2 website appears somewhat abandoned. The latest download version is infected and the prior one is in Russian and does not install correctly. If anyone has a good copy of the 20160818 (or perhaps the 20161101 version), perhaps they would be good enough to post in the SimHQ downloads or on some other cloud based service with a reference posted here to it.

Thanks guys.


Last edited by DonPIn; 08/31/21 10:05 AM. Reason: typo
Page 109 of 112 1 2 107 108 109 110 111 112

Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

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


Recent Topics
Carnival Cruise Ship Fire....... Again
by F4UDash4. 03/26/24 05:58 PM
Baltimore Bridge Collapse
by F4UDash4. 03/26/24 05:51 PM
The Oldest WWII Veterans
by F4UDash4. 03/24/24 09:21 PM
They got fired after this.
by Wigean. 03/20/24 08:19 PM
Grown ups joke time
by NoFlyBoy. 03/18/24 10:34 PM
Anyone Heard from Nimits?
by F4UDash4. 03/18/24 10:01 PM
RIP Gemini/Apollo astronaut Tom Stafford
by semmern. 03/18/24 02:14 PM
10 years after 3/8/2014
by NoFlyBoy. 03/17/24 10:25 AM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0