GPIO joystick and buttons issue
-
@ivolourenco which recalbox version do you have ? Don't tell me you're still on 4.0 ?
-
@substring was 4.0 because I could not found roms... so i was using a compile file to try some games.
Changed to the 4.1 and did the support archive, same problems regarding the mapping. (https://file.ac/DaGZwV_MA-U/)
Can we discuss roms subjec on Kiwi IRC? Let me know when suits you.
-
@ivolourenco errrr ... Tomorrow (10th of November) 9pm CETi should be on IRC
I still believe in a wiring problem ...
-
@substring as i will travelling home at that time can we make it sat**day (11th)? Or sunday.
Wiring you mean positioning within the GPIO? If that would be the case we still would have the response when mapping. And the problem is that some of the games work and the buttons work..
-
@Substring i'm still troubleshooting the system there are the following situations occuring:
- Mega drive - I need to use a conbination of 2 buttons to do what we would do with a single button on a normal pad. (e.g. Street of rage - to punch i need to : hold B + A.)
- SNES - When i push a button the action keeps going (e.g. Bomberman, when i place a bomb. As soon it explode it automatically set a new bom without pushing a button)
This occurs on DOOM as well if i fire a shoot it continue firing util is out of bullets. - Neo Geo it goes to the game, blue screen it returns without working.
-
@ivolourenco i can't this weekend
And I do believe it's a wiring problem (or maybe a bad configuration on your side) because you're the only one having that problem so far ...
-
@substring : I have exactly the same problem (And I'm french too, don't know if there is some relation). evtest work with each button (and code is the good one for each: Left, North, Right, west, south, east, start and select).
In recalbox menu, I can navigate with joystick without any problem.
When I go to joystick setup, I use any of my button to select player control and it detect GPIO 1. I can set axis without any problem but program stop to detect button after the first is pressed.For example: If the first button pressed is X, I can't set others, but X works.
If the first button pressed is Y, I can't set others, but Y works.It's like button detection stop just after a first button is pressed.
I look for a while on internet before finding this thread. May this is the reason of the few number of report of this thread.
If you have any idea
-
@dclairac hi
First of all : you shouldn't even have to reconfigure your stick in ES as it's preconfigured.Now what surprises me is that es detects only 1 controller wheres you're supposed to have 2 (unless you changed it in recalbox.conf). And you said that whichever button you pressed, it's always GPIO1 being enabled ? Even if you press a button from player 2 ?
-
@Substring : Got It (and I think @IvoLourenco have the same, based on it's evtest).
First of all, I have 2 GPIO (just I was trying to configure first).You were right, it's a wiring problem (or missing doc for buttons). I had my doubts when I tried to go to Doom. The fire button shoot permanently (as if button stay pushed). I looked again evtest very carefully, and I see that when I press a key, I have the 0 line and then the 1 (So the signal is at 1 and goes to 0 when I press what is the opposite of what should happen - same as @IvoLourenco).
My switches have 1 earth terminal (large side) and 2 contact terminals (small side). I wrongly thought that it was the same thing (no manufacturer's doc) but I just tested with the multimeter and they are 2 inverted contactors (one makes contact when I press, the other makes contact permanently). As a result, the simple act of switching from one terminal to another helped me solve the problem.
In the interface, I think that as soon as you press the button, it's as if you were held down permanently, which of course doesn't work.
Once the wiring was redone, I did a reset of the configuration as you indicated and everything works fine.
Maybe we can add this case in the FAQ and specify that in evtest, we must have:
Press -> 1, release -> 0 and not Press -> 0, release -> 1.Hope it will help.
-
@dclairac thanks for the support.
And apologize for the late answer but as I work offshore no access to the normal world.So basically we have just to test with a multimeter and understand the impulse constant or partial.
I never used the multimeter, read a bit and understand that if we set it up incorrectly we may end up burn it. Can you let me know the setup used and the test performed?
Regards
Ivo
-
@DCLAIRAC Ignore the above is sorted the wiring will test and post my feedback. Is much simpler than both of us thought I believe, if we understand the micro switch schematic NC (normal closed) vs NO (normal open)tells you everything.