Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
Page 78 of 112 1 2 76 77 78 79 80 111 112
#4373133 - 08/07/17 11:06 AM Re: MMJoy/MMjoy2 - Build your own USB controller ***** [Re: calagan57]  
Joined: Jul 2010
Posts: 74
Repvez Offline
Junior Member
Repvez  Offline
Junior Member

Joined: Jul 2010
Posts: 74
Yes, but it is hard to making at home like DIY. There should be a ready to use part like above rod eye bearing or what we can do with hand machine.

Inline advert (2nd and 3rd post)

#4373756 - 08/10/17 08:52 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: calagan57]  
Joined: May 2016
Posts: 36
TomVR Offline
Junior Member
TomVR  Offline
Junior Member

Joined: May 2016
Posts: 36
Looks really fantastic.

My T16000m mod has been on ice for over a year now because of how much of a headache it is. If you can get hall effect yaw working I'd love to swap out the original PCB and move it all to mmjoy2. I remember reading that the sensor can detect rotation axis as well, would be much better than the terrible pot in the stick now.

http://i.imgur.com/rpxuzlc.jpg

Last edited by TomVR; 08/10/17 08:53 PM.
#4373779 - 08/10/17 10:38 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
MLX90333 is called Triaxis "3D", see the labels X, Y, Z in upper part:

https://i.ebayimg.com/images/g/oqYAAOSwZVlXnHP9/s-l500.jpg

But in this implementation:

"The two (2) angular information are computed from the three (3) vector components of the flux density (i.e. BX, BY and BZ).
The MLX90333 reports two (2) linear output signals. The output formats are selectable between Analog, PWM and Serial Protocol."


Last edited by Sokol1; 08/10/17 10:45 PM.
#4374278 - 08/14/17 04:37 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
PCB's for (optional) use with Arduino PRO Micro: connections expansion board, PCB for TLE501x, for ADC MCP3208, for Shift Register CD4021B or 74HC165:

File in Sprint-Layout, can be printed with free Sprint-Layout Viewer.

https://forum.il2sturmovik.ru/uploads/monthly_08_2017/post-17384-0-06011100-1502699478.jpg
https://forum.il2sturmovik.ru/topic...t-dlya-samodelnogo-k/page-25#entry549253

The forum maybe require password - is the same from il2sturmovik.com.

Last edited by Sokol1; 08/14/17 04:39 PM.
#4375232 - 08/18/17 07:28 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2017
Posts: 17
rel4y Offline
Junior Member
rel4y  Offline
Junior Member

Joined: Jul 2017
Posts: 17
Hello!

I have a CH Combatstick Grip and want to connect it to my BRD Baur DS base via MMjoy2. The base already has two TLE5011 sensors connected for X and Y axis.

So now I have decoded the button matrix of the CH Combatstick and already bought some 74HC165 shift registers via AliExpress. It is possible to connect a button matrix to a shift register, correct? What about the 8 way POV hat, does it work via a shift register?

Furthermore is the 74HC165 layout Kbird posted definitely correct? http://SimHQ.com/forum/ubbthreads.p...uild-your-own-usb-controller#Post4362821

Thanks in advance guys!

#4375260 - 08/18/17 09:42 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
If you decode the Combatstick matrix is not need Shift register, and so just adapt CH connector, the one that goes in base PCB for MMjoy2 matrix, and speed the things.

If you opt to Shift Register (no technical advantage in use this instead matrix, but is more "elegant") will be need re-wire each button and HAT corner of CH grip to Shif Register PCB.

How decode the matrix:

Take a multimeter, set in continuity mode.

Put one tip in left pin of CH connect, press a button in grip (a 3rd/4rd hands will help a lot), now start probe the other pins of connector until find one that change multimeter readings. Take note of the pair and wires colors, e.g. 1 black + 5 orange = button 3.

This is the matrix scheme (5x rows/lines x 4 columns) for CH Fighterstick, I guess that for CH Combatstick is used 2 x 7 = 10 buttons + 4 POV HAT

https://s27.postimg.org/j2or5kzsz/CH_FS_matrix.jpg

Finding this combinations is just matter of make a connector, plugged in Arduino compatible with lines x columns you find in the CH connector.

If you don't have a multimeter can make a continuity test prob with one LED, resistor, battery and some wire.

Example:

[Linked Image]

http://www.electroschematics.com/8225/simple-led-tester/

http://www.brighthubengineering.com...ild-yourself-a-simple-continuity-tester/






#4375262 - 08/18/17 09:52 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: rel4y]  
Joined: Dec 2016
Posts: 454
Kb1rd1 Offline
Member
Kb1rd1  Offline
Member

Joined: Dec 2016
Posts: 454
Originally Posted by rel4y
Hello!

I have a CH Combatstick Grip and want to connect it to my BRD Baur DS base via MMjoy2. The base already has two TLE5011 sensors connected for X and Y axis.

