In MMJoy2Setup I don't know. You can map two logical buttons ("joystick") for ON and OFF of physical ON-OFF-ON switch (H/W button), but don't see option for map two physical (H/W button) button (of ON-OFF-ON switch) for the same logical button ("joystick" #3).
But using an keymapper (SVmapper, JoyToKey...) "mapped on press" and "mapped on release" functions is possible.
I cannot for the life of me figure out why mmjoy2 is not showing button presses from the shift register hooked up to my ProMicro.
Hardware: ProMicro clone This shift register board with 3x 74H165 shift registers.
Shfit register board is connected to ProMicro as follows: MISO - D2 CS - D3 5V - VCC GND - GND Edit: SCK to SCK [D15]
I have the ProMicro set up with mmjoy2 (config attached) and have even verified that button presses work using the button matrix settings by setting two pins as a single row/column and shorting the two pins.
None of the hardware button indicators light up when I short the switch pins on the shift register to ground. I have tried several different MISO/CS pins with the same result. I even swapped with the other shift register board with the same result.
Other notes: if I remove the plug from the shift register board, the hardware button indicators kind of spaz out, flashing intermittently.
I'm not sure where to go from here.
Last edited by StarfuryTH; 11/30/1805:11 AM.
#4450944 - 11/29/1805:02 AMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: StarfuryTH]
I cannot for the life of me figure out why mmjoy2 is not showing button presses from the shift register hooked up to my ProMicro.
Hardware: ProMicro clone This shift register board with 3x 74H165 shift registers.
Shfit register board is connected to ProMicro as follows: MISO - D2 CS - D3 5V - VCC GND - GND
I have the ProMicro set up with mmjoy2 (config attached) and have even verified that button presses work using the button matrix settings by setting two pins as a single row/column and shorting the two pins.
None of the hardware button indicators light up when I short the switch pins on the shift register to ground. I have tried several different MISO/CS pins with the same result. I even swapped with the other shift register board with the same result.
Other notes: if I remove the plug from the shift register board, the hardware button indicators kind of spaz out, flashing intermittently.
I'm not sure where to go from here.
Had you said the Magic Word I may have helped you ..........
......Oh.... ok..... to start where is the 5th wire? SCK.....
The better Firmware is 20160818 too in my experience , the one on the Wiki is very outdated...
I cannot for the life of me figure out why mmjoy2 is not showing button presses from the shift register hooked up to my ProMicro.
Hardware: ProMicro clone This shift register board with 3x 74H165 shift registers.
Shfit register board is connected to ProMicro as follows: MISO - D2 CS - D3 5V - VCC GND - GND Edit: SCK to SCK [D15]
I have the ProMicro set up with mmjoy2 (config attached) and have even verified that button presses work using the button matrix settings by setting two pins as a single row/column and shorting the two pins.
None of the hardware button indicators light up when I short the switch pins on the shift register to ground. I have tried several different MISO/CS pins with the same result. I even swapped with the other shift register board with the same result.
Other notes: if I remove the plug from the shift register board, the hardware button indicators kind of spaz out, flashing intermittently.
I'm not sure where to go from here.
You really need to give more details so someone can help you, and use the MMjoy Pin designations, so we aren't mixing them with the Arduino labels (see below), but it sounds like you either have a short or are missing a resistor perhaps on the SR Board ...this was my issue...as the included PCB layouts were incorrect.
Not sure what "plug" on the SR PCB you are unplugging? pics and diagrams may help some spot something.....
- have you tried the suggest FW above?
- Is SR PCB homemade or purchased?
- Is the SR Board the only thing connected to the Pro ? ie no TLE5010 boards?
- Do you have Buttons connected to the SR PCB ?
I am not an expert on this so hopefully others will chip in once they have some more info to work with.....
Link to the purchased shift register board is in the post, along with a diagram. I can’t seem to upload that picture to the thread from my phone, but will try later tonight from my computer.
The SR board has mini molex connectors all over it, making some of the connections easier, but the pins are labeled.
Mmjoy2 appears to be using the same labels I provided. VCC, GND, two designated pins for CS/MISO, and B1 for SCK.
I did update the firmware this morning with that newer build, same result. SR board is the only thing connected to the ProMicro. No buttons connected to the SR yet, just some wires (via plug harnesses) that I’m using to test before actually connecting things.
My electronics know how is very limited, but I have background in electrical, so I’m trying to get across the needed information. I just need to know what additional information is needed to solve the problem.
Last edited by StarfuryTH; 11/29/1807:50 PM.
#4451051 - 11/29/1808:36 PMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: StarfuryTH]
Link to the purchased shift register board is in the post, along with a diagram. I can’t seem to upload that picture to the thread from my phone, but will try later tonight from my computer.
The SR board has mini molex connectors all over it, making some of the connections easier, but the pins are labeled.
Mmjoy2 appears to be using the same labels I provided. VCC, GND, two designated pins for CS/MISO, and B1 for SCK.
I did update the firmware this morning with that newer build, same result. SR board is the only thing connected to the ProMicro. No buttons connected to the SR yet, just some wires (via plug harnesses) that I’m using to test before actually connecting things.
My electronics know how is very limited, but I have background in electrical, so I’m trying to get across the needed information. I just need to know what additional information is needed to solve the problem.
There is nothing in your 1st post other than a pic of the MMjoy Config that I can see in FF or Chrome , that is why I asked .....if you purchased it , then I would be contacting the Seller for support 1st
The wiring is correct I think but I am using a Leonardo.....but got some ProMicro's for my second conversion since they are smaller.
I tried hovering for a Hyperlink but must have missed the word "THIS" , if you use the Full Editor you can use Bold and Colour Text too, to make it more Obvious.
I actually have some of those SR boards , the switch needs to be in MMjoy mode to work (Up with switch on the right looking at it) , they are actually a set for use with STM32 based Boards (Ejoy3) not the Arduinos, hence the switch, as Arduino buttons goto ground and STM32 goto VCC so the ground is different .....hopefully that is the only issue, slide the switch the other way and try it, I have not used mine yet as I haven't started my 2nd conversion yet.
Updated with Pics as PCB labels are Wrong
KB.
Last edited by Kbird; 12/16/1805:44 PM. Reason: added correction pics I made for myself
If I flip the switch, all 24 buttons show as pressed. If I disconnect the MISO/CS pins, all 24 buttons show as pressed. If I set the wrong pins in mmjoy2, all 24 buttons show as pressed. If connected and configured correctly and I pull one of the 24 button pins on the SR to ground, no buttons show as pressed in mmjoy2.
Banging my head against the wall here.
#4451462 - 12/02/1803:25 PMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: Sokol1]
Joined: Jul 2018 Posts: 20StarfuryTH
Junior Member
Tested all of the input pins on both SR boards. Grounding pin #5 shows all 24 buttons as pressed. No other pins seem to show output of any kind in the mmjoy2 window. With the switch on the SR board flipped, function is inverted. All 24 buttons show as pressed, connecting input pin #5 to VCC shows them all as not pressed.
Further testing shows that this happens no matter which pin the CS lead from the SR is connected to on the ProMicro. I can pull that lead entirely, or hook it up to a non-assigned pin on the ProMicro, and the same all-or-none button press described above can be recreated.
#4451473 - 12/02/1805:21 PMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: Sokol1]
Joined: Jul 2018 Posts: 20StarfuryTH
Junior Member
Took a closer look at that above picture/diagram....the CS and SCK labels on the board are freaking backwards from the diagram. Switch those, everything is fine.
So lesson for anyone using the the above 74HC165D shift register board from New Hope Electronics: switch the labels/pins for SCK/CS and it will work just fine.
Issue closed.
#4451479 - 12/02/1806:13 PMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: StarfuryTH]
Here's the diagram of the shift register board. It's been suggested in another forum that the S/L pin on the registers isn't being used correctly.
My electronics background is almost zilch, so I can wire it up, but I have no idea what to do with this information.
Hi SF , sorry for not getting back here till seeing your posts today, I tried a few tests with mine and got the same issue as you actually but never got back to it , to try and figure it out ....
SO the CS and SCK Pins in the Diagram are swapped?
I am not sure even what the S/L pin is, could you elaborate? which Forum did you find that Info on?
Thanks for that info much appreciated as I had emailed the Maker of the Boards for advice.... but the Chinese language Barrier has made it a bit tough even with Google translate, without an electronics background , same as you. NewHope is just one place he sells them, he is also on TaoBao and a couple of other places on line , he also has some posts on the DCS Forums for his EasyJoy3 (STM) board and the software for it.
I was working this problem concurrently with someone on the #DIY channel of the HOTAS/HOSAS/SIMPIT discord server. He helped me a bit with understanding how the shift register works, and described the different SR pins to me.
I actually figured out the swapped pins this morning while looking at that last pic I posted with both the diagram and picture reference of the board from the AliExpress store for the shift register. The “S/L” pin is their terminology for CS, and CLK is SCK. Except the labels on the picture representation and on the board itself are incorrect, showing those two pins as swapped.
I have only a very basic understanding of what all these pins do, but the fact that I had the same problems with what I thought was the CS (data leg) pin connected, disconnected, or connected to a different pin than specified in mmjoy2, clued me in to the fact that something was off. It was then that I started looking closely at the diagram to verify that things were labeled properly.
Now that it’s working properly, I can quite easily accomplish my cougar throttle switch upgrade project
#4451535 - 12/03/1806:01 AMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: StarfuryTH]
I was working this problem concurrently with someone on the #DIY channel of the HOTAS/HOSAS/SIMPIT discord server. He helped me a bit with understanding how the shift register works, and described the different SR pins to me.
I actually figured out the swapped pins this morning while looking at that last pic I posted with both the diagram and picture reference of the board from the AliExpress store for the shift register. The “S/L” pin is their terminology for CS, and CLK is SCK. Except the labels on the picture representation and on the board itself are incorrect, showing those two pins as swapped.
I have only a very basic understanding of what all these pins do, but the fact that I had the same problems with what I thought was the CS (data leg) pin connected, disconnected, or connected to a different pin than specified in mmjoy2, clued me in to the fact that something was off. It was then that I started looking closely at the diagram to verify that things were labeled properly.
Now that it’s working properly, I can quite easily accomplish my cougar throttle switch upgrade project
Thanks for posting back , it will help me do a Second FLCS and TQS and CH stuff I picked up....not sure I would of noticed the swapped labels, he has more pics on his TaoBao Site which is wher eI found the other above and start labelling myself for easier reading.
SCK (serial clock) being CLK i knew , but don't think I have seen CS labelled SL though.
I am actually pretty surprised I am the only one who answered you , as usually there is lots of help here , if you need other Docs I have a FLCS thread I started for my 1st conversion and I posted a bunch of my wiring docs etc over there, may not help with a Cougar though...... link should be in my Sig.
Definitely appreciates, but I should be pretty good from here:)
I’m not actually converting the cougar itself anymore. That was the original plan, but I stumbled on a TUSBA for sale, so now I’m just using the arduino stuff for add-on switches and rotaries. I will be converting my gameport CH Pro Throttle to usb, however.
But again, thanks for the help. I definitely wouldn’t be able to do this without forums like these for support.
#4451631 - 12/03/1805:59 PMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: StarfuryTH]
Definitely appreciates, but I should be pretty good from here:)
I’m not actually converting the cougar itself anymore. That was the original plan, but I stumbled on a TUSBA for sale, so now I’m just using the arduino stuff for add-on switches and rotaries. I will be converting my gameport CH Pro Throttle to usb, however.
But again, thanks for the help. I definitely wouldn’t be able to do this without forums like these for support.
Actually I just picked up a gameport Pro throttle along with some Pro Pedals with the second FLCS and TQS ( box deal ) so I'd be Happy to see what you come across for yours , Why don't you Start your Own thread about that conversion? be good to have somewhere to collect all the info together.....
I also looked at TUSBA but there stuff didn't work with the FLCS and TQS I already had.