@Dragu I did not fully understood your schematic, i already bought the relay and now I'm planning on getting the PCB to create the interface. I believe i understood the philosophy behind. Basically you insert one token and it flags on both encoders. But in that scenario 1 coin gives always two credits. So if this thinking is correct you would be fine to use @tong-man solution with a split wire at the end, so I can connect to both GPIO pins, no?
Posts made by IvoLourenco
-
RE: Coin Acceptor with RecalBox
-
RE: Coin Acceptor with RecalBox
Hello @tong-man, i noticed that the link mentioned above was developed by you and reference on your youtube channel. I noticed that your bartop as two players. So my question is: When you insert a coin your credits are assumed as 'general credits' and both players can take them?
Thanks in advance for the support.
-
RE: Coin Acceptor with RecalBox
@kjbstar Thanks for the input. I´m afraid there is no way to use a single coin acceptor to replace both buttons. If there is any other information that someone can have will be welcome.
-
Coin Acceptor with RecalBox
Gents,
I’m building a arcade table using Recalbox. My system is fully working. I was thinking on adding a coin acceptor to it for fun. But I could not found any thread on this matter. (Inlight me if already exist)
The current setup has two players and uses a two independent buttons for insert coin on each player. What I want is to replace this buttons by a single coin acceptor?
I know that is possible with retropie in parallel with a zero delay card. However, I want to connect it through GPIO. Probably I would need to have an independent energy source as it is 12v.
Thanks in advance for the support.
Ivo
-
RE: GPIO joystick and buttons issue
@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.
-
RE: GPIO joystick and buttons issue
@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
-
RE: GPIO joystick and buttons issue
@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.
-
RE: GPIO joystick and buttons issue
@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..
-
RE: GPIO joystick and buttons issue
@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.
-
RE: GPIO joystick and buttons issue
@Substring Page not found (404) - Below.
Page not found (404)
Request Method: GET
Request URL: http://recalbox/help
Using the URLconf defined in project.urls, Django tried these URL patterns, in this order:
^media/(?P<path>.)$
^500/$
^404/$
^static/(?P<path>.)$
^ ^$ [name='home']
^ ^bios/$ [name='bios']
^ ^bios/upload$ [name='bios-upload']
^ ^config/$ [name='config']
^ ^monitoring/$ [name='monitoring']
^ ^logs/$ [name='logs']
^ ^systems/$ [name='roms-systems']
^ ^systems/roms/(?P<system>\w+)/$ [name='roms-list']
^ ^systems/roms/(?P<system>\w+)/upload/$ [name='roms-upload']
The current URL, help, didn't match any of these.
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page. -
RE: GPIO joystick and buttons issue
@substring after some more testing this occur within Neo Geo, Name, PlayStation. I can play some games of Nintendo not all.
Support Archive is a separate topic? (Sorry for the noob questions)
-
RE: GPIO joystick and buttons issue
@substring so I setup my buttons, initiate a game. And then when I have a game loaded at the insert coin (metal slug) or 1 player game (mario) there is no response from any button. I do not have an hot key specific button.
I tried once again to remap my buttons but it does not work as mentioned above.all the wiring is ok as per schematic.
Any thoughts?
-
RE: GPIO joystick and buttons issue
@substring yes basically none work after A is assigned.
How could P1 or P2 affect that? I’m using the GPIO layout proposed within the wiki.
Is there a way within evtest to understand that the button is assigned to the correct GPIO pin?
-
RE: GPIO joystick and buttons issue
@substring so this what i do:
-
Main Menu/ Controller Settings
-
2 Gamepads detected (picture below)
-
Press A and start the configuration (joystick configured - Picture below)
- A button configured as Button 1 and after this none of the others are recognised.
-
-
RE: GPIO joystick and buttons issue
@substring going to start drilling the button now!
I just noticed that when i push up it goes down... so may be there is a issue on the setup of wiring.
However, I did a run on remapping but it still does not recognise after A button
Thanks
-
RE: GPIO joystick and buttons issue
@Substring All buttons responding. Seems incorrectly setup though. Shall I remap them?
And what have i done... with the commands you suggested?
# lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"! lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"! lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"! ERROR - tried to write to log file before it was open! The following won't be logged: # cp /recalbox/share_init/system/.emulations/es_input.cfg ~/ cp: can't stat '/recalbox/share_init/system/.emulations/es_input.cfg': No such file or directory # cp /recalbox/share_init/system/.emulationstation/es_input.cfg ~/.emulationstation # /etc/init.d/S31emulationstation start # lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"! lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"! lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"! lvl0: System "favorites" is missing name, path, extension, or command! lo IP Address 127.0.0.1 eth0 IP Address 169.254.119.52 curl: (6) Couldn't resolve host 'recaleur-archive-prod.recalbox.com' ============================================== ==============================================
-
RE: GPIO joystick and buttons issue
@Substring sorry for that, output below.
"""# /etc/init.d/S31emulationstation stop
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"!
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"!
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"!
ERROR - tried to write to log file before it was open! The following won't be logged:
lvlERROR - tried to write to log file before it was open! The following won't be logged:cp /recalbox/share_init/system/.emulations
BusyBox v1.25.1 (2017-10-12 19:45:17 UTC) multi-call binary.
Usage: cp [OPTIONS] SOURCE... DEST
Copy SOURCE(s) to DEST
-a Same as -dpR -R,-r Recurse -d,-P Preserve symlinks (default if -R) -L Follow all symlinks -H Follow symlinks on command line -p Preserve file attributes if possible -f Overwrite -i Prompt before overwrite -l,-s Create (sym)links -u Copy only newer files
/etc/init.d/S31emulationstation start
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"!
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"!
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"!
lvl0: System "favorites" is missing name, path, extension, or command!
lo IP Address 127.0.0.1
eth0 IP Address 169.254.119.52
curl: (6) Couldn't resolve host 'recaleur-archive-prod.recalbox.com'""" -
RE: GPIO joystick and buttons issue
@Substring see the outup of those commands:
""" # /etc/init.d/S31emulationstation stop
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"!
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"!
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"!
ERROR - tried to write to log file before it was open! The following won't be logged:
lvlERROR - tried to write to log file before it was open! The following won't be logged:cp /recalbox/share_init/system/.emulatoions
BusyBox v1.25.1 (2017-10-12 19:45:17 UTC) multi-call binary.
Usage: cp [OPTIONS] SOURCE... DEST
Copy SOURCE(s) to DEST
-a Same as -dpR -R,-r Recurse -d,-P Preserve symlinks (default if -R) -L Follow all symlinks -H Follow symlinks on command line -p Preserve file attributes if possible -f Overwrite -i Prompt before overwrite -l,-s Create (sym)links -u Copy only newer files
/etc/init.d/S31emulationstation start
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/amstradcpc/gamelist.xml"!
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/gba/gamelist.xml"!
lvl0: Could not find <gameList> node in gamelist "/recalbox/share/roms/snes/gamelist.xml"!
lvl0: System "favorites" is missing name, path, extension, or command!
lo IP Address 127.0.0.1
eth0 IP Address 169.254.119.52
curl: (6) Couldn't resolve host 'recaleur-archive-prod.recalbox.com'' """Note: The joystick works withing the recalbox. But none the button work still.
-
RE: GPIO joystick and buttons issue
@Substring output from the evtest below.
Sequence was: js up; js down; js left; js right; B; A; TR; TL; X; Y; Start; Select.So i would imagine that all the setup is ok. However, within the Recalbox is not detected.
I have a daisy chain ground that runs on all the buttons and is connected to the GPIO 6 any potential issue with that?"""No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: NOVATEK USB Keyboard
/dev/input/event1: NOVATEK USB Keyboard
/dev/input/event2: GPIO Controller 1
/dev/input/event3: GPIO Controller 2
Select the device event number [0-3]: 2
Input driver version is 1.0.1
Input device ID: bus 0x15 vendor 0x1 product 0x1 version 0x100
Input device name: "GPIO Controller 1"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 304 (BTN_SOUTH)
Event code 305 (BTN_EAST)
Event code 307 (BTN_NORTH)
Event code 308 (BTN_WEST)
Event code 310 (BTN_TL)
Event code 311 (BTN_TR)
Event code 314 (BTN_SELECT)
Event code 315 (BTN_START)
Event code 316 (BTN_MODE)
Event type 3 (EV_ABS)
Event code 0 (ABS_X)
Value 0
Min -1
Max 1
Event code 1 (ABS_Y)
Value 0
Min -1
Max 1
Properties:
Testing ... (interrupt to exit)
Event: time 315536585.570709, type 3 (EV_ABS), code 1 (ABS_Y), value 1
Event: time 315536585.570709, -------------- SYN_REPORT ------------
Event: time 315536585.780727, type 3 (EV_ABS), code 1 (ABS_Y), value 0
Event: time 315536585.780727, -------------- SYN_REPORT ------------
Event: time 315536587.760702, type 3 (EV_ABS), code 1 (ABS_Y), value -1
Event: time 315536587.760702, -------------- SYN_REPORT ------------
Event: time 315536587.970709, type 3 (EV_ABS), code 1 (ABS_Y), value 0
Event: time 315536587.970709, -------------- SYN_REPORT ------------
Event: time 315536589.990696, type 3 (EV_ABS), code 0 (ABS_X), value 1
Event: time 315536589.990696, -------------- SYN_REPORT ------------
Event: time 315536590.160719, type 3 (EV_ABS), code 0 (ABS_X), value 0
Event: time 315536590.160719, -------------- SYN_REPORT ------------
Event: time 315536591.750714, type 3 (EV_ABS), code 0 (ABS_X), value -1
Event: time 315536591.750714, -------------- SYN_REPORT ------------
Event: time 315536591.910707, type 3 (EV_ABS), code 0 (ABS_X), value 0
Event: time 315536591.910707, -------------- SYN_REPORT ------------
Event: time 315536598.760726, type 1 (EV_KEY), code 304 (BTN_SOUTH), value 0
Event: time 315536598.760726, -------------- SYN_REPORT ------------
Event: time 315536598.930715, type 1 (EV_KEY), code 304 (BTN_SOUTH), value 1
Event: time 315536598.930715, -------------- SYN_REPORT ------------
Event: time 315536603.350710, type 1 (EV_KEY), code 305 (BTN_EAST), value 0
Event: time 315536603.350710, -------------- SYN_REPORT ------------
Event: time 315536603.520718, type 1 (EV_KEY), code 305 (BTN_EAST), value 1
Event: time 315536603.520718, -------------- SYN_REPORT ------------
Event: time 315536686.300702, type 1 (EV_KEY), code 311 (BTN_TR), value 0
Event: time 315536686.300702, -------------- SYN_REPORT ------------
Event: time 315536686.500701, type 1 (EV_KEY), code 311 (BTN_TR), value 1
Event: time 315536686.500701, -------------- SYN_REPORT ------------
Event: time 315536692.130701, type 1 (EV_KEY), code 310 (BTN_TL), value 0
Event: time 315536692.130701, -------------- SYN_REPORT ------------
Event: time 315536692.330698, type 1 (EV_KEY), code 310 (BTN_TL), value 1
Event: time 315536692.330698, -------------- SYN_REPORT ------------
Event: time 315536702.220730, type 1 (EV_KEY), code 307 (BTN_NORTH), value 0
Event: time 315536702.220730, -------------- SYN_REPORT ------------
Event: time 315536702.430694, type 1 (EV_KEY), code 307 (BTN_NORTH), value 1
Event: time 315536702.430694, -------------- SYN_REPORT ------------
Event: time 315536709.500750, type 1 (EV_KEY), code 308 (BTN_WEST), value 0
Event: time 315536709.500750, -------------- SYN_REPORT ------------
Event: time 315536709.690705, type 1 (EV_KEY), code 308 (BTN_WEST), value 1
Event: time 315536709.690705, -------------- SYN_REPORT ------------
Event: time 315536714.390708, type 1 (EV_KEY), code 315 (BTN_START), value 0
Event: time 315536714.390708, -------------- SYN_REPORT ------------
Event: time 315536714.570710, type 1 (EV_KEY), code 315 (BTN_START), value 1
Event: time 315536714.570710, -------------- SYN_REPORT ------------
Event: time 315536716.760701, type 1 (EV_KEY), code 314 (BTN_SELECT), value 0
Event: time 315536716.760701, -------------- SYN_REPORT ------------
Event: time 315536716.940702, type 1 (EV_KEY), code 314 (BTN_SELECT), value 1
Event: time 315536716.940702, -------------- SYN_REPORT ------------""" -
RE: GPIO joystick and buttons issue
@Substring so i did a evtest GPIO detected as within recalbox. All buttons worked (how can i save the log of events to share with you?)
I even did a wiring direct to the GPIO for individual buttons to remove the wiring possibility (e.g daisy chain ground).
Any other ideia?