So now I have decoded the button matrix of the CH Combatstick and already bought some 74HC165 shift registers via AliExpress. It is possible to connect a button matrix to a shift register, correct? What about the 8 way POV hat, does it work via a shift register?

Furthermore is the 74HC165 layout Kbird posted definitely correct? http://SimHQ.com/forum/ubbthreads.p...uild-your-own-usb-controller#Post4362821

Thanks in advance guys!


Hi rel4y , I can confirm they are working for me ....the updated PCB was to include some resistors that were left out , but were in earlier versions of MMjoy2 and MMjoy PCB designs.I was having (many) issues without them with keys pressing themselves at random and the Chips just stopping working in MMJoy2...was pretty frustrating till Erichos found the main issue ..the missing 10K resistor on the Data Trace.

I actually didn't make PCB's or Order Them for my SR Boards I made them using Prototype Board and just copying the traces from that PCB design. I also used Sockets for the Chips in case one ever burns out, so I can replace it easily. I used Sprint Viewer to look at the PCB designs and Print them , Sprint Demo doesn't allow Printing....

As for SR Boards and Button Matrixes ...it is one or the Other ... the SR replaces the need for button Matrixes but you can use both in One Stick . With Button Matrices you need to use 1N4148 Diodes as well so you don't get repeated Keys (ghosting) etc , Neither the Diodes or SR's are expensive enough to have to Order from AliExpress , which can take months in some cases...at least for me...

bit more info in the Wiki here in case you didn't see it yet too: https://github.com/MMjoy/mmjoy_en/w...-and-setting-up-software#shift-registers

Attached Files 2x165_SR PCB Board_ (3).jpg2x165_SR PCB Board_ (4).jpg2x165_SR PCB Board_ (5).jpg2x165_SR PCB Board_ (9).jpg

My FLCS+TQS Conversion here on SimHQ

http://simhq.com/forum/ubbthreads.php/topics/4324940/1
#4375274 - 08/18/17 11:19 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2017
Posts: 17
rel4y Offline
Junior Member
rel4y  Offline
Junior Member

Joined: Jul 2017
Posts: 17
Thanks for the quick answers!

I have already decoded the Combatstick matrix, it is a 4x4 matrix. rows = purple, grey, white, orange columns = green, brown, blue, red (POV)

The problem is the cable isnt long enough to directly connect it to a Promicro shield in the base, therefore I wanted to connect it to a shift register halfways and save some pins while Im at it. Now I understand it is either one or the other, which makes perfect sense looking at the wiring.

I will make a PCB for 24/32 buttons with resistor networks and upload it to OSH Park. I own Sprint layout 6, so I can use all the PCB files by megamozg and capitanblood etc.

Are the pull up 10K resistors for the serial Data inputs really required? What do they accomplish?

Last edited by rel4y; 08/18/17 11:46 PM.
#4375282 - 08/19/17 12:20 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Dec 2016
Posts: 454
Kb1rd1 Offline
Member
Kb1rd1  Offline
Member

Joined: Dec 2016
Posts: 454
Can you not just extend or replace the Handle Wires with longer ones? and run them all the way to the ProMicro ? I replaced many in my FLCS/TQS with longer ones , eg from an old Gameport Cable.

For me the R10K on Data is what stopped all my issues and when I checked older Revsions of the Firmware and the included PCB Layouts it was there....it was just bad luck I was using 2016-8-18 and followed the included Layout in that. But Why? is not something I can explain , perhaps and electronic expert like Erichos can....

KB

Last edited by Kbird; 08/19/17 12:26 AM.

My FLCS+TQS Conversion here on SimHQ

http://simhq.com/forum/ubbthreads.php/topics/4324940/1
#4375283 - 08/19/17 12:24 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Dec 2016
Posts: 454
Kb1rd1 Offline
Member
Kb1rd1  Offline
Member

Joined: Dec 2016
Posts: 454

You could check other firmware revisions and their PCB diagrams here ( russian I think ...use google translator if needed) :

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

KB

Last edited by Kbird; 08/19/17 12:25 AM.

My FLCS+TQS Conversion here on SimHQ

http://simhq.com/forum/ubbthreads.php/topics/4324940/1
#4375286 - 08/19/17 12:30 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: rel4y]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

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

The problem is the cable isnt long enough to directly connect it to a Promicro shield in the base,


Why not extend the cable coming from grip?

The matrix in Combatstick grip certainly have the diodes needed, so re-use this mean less work.

#4375291 - 08/19/17 01:07 AM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2017
Posts: 17
rel4y Offline
Junior Member
rel4y  Offline
Junior Member

Joined: Jul 2017
Posts: 17
Yes extending the wires would be the easiest and most logical solution. wink But now I am thinking about using a PS2 type connector between base and grip, so I can easily switch grips. I would like the CH Combatstick for modern stuff and a KG12 type for WWII.

