Recalbox Forum

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

    LED Switch / power is turn on with the USB adapter instead of the switch

    GamePad/GPIO/USB encoder
    led switch turn usb adapter
    4
    7
    3248
    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.
    • NoAttitude
      NoAttitude last edited by

      Hi, I m a newbie here and I 'd like some help from you guys please... I ve just tried to install a blue 12V LED switch to the GPIO pin as the attach picture shows.

      Once I plug the USB adapter into the pi , LED lights up and it boots automatically without me pressing the switch. I tried to shutdown, the LED went off normally. As long as the USB adapter is plugged into the pi, I can turn on the pi with the switch but once I unplug the adapter and plug it back, it automatically turn on again without me pressing switch.

      The power is turn on with the USB adapter instead of the switch.

      Is there a way to start up my pi with just the LED switch, not the usb cable? Or I have wired anything wrong?
      PS. sorry for my bad English and thanks in advance 🙂

      0_1479474276212_Switch.jpg

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

        @NoAttitude

        I'm also interested in doing a switch like this. Is your switch a momentary or latching switch? I've been reading about the switch types and trying to decide which one to go with. When you press the button to turn the power off, does it perform a proper shutdown, or does it just turn the power off and potentially cause corruption on the SD?

        Here's the switch info I found:

        https://github.com/recalbox/recalbox-os/wiki/Add-a-start-stop-button-to-your-recalbox-(EN)

        I believe that the power automatically comes back on when you plug in the USB cable. To prevent this, I believe you need a switch controller with USB power pass through...something like this...

        https://www.pi-supply.com/product/pi-supply-raspberry-pi-power-switch/

        Please let me know if you had any success with your switch and if you have any advice. Thanks!

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

          @NoAttitude hey !

          What do you call "usb adapter" ? If you mean power supply, yes the pi would turn on once it has a power supply, we can't control that.

          Check @xtreemsurf link, it has the answer for what you wanna do

          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é

          NoAttitude 1 Reply Last reply Reply Quote 0
          • lackyluuk
            lackyluuk Translator last edited by lackyluuk

            @NoAttitude Actually the aim is not to unplug the USB power supply if you have the switch. Then you can start / stop your recalbox with your switch.

            If you are a german speaker, there is also a wiki articel in german 🙂

            P.S. your 12V LED won't work because the GPIO pin only provides 3.3V DC.

            NintendoRS | Nintendo Adapter Box | Cardboard Recalbox

            NoAttitude 1 Reply Last reply Reply Quote 0
            • NoAttitude
              NoAttitude @xtreemsurf last edited by

              @xtreemsurf Your answer has cleared my doubts.. thanks a lot...!!! :
              )

              1 Reply Last reply Reply Quote 0
              • NoAttitude
                NoAttitude @lackyluuk last edited by

                @lackyluuk Too bad for me ... I can t read German... I m a Thai >__< anyway, thankyou for your reply.

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

                  @Substring thanks a lot 🙂

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

                  Want to support us ?

                  73
                  Online

                  98.7k
                  Users

                  28.1k
                  Topics

                  187.0k
                  Posts

                  Copyright © 2021 recalbox.com