LED Switch / power is turn on with the USB adapter instead of the switch
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 :)
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:
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...
Please let me know if you had any success with your switch and if you have any advice. Thanks!
@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
@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.
@xtreemsurf Your answer has cleared my doubts.. thanks a lot...!!! :
@lackyluuk Too bad for me ... I can t read German... I m a Thai >__< anyway, thankyou for your reply.
@Substring thanks a lot :)