RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Coin Operated "wake up" button for classroom use

    Scheduled Pinned Locked Moved Ideas and Development
    coin acceptorcoin buttontimercoin-opscoin
    7 Posts 3 Posters 803 Views
    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.
    • P
      Piercery
      last edited by

      So I am a high school teacher, teaching video game design. I've built an arcade cabinet with the RP4 that has a bunch of SNES and N64 games on it. When the arcade is not touched for 2 minutes, the screensaver mode comes on and plays trailers for all of the games on the system.

      The Need: I would like to be able to give out tokens in my class for incentives that would make the arcade playable for a set duration of time (or even just until it enters screensaver mode again)

      Possible solution: I know that typically, the coin acceptor is set up to press the "select" button when a coin is inserted. What I was wondering is, is there a way to make only a specific button capable of waking up the arcade from the screensaver?

      Ideal world, like I said, would be making it a specific time allotment for each press of the button. But even just having the screensaver work as a lock screen would be a start.

      Also, I've attached some pics of the arcade just for context (and because I'm proud of it)
      Arcade 1
      Arcade 2

      Any help would be much appreciated!
      Thanks, guys!

      1 Reply Last reply Reply Quote 1
      • mituM
        mitu Global Moderator
        last edited by

        Nice unit !

        Possible solution: I know that typically, the coin acceptor is set up to press the "select" button when a coin is inserted. What I was wondering is, is there a way to make only a specific button capable of waking up the arcade from the screensaver?

        You could leverage the scripting available in EmulationStation and run a script when the screensaver starts (disabling the input). Enabling the inputs would work only when the coin acceptor script runs, but I'm not sure if there's a script attached to it or it's just a simple input (in which case this approach won't work).

        P 1 Reply Last reply Reply Quote 0
        • P
          Piercery @mitu
          last edited by

          @mitu Hey thank you!

          I appreciate the idea! Unfortunately, I'm fairly certain that the coin acceptor works only as a simple input. Idk if maybe I can try setting it up to a specific button press that is not bined to any of the buttons up top? But I would still need to be able to tell the system to disable controls "until XYZ button is pressed". My scripting abilities are also pretty novice when it comes to emulation station. So if anything comes to mind on how to make this work, any resources would be greatly appreciated as well!

          Thanks, again! Appreciate the feedback!

          1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator
            last edited by

            Oh, I forgot to add the link to the scripting docs - https://retropie.org.uk/docs/EmulationStation/#scripting.

            P 1 Reply Last reply Reply Quote 0
            • LolonoisL
              Lolonois
              last edited by

              From the distance some ideas:
              Never tried to replace the ~/.emulationstation/es_input.cfg while ES is runnning with a empty one or at least all button bindings removed (leaving only the Joystick-stubs) when the screensaver starts.

              For unlocking the ES you could run triggerhappy [1] and run a script that does the reverse from above. This script could also launch another script which runs x minutes (e.g. see man sleep on the Pi terminal), after inserting the token/coin to block the input again.

              AFAIK there is no option to show an overlay how much time is remaining when a emulator/game is running.

              HTH

              [1] https://github.com/wertarbyte/triggerhappy

              PS: Awesome build, very clean finish (esp. I like the glowing LED bottom light). You may consider posting it in the "Projects and Themes" section for some Retro karma. :)

              P 1 Reply Last reply Reply Quote 0
              • P
                Piercery @mitu
                last edited by

                @mitu Thank you for this! Very helpful!

                1 Reply Last reply Reply Quote 0
                • P
                  Piercery @Lolonois
                  last edited by

                  @lolonois This is all great info! Now I just need to see if I have the skills to implement it all! But thank you so much for the help!

                  And thanks! I'll be sure to add it to the "Projects and Themes"!

                  Thanks again for the ideas! Script stuff is definitely over my head but this all at least gives me a jumping off point to know what i'm trying to do!

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                  Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.