Solved Recallbox on/off button
-
Read my post above...
To be sure that it'll work with a momentary switch, juste edit the script file.
-
@supernature2k Thank you so very much have made the recommended changes as per your suggestion.
with this particular raspberry I am now having an issue where recalbox spontaneously goes in to a constant rebooting cycle, if I unplug it a while and plug it back in it boots up just fine, have not tested on second raspberry Pi yet, could this have anything to do with scripts ?
one other matter I would like to inquire if you are interested in, I believe Through One of my arcade machines has a BETABRITE LED sign built in to the top of it... many years ago I worked with Mr. Carlos Santillon whom was one of the coders for DOS based Mame frontend called "ArcadeOS" and he built code in to ArcadeOS so it could send data through the serial port and display on the BETATEBRITE the name of the game being played, would this be possible directly form the GPIO of the raspberry Pi and if so, would you be interested In helping code it?
thank you again for all your help
-
Hi, the strange behavior may come from the script. Check if your button is sending false signals.
For the brite thingy, it may be possible to retrieve the game name from configgen then python something to the GPIOs but I have no idea how nor time to look at it.
-
@supernature2k Thank you so very much for all your help, rebooting was an issue with the power supply, everything else is working to perfection.
-
@netcat Just spent the past 8 hours documenting this process step by step form beginning to end including hardware and software installation, based on my experience in the process and the very helpful guidance I have received from @supernature2k and others here which was absolutely critical in getting this to work.
if anyone is interested I have published it off my website.
http://www.780tech.com/recalbox/
p.s. it has pretty photos so you cant go wrong.
-
This is a very good tuto you made!
Only problem is I think you made a mistake on the GPIO diagram. Your Reset bouton ground goes to pin 4, should be pin 6.@Global-Moderators we should pin it somewhere
-
@netcat just read your tutorial, nice step-by-step guide. Though i like when people try to reach the web manager through http://recalbox/ or http://recalbox.local for mac/linux
for your BETATEBRITE thing, of course it's possible. You'd need to know a little python, and most of all, how to send data to your betatebrite
@supernature2k could have eventually been pinned if it was written as a forum post
-
great stuff, i will modify my pitendo with 2 new buttons
-
@supernature2k Thank you, Correction made
-
@Substring Adding your preferred web page links to the article. Sadly last time I did any programming at all was a good 30 years ago... I will however offer to purchase (AND SHIP) A BetaBrite sign to the first participant willing to write the code in to Recalbox and Beta test it.
-
@Substring Can you please check out revised version of Diagram, I am prone to doing stupid mistakes this week, I believe it is all good now.
Thank you
-
-
@netcat first i'd need some documentation or at least some code examples on how to send data to the betabrite, whether a specific driver has to be added to the os first or it works straight like usb.
-
@Substring although nowadays there are Betabrites that attach directly to the USB port, they are exceedingly difficult to come by, your classic Betabrite sign will attach to a serial (COM port), which I believe can be emulated through the GPIO ? Many years ago a spent considerable time catching data form serial ports and figuring out how to send messages to Betabrite signs, even wrote a couple programs in Qbasic as I recall to accomplish this task, once correct strings were determined on how to send messages I forwarded this info to a number of people in the arcade community (much better programmers than myself) whom implemented it in various ways.
I will dig out the information, but the first question is does the raspberry Pi have means to communicate through standard Serial interface (Not USB) ?
HERE is my original program from 2005 designed to generate Individual ASCII files for each mame game (which were all placed in an LCD Directory and called upon before running each game)
CLS
PRINT ""
PRINT "* BETABRITE/MAME LCD FILE GENERATOR *"
PRINT ""
PRINT "* "
PRINT " Version: 1.0 "
PRINT " Author : Tony Jimenez "
PRINT " E-mail : Tony@780tech.com "
PRINT " *"
PRINT "*****************************************************************************"
PRINT
PRINT " Application MUST be run from INSIDE the MAME folder"
PRINT
PRINT " Would you like <D>ynamic sign or <S>tatic sign"1 a$ = INKEY$
IF a$ = "" THEN GOTO 1
IF UCASE$(a$) = "S" THEN GOSUB 4000 ELSE GOSUB 5000PRINT
PRINT " Making LCD Directory"
PRINT
PRINT " AN Extended Error 183 indicates the folder ALREADY exists"
PRINT
SHELL " MD LCD"
PRINT
PRINT ""
PRINT
PRINT " GENERATING GAMELIST.TXT"
PRINT
PRINT " A BAD COMMAND OR FILE NAME Error indicates you are NOT in MAME folder"
PRINT
SHELL "mame -listfull > gamelist.txt"
PRINT
PRINT ""item = 0
OPEN "GAMELIST.TXT" FOR INPUT AS #2: INPUT #2, text$
REM PRINT TEXT$
10
REM *****************
REM CYCLE BEGINS HERE
REM *****************LINE INPUT #2, text$
name$ = ""
FOR a = 1 TO LEN(text$)
IF MID$(text$, a, 1) <> " " THEN name$ = name$ + MID$(text$, a, 1) ELSE GOTO 1000
NEXT1000
desc$ = ""
a = a + 1
IF MID$(text$, a, 1) = " " THEN GOTO 1000
FOR b = (a + 1) TO (LEN(text$) - 1)
desc$ = desc$ + MID$(text$, b, 1)
NEXT
REM PRINT "Description : "; desc$name$ = "lcd" + name$ + ".lcd"
REM PRINT name$
OPEN name$ FOR OUTPUT AS #3
desc$ = PF$ + desc$ + SF$
PRINT #3, desc$CLOSE #3
item = item + 1
LOCATE 35, 3: PRINT "Processing Item #"; itemIF EOF(2) <> -1 THEN PRINT : GOTO 10
END
4000 REM STATIC SIGN
PF$ = CHR$(112)
PF$ = PF$ + CHR$(81)
PF$ = PF$ + CHR$(232)
PF$ = PF$ + CHR$(192)
PF$ = PF$ + CHR$(143)
PF$ = PF$ + CHR$(156)
PF$ = PF$ + CHR$(197)
PF$ = PF$ + CHR$(1)
PF$ = PF$ + CHR$(88)
PF$ = PF$ + CHR$(120)
PF$ = PF$ + CHR$(181)
PF$ = PF$ + CHR$(1)
PF$ = PF$ + CHR$(1)
PF$ = PF$ + CHR$(90)
PF$ = PF$ + CHR$(48)
PF$ = PF$ + CHR$(48)
PF$ = PF$ + CHR$(2)
PF$ = PF$ + CHR$(65)
PF$ = PF$ + CHR$(65)
PF$ = PF$ + CHR$(27)
PF$ = PF$ + CHR$(32)
PF$ = PF$ + CHR$(98)SF$ = CHR$(4)
RETURN5000 REM DYNAMIC SIGN
PF$ = CHR$(112)
PF$ = PF$ + CHR$(81)
PF$ = PF$ + CHR$(232)
PF$ = PF$ + CHR$(192)
PF$ = PF$ + CHR$(143)
PF$ = PF$ + CHR$(156)
PF$ = PF$ + CHR$(197)
PF$ = PF$ + CHR$(1)
PF$ = PF$ + CHR$(88)
PF$ = PF$ + CHR$(120)
PF$ = PF$ + CHR$(181)
PF$ = PF$ + CHR$(1)
PF$ = PF$ + CHR$(1)
PF$ = PF$ + CHR$(90)
PF$ = PF$ + CHR$(48)
PF$ = PF$ + CHR$(48)
PF$ = PF$ + CHR$(2)
PF$ = PF$ + CHR$(65)
PF$ = PF$ + CHR$(65)SF$ = CHR$(4)
SF$ = SF$ + CHR$(114)
SF$ = SF$ + CHR$(14)
SF$ = SF$ + CHR$(64)
SF$ = SF$ + CHR$(27)
SF$ = SF$ + CHR$(8)
RETURN -
@Substring This is the Diagram I put together back then on how to interface through the serial port
-
@netcat there are some usb cables to emulate a good old serial com, so that would be the best start
Googling "betabrite python" shows some people already did the job in python, so i guess it could be not that hard, if all planets align perfectly
-
@supernature2k HAte to continue sounding dumb but in this site I have no idea how to make a new post, I believe originally I replied to a previously made post ?
-
@Substring quite a bit of articles talking about adding a standard serial port to your Pi
Only concern is it looks like it yses some if not all of the same pins as the power/reset buttons and LED
http://www.davidhunt.ie/add-a-9-pin-serial-port-to-your-raspberry-pi-in-10-minutes/
-
@netcat and i still believe some "usb rs232" cable is the easiest way to go
-
@Substring I am certainly ok with this option