Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Solved Recallbox on/off button

    GamePad/GPIO/USB encoder
    on off button
    5
    35
    13570
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • netcat
      netcat @supernature2k last edited by

      @supernature2k tried it.. it does nothing.

      did you look at my diagram ?

      Http://www.780tech.com/rbox.jpg

      that is EXACTLY how I have it wired. also if I plug the LED in to pin 1 (3v) and any ground.. than the led DOES turn on...

      I am completely baffled

      netcat 1 Reply Last reply Reply Quote 0
      • netcat
        netcat @netcat last edited by

        @netcat Upon reading your last reply, and learning that the script was indeed running, and remembering

        "Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth."

        Let me start by publicly apologizing to you and everyone in the community for waiting their valuable time, I am officially an imbecile and upon disassembly and inspection realized I was reading the GPIO UPSIDE DOWN .. not sure how I could be so stupid to do ir the right way when testing the LED on Pin 1 (3 Volts) and then assembling it in to my box backwards (and then do it again the second time around)

        but the truth must be told..

        I WAS THE GREMLIN, all failures were do to my inability to recognize PIN 1 when assembling the raspberry in to the box.

        it is working now perfectly.

        I very humbly request you please forgive me for my ineptitude.

        supernature2k 1 Reply Last reply Reply Quote 0
        • supernature2k
          supernature2k @netcat last edited by

          @netcat

          OMG!

          I thought about this and told myself "that's not possible, the guy made this diagram with the square upper left..."

          Well, we all have been dumb one time when it comes to electronics 😉

          Now the last thing you need to do is to modify the 356pin script as I showed you and you can use your 2 momentary buttons + LED and enjoy 😉

          Pi powered NES | Gameboy HD | RecalStation | RecalDrive
          Upvote messages if it has been useful ;)

          netcat 1 Reply Last reply Reply Quote 0
          • netcat
            netcat @supernature2k last edited by

            @supernature2k in my country "Costa Rica" tgey have a saying

            "Al mejor mono se le cae el zapote"

            = even tge best monkey drops his zapote sometimes

            (Zapote... = some kind of fruit minkeys semingly like)

            Thank you again for your patience and suppirt

            One more onquiry with 567 script does power button have to ve on/off or can i use tge pushbutton i have in place?

            supernature2k 1 Reply Last reply Reply Quote 0
            • supernature2k
              supernature2k @netcat last edited by

              @netcat

              Read my post above...

              To be sure that it'll work with a momentary switch, juste edit the script file.

              Pi powered NES | Gameboy HD | RecalStation | RecalDrive
              Upvote messages if it has been useful ;)

              netcat 1 Reply Last reply Reply Quote 0
              • netcat
                netcat @supernature2k last edited by

                @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

                supernature2k 1 Reply Last reply Reply Quote 0
                • supernature2k
                  supernature2k @netcat last edited by

                  @netcat

                  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.

                  Pi powered NES | Gameboy HD | RecalStation | RecalDrive
                  Upvote messages if it has been useful ;)

                  netcat 1 Reply Last reply Reply Quote 0
                  • netcat
                    netcat @supernature2k last edited by

                    @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 1 Reply Last reply Reply Quote 0
                    • netcat
                      netcat @netcat last edited by

                      @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.

                      🙂

                      supernature2k Substring 2 Replies Last reply Reply Quote 1
                      • supernature2k
                        supernature2k @netcat last edited by

                        @netcat

                        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

                        Pi powered NES | Gameboy HD | RecalStation | RecalDrive
                        Upvote messages if it has been useful ;)

                        netcat 1 Reply Last reply Reply Quote 0
                        • Substring
                          Substring @netcat last edited by Substring

                          @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

                          Former dev - Please reply with @substring so that i am notified when you answer me
                          Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                          netcat 2 Replies Last reply Reply Quote 0
                          • ian57
                            ian57 Staff last edited by

                            great stuff, i will modify my pitendo with 2 new buttons

                            "UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity." Dennis Ritchie

                            1 Reply Last reply Reply Quote 0
                            • netcat
                              netcat @supernature2k last edited by

                              @supernature2k Thank you, Correction made

                              1 Reply Last reply Reply Quote 0
                              • netcat
                                netcat @Substring last edited by

                                @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.

                                1 Reply Last reply Reply Quote 0
                                • netcat
                                  netcat @Substring last edited by

                                  @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

                                  supernature2k Substring 2 Replies Last reply Reply Quote 0
                                  • supernature2k
                                    supernature2k @netcat last edited by

                                    @netcat

                                    Yep, all good now.

                                    Please make a new post in the correct section so we can pin it!

                                    Pi powered NES | Gameboy HD | RecalStation | RecalDrive
                                    Upvote messages if it has been useful ;)

                                    netcat 1 Reply Last reply Reply Quote 0
                                    • Substring
                                      Substring @netcat last edited by

                                      @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.

                                      Former dev - Please reply with @substring so that i am notified when you answer me
                                      Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                                      netcat 2 Replies Last reply Reply Quote 0
                                      • netcat
                                        netcat @Substring last edited by

                                        @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 5000

                                        PRINT
                                        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
                                        NEXT

                                        1000

                                        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 #"; item

                                        IF 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)
                                        RETURN

                                        5000 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

                                        1 Reply Last reply Reply Quote 0
                                        • netcat
                                          netcat @Substring last edited by

                                          @Substring This is the Diagram I put together back then on how to interface through the serial port

                                          http://www.780tech.com/betabrite.GIF

                                          Substring 1 Reply Last reply Reply Quote 0
                                          • Substring
                                            Substring @netcat last edited by

                                            @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 😉

                                            Former dev - Please reply with @substring so that i am notified when you answer me
                                            Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                                            netcat 1 Reply Last reply Reply Quote -1
                                            • First post
                                              Last post

                                            Want to support us ?

                                            79
                                            Online

                                            99.6k
                                            Users

                                            28.1k
                                            Topics

                                            187.1k
                                            Posts

                                            Copyright © 2021 recalbox.com