Sorry Barra , I didn't get here last night to see your reply , that file isn't on this thread but I found it on the IL2 Forums a while back on the MMjoy thread there.... but I see Erichos has uploaded one too.. but here is what I have too...
When using shift registers can I use a common "bar" for 8 switche common wires and then run just 1 wire to the shift register?
I have finally built box with all switches encoders and potentiometres and while encoders and pots work it appears that all switches seem active. The only change I made was to use a common bar for each of the SR's. Unless I have bugged i\the board.
#4351845 - 04/18/1701:20 PMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: Sokol1]
You can use one common wire for all 8 possibles buttons per Shift Register i/c or one common for each switch.
The first save some wires and pins, but result less flexible, with the second you can change a button without need disconnect he other seven.
Depends on space available for Shift Register board, the fist case is more suitable for use inside joystick grip, due space restrictions, e.g. like is done Cougar/Warthog Shift Register.
#4351933 - 04/18/1706:12 PMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: Barra]
When using shift registers can I use a common "bar" for 8 switche common wires and then run just 1 wire to the shift register?
I have finally built box with all switches encoders and potentiometres and while encoders and pots work it appears that all switches seem active. The only change I made was to use a common bar for each of the SR's. Unless I have bugged i\the board.
If I understand you correctly NO ..... it's not like a Button Matrix at all.....the Common wires just goto Ground ...so yes they can all be barred/tied together and a single wire run to ground from there whether on the Arduino or to a ground point on the SR PCB
The other 8 wires go individually from each switch to a Pin on the SR with a resistor to Power , easiest to see this on MegaMozg SR PCB Pic (below)
And this is my current MegaMozg SR Board done on a breadboard for Rotary switch testing ....which has only proven I have 3 Rotary switches of the wrong kind ,my local stores are useless ... all are MBB (shorting) so no good for flightsimming as they are always on.
I finished putting a button box together with 3 pots 2 encoders and numerous switches via SR's (8 switch common wires are wiring together with a common wire running to SR from the bunched common wires). The pots and encoders including encoder buttons work. But SR switches show as always on.
Software pic in post shows switches lit and button tester shows on as well. To me with little electronic knowledge it's like maybe a short causing them to show on. It will take me a while to draw a scheme so I will look at that.
#4352000 - 04/18/1711:55 PMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: Barra]
I finished putting a button box together with 3 pots 2 encoders and numerous switches via SR's (8 switch common wires are wiring together with a common wire running to SR from the bunched common wires). The pots and encoders including encoder buttons work. But SR switches show as always on.
Software pic in post shows switches lit and button tester shows on as well. To me with little electronic knowledge it's like maybe a short causing them to show on. It will take me a while to draw a scheme so I will look at that.
Hi Barra , I did not know ( and you didn't say ..more info is better...) that you are using CD4021 SR's not the 74HC165 SR Chips like most . The FLCS uses 3 x 4021's in its Handle for all the Buttons so you can use that wiring scheme for an example (pic posted a few pages back) but I suspect that you making the wires "common" is the issue but here is a "CD4021 Schematic" I had saved a while back too....
KB
forgot to mention there are example PCB layouts in the MMJoy2 Folder under PCB , you can use the free version of Sprint 6.0 Viewer to look at and print them ( the Demo doesn't allow saving or printing)
Hi folks, i'm new here. I have a question. Is it possible to run a mcp3208 and a couple 74hc165 shift registers together on a pro micro? Or is mmjoy2 restricted to one type at a time?
#4352006 - 04/19/1712:30 AMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: erichos]
Kbird, what is your problem with wrong kind of rotary switch? You can change it by MMJoy2 software, MBB or BBM - it does not matter, set it in MMJoy2!
Hi Erichos , I think i misunderstood then as back on page 124 you said I had the wrong type of Rot. Switch as they were always on and the 2 others I got have also turned out to be the same, in that they always show the switch position as "ON" not "momentary on" , they seem to be selector type switches so for example position 8 will always show as ON in MMJoy or the Sim at 8 , which may work for somethings' I guess but I was thinking that most Sims want to see a momentary ON only.
Is there a "mode" for the Button that makes it Momentary? I played with the mode settings ....some work but always show as ON
Hi folks, i'm new here. I have a question. Is it possible to run a mcp3208 and a couple 74hc165 shift registers together on a pro micro? Or is mmjoy2 restricted to one type at a time?
I'm no expert but perhaps here are some examples I have saved from my Inet travels that may help....
I had issues with my FLCS handle miso and the TLE5010 Chip's Miso (Data) not liking each other but Erichos pointed out that I can use any digital pin for Data so I shifted the Hand MISO (DATA) to another Pin instead of the one on the ICSP Header and it's now working fine.
I finished putting a button box together with 3 pots 2 encoders and numerous switches via SR's (8 switch common wires are wiring together with a common wire running to SR from the bunched common wires). The pots and encoders including encoder buttons work. But SR switches show as always on.
Software pic in post shows switches lit and button tester shows on as well. To me with little electronic knowledge it's like maybe a short causing them to show on. It will take me a while to draw a scheme so I will look at that.
Hi Barra , I did not know ( and you didn't say ..more info is better...) that you are using CD4021 SR's not the 74HC165 SR Chips like most . The FLCS uses 3 x 4021's in its Handle for all the Buttons so you can use that wiring scheme for an example (pic posted a few pages back) but I suspect that you making the wires "common" is the issue but here is a "CD4021 Schematic" I had saved a while back too....
KB
forgot to mention there are example PCB layouts in the MMJoy2 Folder under PCB , you can use the free version of Sprint 6.0 Viewer to look at and print them ( the Demo doesn't allow saving or printing)
Yes using 4021 - 4 of them on a PCB by Debolestis
#4352028 - 04/19/1704:24 AMRe: MMJoy/MMjoy2 - Build your own USB controller
[Re: Barra]
I finished putting a button box together with 3 pots 2 encoders and numerous switches via SR's (8 switch common wires are wiring together with a common wire running to SR from the bunched common wires). The pots and encoders including encoder buttons work. But SR switches show as always on.
Software pic in post shows switches lit and button tester shows on as well. To me with little electronic knowledge it's like maybe a short causing them to show on. It will take me a while to draw a scheme so I will look at that.
Hi Barra , I did not know ( and you didn't say ..more info is better...) that you are using CD4021 SR's not the 74HC165 SR Chips like most . The FLCS uses 3 x 4021's in its Handle for all the Buttons so you can use that wiring scheme for an example (pic posted a few pages back) but I suspect that you making the wires "common" is the issue but here is a "CD4021 Schematic" I had saved a while back too....
KB
forgot to mention there are example PCB layouts in the MMJoy2 Folder under PCB , you can use the free version of Sprint 6.0 Viewer to look at and print them ( the Demo doesn't allow saving or printing)
Yes using 4021 - 4 of them on a PCB by Debolestis
Then I would try contacting @Debolestis via PM , he is still around , thank him for the PCBs and ask him how to wire it
Hi folks, i'm new here. I have a question. Is it possible to run a mcp3208 and a couple 74hc165 shift registers together on a pro micro? Or is mmjoy2 restricted to one type at a time?
I'm no expert but perhaps here are some examples I have saved from my Inet travels that may help....
I had issues with my FLCS handle miso and the TLE5010 Chip's Miso (Data) not like each other but Erichos pointed out that I can use any digital pin for Data so I shifted the Hand MISO/DATA to another Pin instead of the one on the ICSP Header and it's now working fine.
KB
Thanx for your answer Kbird I got a first breadboard setup running with a MCP3208 for the axes, 2 chained 74HC165 for 16 Buttons and a 4x5 Button Matrix for 20 Buttons.
But i seems i have problems with my Encoders. I use ALPS STEC12E08 encoders (detended with pushbutton). They respond not how they should. Turning the encoder slowly theres mostly no response, turing it faster it works but in a very jumpy way. As i know, there are encoders with different encoder detend modes out there, which maybe have to be processed differently. Or is the Encoder just fine and it's a problem that the update rate of the shiftregister is to slow?
Hi folks, i'm new here. I have a question. Is it possible to run a mcp3208 and a couple 74hc165 shift registers together on a pro micro? Or is mmjoy2 restricted to one type at a time?
I'm no expert but perhaps here are some examples I have saved from my Inet travels that may help....
I had issues with my FLCS handle miso and the TLE5010 Chip's Miso (Data) not like each other but Erichos pointed out that I can use any digital pin for Data so I shifted the Hand MISO/DATA to another Pin instead of the one on the ICSP Header and it's now working fine.
KB
Thanx for your answer Kbird I got a first breadboard setup running with a MCP3208 for the axes, 2 chained 74HC165 for 16 Buttons and a 4x5 Button Matrix for 20 Buttons.
But i seems i have problems with my Encoders. I use ALPS STEC12E08 encoders (detended with pushbutton). They respond not how they should. Turning the encoder slowly theres mostly no response, turing it faster it works but in a very jumpy way. As i know, there are encoders with different encoder detend modes out there, which maybe have to be processed differently. Or is the Encoder just fine and it's a problem that the update rate of the shiftregister is to slow?
I was having issues with my Rotary Encoder too but it was just my MMJoy setup not my wiring , Erichos was kind enough to do a nice step by step for me back on page 124 to get them working....I would never have gotten past Step 4 to 5+6+7 (that is where I was stuck) , not by looking at the Wiki anyway. I few posts either side of that one may have more info too.
However my Rotary Encoder is direct to my Leonardo not through the 74HC165 SR which is setup for Rotary switches (not encoders which are digital)
The encoder feels still a bit unresponsive if turned to slow or to fast, but however - using a encoder is not the most significant for my project.
Actually i'm looking for a ministick that doesn't move in a circle but instead in a squared window. Imagine the red line on this pic as the cutout.
The usual gamepad like ministicks are all moving in a circle, which results in reduced max deflection values on X and Y axes, when moving the stick diagonal. Thats really bad for a strafing stick (i want to use the controller in Star Citizen). Does anybody know, if such kind of ministick i'm looking for, is somewhere available at all?
Btw - here are some Pics of my Project. http://imgur.com/a/RgFJd It's planned as a expansion for my dual stick + rudderpedals setup.