Braeden108 Posted April 16, 2017 Posted April 16, 2017 Hello chaps! Is it possible with MMJoy to have a button that's not part of a matrix with MMJoy? There is a matrix already on the board but I'd like a button separate from that matrix for electrical reasons. I have plenty of ports left on my arduino. Light the tires kick the fires! [sIGPIC][/sIGPIC]
debolestis Posted April 16, 2017 Posted April 16, 2017 Just extend matrix with one more row and connect your switch on it. - Debolestis' Shapeways store - Debolestis' Facebook page - Suncom SFS and Talon restoration and mods - Cougar replacement gimbal
Braeden108 Posted April 16, 2017 Author Posted April 16, 2017 That's not an option. Though I did try. I bought an encoded that shares a common ground with its pushbutton. This causes ghosting within the matrix. (I have divides installed) Light the tires kick the fires! [sIGPIC][/sIGPIC]
Sokol1_br Posted April 16, 2017 Posted April 16, 2017 (edited) So instead use a e.g. 6x6 matrix use a 5x5, and use the spared line and column for this button, but not sure if will avoid this ghost, this suggest something wrong in your actual matrix. This will reduce the buttons possibility, instead 36 will be 25 +1. Edited April 16, 2017 by Sokol1_br
debolestis Posted April 16, 2017 Posted April 16, 2017 That's not an option. Though I did try. I bought an encoded that shares a common ground with its pushbutton. This causes ghosting within the matrix. (I have divides installed) What is model of this encoder? Do you have 3 diodes on it? What type of matrix do you use? 6x6? - Debolestis' Shapeways store - Debolestis' Facebook page - Suncom SFS and Talon restoration and mods - Cougar replacement gimbal
Goblin Posted April 16, 2017 Posted April 16, 2017 And, the diodes for an encoder goes the other way, compared to buttons. I have no idea why! I was certain the picture in the MMJoy wiki was wrong, but it's not...I have tried ;)
Braeden108 Posted April 16, 2017 Author Posted April 16, 2017 I have these: EVE-VCGJL016B I have a 2x6 matrix. I added another row to make a 2x7 matrix. But I get the ghosting. There are diodes on the signal pins of all the encoder but not any of the grounds. And I have two diodes on the push button. One on both sides (more by accident than anything else) Light the tires kick the fires! [sIGPIC][/sIGPIC]
debolestis Posted April 16, 2017 Posted April 16, 2017 Did you try 3x6? - Debolestis' Shapeways store - Debolestis' Facebook page - Suncom SFS and Talon restoration and mods - Cougar replacement gimbal
debolestis Posted April 16, 2017 Posted April 16, 2017 Or why don't try shift registers, matrix is so much work and mess. - Debolestis' Shapeways store - Debolestis' Facebook page - Suncom SFS and Talon restoration and mods - Cougar replacement gimbal
Goblin Posted April 16, 2017 Posted April 16, 2017 Or why don't try shift registers, matrix is so much work and mess. Yeah! That's the truth... :)
Braeden108 Posted April 16, 2017 Author Posted April 16, 2017 Perhaps I can make the button an axis? Then assign a button to be pressed when the axis is full? This is the last issue in a 5 month project. I'd like a quick fix. Even if it's dirty. If it works, you wont care when you're in the air. Light the tires kick the fires! [sIGPIC][/sIGPIC]
Sokol1_br Posted April 16, 2017 Posted April 16, 2017 MmjoySetup allow set a axis to press a button - not wire a button in axis input. Using a axis input you need "fake" a potentiometer with resistors (see something in SimHQ topic, but don't remember exactly how).
debolestis Posted April 16, 2017 Posted April 16, 2017 Try to connect vcc and axis to switch, then set it up in mmjoy. If doesn't work try gnd and axis. - Debolestis' Shapeways store - Debolestis' Facebook page - Suncom SFS and Talon restoration and mods - Cougar replacement gimbal
Recommended Posts