Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
#4519529 - 05/04/20 09:23 PM MMJoy2 Button and switch matrix  
Joined: Aug 2016
Posts: 4
kutayxx Offline
Junior Member
kutayxx  Offline
Junior Member

Joined: Aug 2016
Posts: 4
Hi, im tryin gto build a diy throttle setup with arduino and mmjoy2. I have several 5-way tactile buttons, toggle switches and regular buttons. I cant solve how to connect them as a matrix. There is a connection scheme on mmjoy's page. But there is no scheme for an on-on-on toggle switch. A regular button connects like = row side with diode,and other side goes to another buttons column pin. But how should i connect a toggle switch? Should i connect its 2 outer pins with diodes or just center row pin with a diode? also i cant even sure its outer 2 pin is row or column. Also im not sure about how to connect diodes' poles.

Inline advert (2nd and 3rd post)

#4519671 - 05/05/20 04:05 PM Re: MMJoy2 Button and switch matrix [Re: kutayxx]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
For ON-OFF-ON (SPDT) switch:

[Linked Image]
[Linked Image]



For ON-ON-ON switch I don't know, but think depends on type:

http://1.bp.blogspot.com/-42QKA2JlTKE/UAvMDJi2oNI/AAAAAAAAAdQ/lpU3uzDW6Rg/s640/DPDT_switches.jpg
http://hermeticoguitar.blogspot.com/2012/07/wiring-diy-part-03.html

Try combine this ON-ON-ON schemes with above diode matrix examples.

#4519746 - 05/06/20 12:52 AM Re: MMJoy2 Button and switch matrix [Re: kutayxx]  
Joined: Aug 2016
Posts: 4
kutayxx Offline
Junior Member
kutayxx  Offline
Junior Member

Joined: Aug 2016
Posts: 4
Ok, thanks for reply. Apparently its working if i put a diode to every switch or button's row cable. And its interesting that i have different model of diodes and i connect them as opposite of your scheme and it worked. Their lines(stripes) close to board. Also i modified my on-off-on switches so they act like an on-on-on switch. They have 4 cables each, 1 of row and 3 columns. They have 3 positions and in every single position they give different button press. And i put a diode to row side. I have 3 navigation buttons. Each of them have 5 inner buttons. Left right up down and middle. They have a single common pin. And i use that common a a row and put a single diode to it. So every 5-way nav button has only 1 diode. They worked that way idk why. And again, i wired the diodes opposite. I have 3 more nav buttons to wire so maybe they will start to not working again when i wired them. I will give updates again

#4519828 - 05/06/20 01:44 PM Re: MMJoy2 Button and switch matrix [Re: kutayxx]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
If I understand correctly you are using BU0836 matrix scheme, diodes after buttons and pointed to ROW and board:

https://www.leobodnar.com/products/BU0836/6x6.png

What matters is don't have "ghost" buttons press when more than 3 buttons/switches are pressed.

Can you post a drawing of scheme for make ON-OFF-ON work as ON-ON-ON?

#4520015 - 05/07/20 03:12 PM Re: MMJoy2 Button and switch matrix [Re: kutayxx]  
Joined: Aug 2016
Posts: 4
kutayxx Offline
Junior Member
kutayxx  Offline
Junior Member

Joined: Aug 2016
Posts: 4

Last edited by kutayxx; 05/07/20 03:13 PM.
#4520349 - 05/10/20 02:50 PM Re: MMJoy2 Button and switch matrix [Re: kutayxx]  
Joined: Nov 2001
Posts: 3,955
Sokol1 Offline
Senior Member
Sokol1  Offline
Senior Member

Joined: Nov 2001
Posts: 3,955
Internet
Thank you. thumbsup


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