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/2107:00 PMRe: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino
[Re: Sokol1]
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.
(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/2104:22 PMRe: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino
[Re: AlenC]
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!
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/2104:37 PMRe: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino
[Re: Sokol1]
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/2104:41 PM.
#4566708 - 04/30/2104:53 PMRe: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino
[Re: Sokol1]
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?
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/2112:26 AM.
#4566771 - 05/01/2101:50 AMRe: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino
[Re: Sokol1]
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/2104:52 PMRe: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino
[Re: Sokol1]
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/2112:13 AM.
#4568291 - 05/13/2103:15 PMRe: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino
[Re: Sokol1]
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/2104:09 PM.
#4569604 - 05/23/2107:55 AMRe: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino
[Re: Sokol1]
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/2101:52 PMRe: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino
[Re: Sokol1]
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.
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:
Last edited by Sokol1; 06/01/2107:46 PM.
#4571469 - 06/10/2107:39 PMRe: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino
[Re: Sokol1]
Joined: Jun 2021 Posts: 2AzureZenith
Junior Member
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?
#4571535 - 06/11/2107:17 PMRe: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino
[Re: Sokol1]
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/2108:05 PMRe: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino
[Re: Sokol1]
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/2107:38 AMRe: MMJoy/MMjoy2 - Set your own USB controller with a cheap Arduino
[Re: Sokol1]
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/2110:05 AM. Reason: typo