How to add a Power Button to Le Potato board

Could someone please tell me how to connect a power button to the le potato when using a LoverPi active cooling case with a fan? I’m new to this and I have connected the fan using the instructional video but I am unable to find information to add a power button for the Le potato, there are plenty of instruction for the Raspberry Pi. This is the button I’m trying to connect XMSJSIY Chassis Switch Host Metal…

If someone could please explain this clearly in grade school terms, I would greatly appreciate it.
Thank you

I’m very new to all of this myself, but I just figured out something that might help!
If you check out gpio pin header maps for the Le Potato and read the print at the bottom you may notice that linux# pin 10 can be pulled down to reset the system. I ran a test with a ground wire and when connected to that gpio pin (the eighth one down from the left side with the IR unit facing up and the usb facing down) and it indeed turned off the system! So with this knowledge I’ve wired up a simple off switch on a breadboard with the ground on one side and the pin on the other, so when you press it, the system resets. I’m not sure if this is the best method, but keeping the ground connected to that pin will turn off the system and could easily make an on off switch. Is it the right way to do it? I don’t know, but hopefully this is helpful or interesting :smile:

Thank you for replying. I have added a picture to my post of the leads attached to the button (for visual reference). The red and black lead are separate and the green and blue are attached to each other. Where would I attach the other cables?

So, I’m guessing here (and I think I might have messed up pin 10 on my le potato just tinkering further), but the blue two female plug is probably what is triggered by the switch, when it is pressed it probably connects the two, so, in that assumption, if you have some female to male wires, you could plug a female side to a ground (see the header map again), and to one side of the the POWER SW and plug another female to male wire on the pin 10, the low pull reset pin (again, check the header map) to the other side of POWER SW. When you press the button I’d imagine it would hold the reset. But I wouldn’t do this without a bit more testing or you might end up where I am, with a pin 10 that I can’t seem to figure if I’ve fried or not.

Something easier to figure out might be lighting up the ring on this button, which might be as simple as hooking the POWER LED+ to a powered pin (like row 1 pin 1) and POWER LED- to a ground GND pin.
If you have a breadboard and a power source you can wire to it, I’d try it on the breadboard first since there is less risk. But since I don’t have a power button like this to try out, I hand this experiment back to you. Hopefully this extra bit spurs you to try a few things, and if I figure out any more I’ll post again :slight_smile:

Thank you so much for your assistance. I don’t have a breadboard but maybe I’ll invest in one. I’m sorry about your board, I hope it’s not damaged.

Thanks again for trying this out.

You need to add a gpio-key overlay that emulates a shutdown key press. Any GPIO can be turned into a power button.

Could you explain in elementary terms how this is done?


We will write a guide eventually for this.