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

    Reset Button with ControlBlock?

    Scheduled Pinned Locked Moved ControlBlock, PowerBlock & Co.
    19 Posts 7 Posters 5.9k 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.
    • detolaD
      detola
      last edited by detola

      Hi there, i am the new guitar in town ;)

      so right now i am working on another of these NES Mods.... what I want to be working from the Original:
      The Power button - I understand that PowerBlock an Control Block can both help me with that.
      The Controller Ports - I need ControlBlock for that.
      The Reset Button - I know Powerblock can do it... but can ControlBlock?

      so i realy don't want to use both of them just for the Reset button... if ControlBlock can't manage this function, is there another way around this?

      thanks a lot... as for a lot of people its my first serious Raspberry Project.... so please talk slow ;)

      obsidianspiderO 1 Reply Last reply Reply Quote 0
      • obsidianspiderO
        obsidianspider @detola
        last edited by

        @detola

        What do you want the reset button to do? Reboot the Pi? I ended up choosing a Mausberry Circuit for my build to do power and LED. I don't think I'll use it for resetting, but it can do that too.

        📷 @obsidianspider

        1 Reply Last reply Reply Quote 0
        • detolaD
          detola
          last edited by

          to be 100% honest..... i am not totaly sure yet.

          scenario 1.: just what you describe: Press Reset and the Pi gets rebooted....
          or
          scenario 2.: Press Reset and the running game gets closed and you come back to the Emulationstation

          I am playing with the pi for some weeks.... while playing games i never had a hickup that would require an hard reset like in Scenario 1.... so right now i tend more to scenario 2.

          obsidianspiderO 1 Reply Last reply Reply Quote 0
          • obsidianspiderO
            obsidianspider @detola
            last edited by

            @detola For both of those scenarios you can tie the reset to a GPIO pin and then have that pin execute a script when pressed, and you could do that with the Control Block, since I'm pretty sure that's really just acting as a way to tie in to the GPIO.

            📷 @obsidianspider

            1 Reply Last reply Reply Quote 0
            • P
              petrockblog Global Moderator
              last edited by

              I am currently implementing that feature and it seems as if I can add that during the next weekend. If you are interested you can have a look at the current draft at https://github.com/petrockblog/ControlBlockService2/blob/feature/snesreset/src/controlblock/SNESGamepad.cpp. With that feature implemented you can then connect the original reset button to the ControlBlock. The ControlBlock, in turn, will issue an ESC key press, if the reset button is pressed.

              1 Reply Last reply Reply Quote 1
              • B
                Batman6
                last edited by

                Hello guys,
                glad to hear thats now implemented into controlblock. I have a question how to wire the reset button to the controlblock? I mean wich port I have to use.

                1 Reply Last reply Reply Quote 0
                • P
                  petrockblog Global Moderator
                  last edited by

                  The documentation needs to be extended with this functionality, I agree.

                  The reset button should be attached to GPIO "Player 2 - B".

                  A 1 Reply Last reply Reply Quote 1
                  • B
                    Batman6
                    last edited by

                    Allright thank you :)

                    1 Reply Last reply Reply Quote 0
                    • A
                      ahaertig @petrockblog
                      last edited by

                      @petrockblog said in Reset Button with ControlBlock?:

                      The reset button should be attached to GPIO "Player 2 - B".

                      Sorry, if this is a stupid question, but what about the second wire? Where should this be attached to? GPIO "GND" on the control block?

                      B 1 Reply Last reply Reply Quote 0
                      • B
                        Batman6 @ahaertig
                        last edited by Batman6

                        @ahaertig
                        I have attach it to the control block with player one ground. But not testet yet. Waiting for a little part to finish the build. Ill report you if iam done.

                        1 Reply Last reply Reply Quote 0
                        • B
                          Batman6
                          last edited by

                          Ok it doesnt work dont know why but i will investigate this tomorrow. played to much today with the old games :D

                          1 Reply Last reply Reply Quote 0
                          • P
                            petrockblog Global Moderator
                            last edited by

                            Connecting it to GND on the ControlBlock is the way to go.

                            If you cannot solve that issue, you could post some pictures here so that we might get an idea about your hardware setup.

                            B 1 Reply Last reply Reply Quote 0
                            • B
                              Batman6 @petrockblog
                              last edited by Batman6

                              @petrockblog
                              Checked the connection with the multimeter its correct wired so far.
                              But still not working dont now why. Some pictures for you

                              alt text
                              alt text
                              alt text

                              1 Reply Last reply Reply Quote 0
                              • P
                                PSXed
                                last edited by

                                Did you ever found out what the problem was? I have a momentary switch connected to GPIO "Player 2 - B" and Ground on the Controlblock but it does nothing. I have checked for continuity and the switch is functioning like it should but software wise it does nothing?

                                1 Reply Last reply Reply Quote 0
                                • P
                                  PSXed
                                  last edited by

                                  Seeing as this wasn't answered in months i'll debug it myself tonight and rewrite some things if i have to.

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    petrockblog Global Moderator
                                    last edited by

                                    For the SNES gamepad type the ESC keyboard key is simulated, see also https://github.com/petrockblog/ControlBlockService2/blob/master/src/controlblock/gamepads/SNESGamepad.cpp#L108. Maybe that points you into the right direction.

                                    O 1 Reply Last reply Reply Quote 0
                                    • O
                                      ortsac @petrockblog
                                      last edited by

                                      @petrockblog The "Reset" function on the ControlBlock does not work as advertised. Please look into this. I believe the firmware in the ControlBlock does not properly bind with Retropie. Has someone got this function working?

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        petrockblog Global Moderator
                                        last edited by

                                        I will create a video that demonstrated that feature. I hope that it will also clarify some questions regarding the hardware setup and configuration. I will post that video here as soon as it is published in the next days here!

                                        O 1 Reply Last reply Reply Quote 0
                                        • O
                                          ortsac @petrockblog
                                          last edited by

                                          @petrockblog That will greatly help a lot of us who would want to see this working. Thanks.

                                          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.