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

    Retroflag NESPi Case - Soft Power & Reset Hack

    Scheduled Pinned Locked Moved Projects and Themes
    nespiretroflagsoft shutdowntutorial
    151 Posts 38 Posters 95.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.
    • YahmezY
      Yahmez @bug1baby
      last edited by

      @bug1baby Thanks! Sadly, that mosfet board will not work. The Pololu board has an additional transistor and other components which allow it to work in the way I used it. You might be able to build your own version of the Pololu board though, they do provide a schematic of it on their website. It might be cheaper (but more work) to order the individual components rather than pay that outrageous shipping.

      1 Reply Last reply Reply Quote 0
      • YahmezY
        Yahmez @bug1baby
        last edited by

        @bug1baby
        Amazon UK has the low voltage one which should work just the same as the one I used. Shipping is bound to be much cheaper.
        https://www.amazon.co.uk/MOSFET-Switch-Reverse-Voltage-Protection/dp/B017HY9PIE

        B 1 Reply Last reply Reply Quote 0
        • B
          bug1baby @Yahmez
          last edited by

          @yahmez Awesome. Thanks for the info

          1 Reply Last reply Reply Quote 0
          • S
            snarc
            last edited by snarc

            Hi folks,

            I'm new to the RaspberryPi/RetroPie scene and today I've modded my NESPi case according to the awesome tutorial by @Yahmez.

            Soldering the wires etc. was no problem but setting up the Pi (a model 3 with the newest RetroPie installed) I got stuck...

            SOLVED: Some "expected an indented block" errors in the script caused the problem. So copying the script just from the PDF is not a good idea... :)

            Regards

            YahmezY 1 Reply Last reply Reply Quote 0
            • D
              doubleeuroz
              last edited by

              @Yahmez - For what reason did you go with that mosfet board vs using transistors and resistors along with the capacitor? It looks like you should be able to sub out the board with just the components. I have everything but that mosfet board...

              YahmezY 1 Reply Last reply Reply Quote 0
              • YahmezY
                Yahmez @doubleeuroz
                last edited by

                @doubleeuroz
                For simplicity. There are many ways to do this, including using your own board and components whether it is transistors, mosfets, or a relay. For me, a proven $4 board was the easiest and most repeatable solution. The Pololu board is practically made for this application with the two ways to switch it matching perfectly to the pi and power switch combination. Also the form factor was just perfect as well. All in all, it was just the best option for me.

                1 Reply Last reply Reply Quote 0
                • YahmezY
                  Yahmez @snarc
                  last edited by

                  @snarc
                  You're not the first having trouble copy/pasting from the PDF. I will be updating the walk through with links to pastebin copies of the code.

                  1 Reply Last reply Reply Quote 0
                  • C
                    cmarquis
                    last edited by

                    Ok, I am new to all of this and am gathering parts to put together my system, but my question is this: is there a way to use the PowerBlock and the scripts they have for it to do this? Or is it actually easier and simpler to follow @Yahmez guide?

                    YahmezY J 2 Replies Last reply Reply Quote 0
                    • YahmezY
                      Yahmez @cmarquis
                      last edited by

                      @cmarquis I have never used a power block so I can not comment as to how it would/could interface to the Retroflag NESPi case. I do know that there is a significant price difference between the two.

                      1 Reply Last reply Reply Quote 0
                      • D
                        DaminouTav
                        last edited by DaminouTav

                        Hardware done, hardware check OK, now I have to add a script into my distrib :)

                        Edit : Everything is working well :) Thank you @Yahmez ! (note, script into recalbox are already ready for this modification :) nothing to add)

                        YahmezY 1 Reply Last reply Reply Quote 0
                        • F
                          Fernandike
                          last edited by

                          I have a problem with the script. on my pi at the gpio readall on pin 25 its Mode IN and Value 0. i made all the other things what could be wrong. I tested hardware as you said and it was ok Please Help Someone

                          YahmezY 1 Reply Last reply Reply Quote 0
                          • YahmezY
                            Yahmez @Fernandike
                            last edited by

                            @fernandike download the newest version of the PDF. There is a link to pastebin pastes of the scripts in the updated PDF. Try using that instead of copying from the PDF.

                            F 1 Reply Last reply Reply Quote 0
                            • YahmezY
                              Yahmez @DaminouTav
                              last edited by

                              @daminoutav glad you got it going!

                              F 1 Reply Last reply Reply Quote 0
                              • F
                                Fernandike @Yahmez
                                last edited by

                                @yahmez the one that says here? on the PDF?
                                and wich one its ok the raw or the oder one. by the way i dont know how i fixed that problem on the gpio readall

                                YahmezY 1 Reply Last reply Reply Quote 0
                                • F
                                  Fernandike @Yahmez
                                  last edited by Fernandike

                                  @yahmez the guide its awesome. tnx for that. do you have any video showing how it works. i couldnt make it work i tried everithing Visual test ok hardware test ok software test seems to be ok but neither resets or soft shutdown works. it just kills the power right away. and on the hardware test waits a few seconds to shuts off

                                  YahmezY 1 Reply Last reply Reply Quote 0
                                  • YahmezY
                                    Yahmez @Fernandike
                                    last edited by Yahmez

                                    @fernandike said in Retroflag NESPi Case - Soft Power & Reset Hack:

                                    @yahmez the one that says here? on the PDF?
                                    and wich one its ok the raw or the oder one. by the way i dont know how i fixed that problem on the gpio readall

                                    Correct. Either one from the pastebin is fine.

                                    1 Reply Last reply Reply Quote 0
                                    • YahmezY
                                      Yahmez @Fernandike
                                      last edited by

                                      @fernandike said in Retroflag NESPi Case - Soft Power & Reset Hack:

                                      @yahmez the guide its awesome. tnx for that. do you have any video showing how it works. i couldnt make it work i tried everithing Visual test ok hardware test ok software test seems to be ok but neither resets or soft shutdown works. it just kills the power right away. and on the hardware test waits a few seconds to shuts off

                                      Try it with the pi not screwed down, just loose. The same happened to me when I screwed it down because the underside of the pi pinched the on control wire and was shorting it to ground. If that fixes it, be careful how you route this wire. Really if all the tests are good, the only thing it could be is the on control wire shorting to ground.

                                      I do not have a video of it but it works as described. Upon switching the power off, the pi shuts down, then in a couple seconds the NESPi case cuts power to the pi and the power LED on the case goes out.

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        MD500_Driver
                                        last edited by

                                        @Yahmez

                                        I followed your instruction and I am having a problem where the mosfet powers up immediately upon applying power and never shuts off. All of the switches work and have been verified with a MM.

                                        I have verified that the power switch and reset switch are completely separated from one another, when you hit the power switch is connects ground to the center pins on the power switch which then connects ground to the "ON CONTROL" on the Mosfit (which should trigger the power on if it were not already on).

                                        I have verified that when everything is running, hitting the power switch does cause the pi to initiate a shutdown but the mosfet never shuts off power after that and when I push the power switch back on, nothing happens and I need to remove input power and really it and then the power comes on immediately.

                                        I have verified that the switch on the mosfet is in the OFF position as well.

                                        The only thing I did differently was using a 470 cap instead of the 220 you had in your plans.

                                        Any help would be greatly appreciated.

                                        I YahmezY 2 Replies Last reply Reply Quote 0
                                        • I
                                          iggy @MD500_Driver
                                          last edited by iggy

                                          @md500_driver Hey There....I had the same problem.....did you make sure to cut the trace where the led is at ? There should be 5 traces that need to be cut on this board. If you miss this trace, the mosfet board will automatically turn on the moment you apply power.

                                          0_1507267301166_8bd2eb64-631d-4bd7-9cd9-e0981460a9cc-image.png

                                          1 Reply Last reply Reply Quote 0
                                          • YahmezY
                                            Yahmez @MD500_Driver
                                            last edited by

                                            @md500_driver
                                            as @Iggy said, it sounds like ytou did not fully cut the traces on the power /reset switch PCB. I saw someone else have the same issue and he did not fully cut the traces.

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