Sergeype on the IL2 forums has posted a recent version of 74HC165 SR with resistor networks. The schematic differs a wee bit from the one posted here. He has done the GND - VCC decoupling C on input and output side, 10k Ohm pullup R on the last data input side and 10k Ohm pullup on the CS pin input side. I cant really make sense of this... :/

Thanks guys!

Edit: Ok, on his shield he also has DATA and CS pullup Rs before connecting them to the Pro Micro.

Attached Files SR_24B_74HC165.jpg
Last edited by rel4y; 08/19/17 01:25 AM.
#4375352 - 08/19/17 03:28 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
If you ask Debolestis he can draw a removable adapter - Cougar/Warthog style - for CH grips (he own some models), to be printed in Shapeways:

Similar to this for FCS: http://i.imgur.com/eZ0RDvT.jpg

https://www.shapeways.com/shops/debolestis

Their topic: https://forums.eagle.ru/showthread.php?t=160114&page=21

Using this adapters worth install a Shift Register PCB inside grip, because this reduce the number of wires to 5, necessary for use PS2 style connector.


Last edited by Sokol1; 08/19/17 04:03 PM.
#4375379 - 08/19/17 05:29 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Jul 2017
Posts: 17
rel4y Offline
Junior Member
rel4y  Offline
Junior Member

Joined: Jul 2017
Posts: 17
Thanks Sokol for pointing me in the right direction. You are an Encyclopedia for the DIY virpil community! biggrin

Originally Posted by Sokol1

Using this adapters worth install a Shift Register PCB inside grip, because this reduce the number of wires to 5, necessary for use PS2 style connector.


Yeah thats why I want to go with a shift register, I will go with a 24B SR layout so I can upgrade some of the buttons with 4 way hats later on.

I have CAD designed a fixed connector already and maybe I will try to modify that one first. I have the possibility to locally CNC the part from Aluminium which I would much prefer over 3D printing or SLS tbh.

But first I would need to source a metal Gardena nut to design around. All the links in Debolestis thread I have tested so far seem to be dead and I am not sure what I need exactly.

Edit: Nevermid I found the Gardena type: GARDENA 8167. Now I just need to wait till it arrives.

Attached Files BRD-DS_CH-CS_connector.jpg
Last edited by rel4y; 08/19/17 06:46 PM.
#4375746 - 08/21/17 09:09 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: rel4y]  
Joined: Jun 2014
Posts: 1
SergeyPe Offline
Junior Member
SergeyPe  Offline
Junior Member

Joined: Jun 2014
Posts: 1
Originally Posted by rel4y
He has done the GND - VCC decoupling C on input and output side, 10k Ohm pullup R on the last data input side and 10k Ohm pullup on the CS pin input side. I cant really make sense of this... :/
Ok, on his shield he also has DATA and CS pullup Rs before connecting them to the Pro Micro.

Well, an extra decoupling capacitior never hurts. 10K pullup resistor on the data input is needed to stop the input from hanging in the air (it's recommended both for 74HC165 and CD4021). All the other pullup resistors both on the shift register board and on the shield can be removed (except for the one on MISO line and the one on the "DTA" pin of the "SHIFT REG IN" connector on 16-, 32- and 48-button shields). I was using them while experimenting with very long leads to external register boards but actually it's an overkill.

Last edited by SergeyPe; 08/22/17 07:13 AM.
#4379731 - 09/15/17 12:34 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Sep 2017
Posts: 1
michaeldeconinck Offline
Junior Member
michaeldeconinck  Offline
Junior Member

Joined: Sep 2017
Posts: 1
Hi guys,

Has anyone here played a lot with the virtual axis option ?

I try to make an encoder mode a virtual axis, is it possible ?

What kind of parameters should i put for step of change ?

#4379922 - 09/16/17 09:41 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Michaeldeconinck

Seems the latest firmware version has bug with encoder as virtual axis, try with previous, how set the virtual axis.

[Linked Image]

Tip from IL2.ru forum.

#4379924 - 09/16/17 09:54 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: May 2016
Posts: 36
TomVR Offline
Junior Member
TomVR  Offline
Junior Member

Joined: May 2016
Posts: 36
Are Debolestis shift register pcb still the go to PCB design for setting up large amounts of inputs for mmjoy2?
https://www.oshpark.com/shared_projects/c4oJzdEo

#4379977 - 09/17/17 01:44 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: May 2016
Posts: 55
Forsaken_joystick Offline
Junior Member
Forsaken_joystick  Offline
Junior Member

Joined: May 2016
Posts: 55
Argentina
Hello Sokol1 is that thing you're showing us in your last post a way to make an axis with encoders?

Last edited by Forsaken_joystick; 09/17/17 02:27 PM.
#4379986 - 09/17/17 03:58 PM Re: MMJoy/MMjoy2 - Build your own USB controller [Re: Sokol1]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Yes, a "virtual" axis using encoders inputs.

Page 78 of 112 1 2 76 77 78 79 80 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
CD WOFF
by Britisheh. 03/28/24 08:05 PM
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
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0