Page 1 of 1

SPST switch for power on / off

Posted: Fri Jan 25, 2019 10:08 am
by dmanlfc
How to add a SPST switch to power on / off the LattePanda
When switched off, gracefully shutdown Windows / Linux.

Just to be clear - NOT a momentary switch.

Dan

Re: SPST switch for power on / off

Posted: Fri Jan 25, 2019 12:50 pm
by ccs_hello
You'll need a power control supervisory controller module
basically taking in user's desired power-state as well as reading the CPU state to
drive the "power" and "reset" pins on the LP Alpha board.

Re: SPST switch for power on / off

Posted: Sun Jan 27, 2019 4:00 am
by dmanlfc
Isn't that what the Arduino controller is for?

Re: SPST switch for power on / off

Posted: Mon Feb 25, 2019 12:31 am
by dmanlfc
I have made this work via a Relay & some Arduino code.
If anyone is interested, let me know.

Dan

Re: SPST switch for power on / off

Posted: Mon Feb 25, 2019 6:24 pm
by ccs_hello
Dan,

Great job! You should publish it.

ccs_hello

Re: SPST switch for power on / off

Posted: Sun Mar 10, 2019 2:45 pm
by gabemorgath
Yes, a step by step guide would be great indeed!

Re: SPST switch for power on / off

Posted: Sat Apr 06, 2019 8:53 pm
by dmanlfc
Hi all,

The Arduino & python code is here...

https://github.com/dmanlfc/arcade1up/tr ... te%20Panda

I will do a YouTube video later

DMAN

Re: SPST switch for power on / off

Posted: Sun Apr 07, 2019 7:44 pm
by ccs_hello
I would suggest take measurement from the LPA board itself (e.g., S5 state, check other thread:
https://www.lattepanda.com/topic-f23t18595.html ) to ensure
the actual POWER-State indeed is in sync with what the arduino software "think" it (the variable in the software) is.

Re: SPST switch for power on / off

Posted: Tue Dec 17, 2019 10:02 pm
by MahD
Can you provide a screenshot of the wiring, I tried this I cannot get it to work. Thanks!

Re: SPST switch for power on / off

Posted: Sat Jan 04, 2020 3:41 am
by MahD
Can you please post a screenshot of the wiring for this. Thanks!