Power switch circuit
#11
(01-28-2016, 09:59 AM)patrickhwood Wrote:
(01-28-2016, 09:31 AM)pine.tree Wrote:
(01-28-2016, 09:15 AM)SkimMilk Wrote:
(01-28-2016, 08:59 AM)Gearsoul Wrote: When you guys say 'switch' ... do you mean the physical component that toggles?

So... the on/off switch of the classic Gameboy serves this purpose, and no additional component is needed to make use of on/off functionality?

Yes, the physical switch where you can turn on / off the Pine.
Currently on the board, there are connections for it, but no physical switch soldered on.

It was supposed to come as a stretch goal reward but there were some people who were negative about having the switch, thus it is now dangling in the air.

I don't see why they cannot have the switch there, and just leave it in the 'on' position if they do not want to use it?
I would love to see the switch there, so that I can turn on/off the Pine as and when I want, rather than pulling the power cable off...  Big Grin

I definitely agree. A switch would be great, i would love not to have to pull out cords or something, just a little flick of a switch is what i would prefer. If Pine decides not to include a power switch, you can always take a broken flashlight apart and use the click switch Tongue

I believe the switch that's on the board is actually a momentary contact that's connected to the PMIC.  A short press of the switch when the system is running generates an interrupt to the SoC from the PMIC, causing a soft power off with a graceful system shutdown.  A long hold (16 secs according to the AXP803 PMIC datasheet) forces the PMIC into a powered-off state, where it just shuts off the power to everything.

Pressing the power button when the board is off powers on the PMIC, which powers up all the devices on the board.

Ah, that would be great. I forgot about the ability to either force shutdown or "gracefully" shutdown the device. I certainly wouldn't want to abruptly cut power, shutting down properly is good. If they do the momentary contact switch, 10/10.
If I've helped you with something, please leave a rating for my responses.
  Reply
#12
(01-28-2016, 10:21 AM)pine.tree Wrote:
(01-28-2016, 09:59 AM)patrickhwood Wrote: I believe the switch that's on the board is actually a momentary contact that's connected to the PMIC.  A short press of the switch when the system is running generates an interrupt to the SoC from the PMIC, causing a soft power off with a graceful system shutdown.  A long hold (16 secs according to the AXP803 PMIC datasheet) forces the PMIC into a powered-off state, where it just shuts off the power to everything.

Pressing the power button when the board is off powers on the PMIC, which powers up all the devices on the board.

Ah, that would be great. I forgot about the ability to either force shutdown or "gracefully" shutdown the device. I certainly wouldn't want to abruptly cut power, shutting down properly is good. If they do the momentary contact switch, 10/10.

... :/c Huh, so... if I use the Gameboy power switch, I'll actually be forcing a hard shutdown instead of the 'graceful' soft shutdown? That sounds like it would be bad? Maybe... if I only turn it off after closing everything it would be okay..?
  Reply
#13
(01-29-2016, 02:02 AM)Gearsoul Wrote:
(01-28-2016, 10:21 AM)pine.tree Wrote:
(01-28-2016, 09:59 AM)patrickhwood Wrote: I believe the switch that's on the board is actually a momentary contact that's connected to the PMIC.  A short press of the switch when the system is running generates an interrupt to the SoC from the PMIC, causing a soft power off with a graceful system shutdown.  A long hold (16 secs according to the AXP803 PMIC datasheet) forces the PMIC into a powered-off state, where it just shuts off the power to everything.

Pressing the power button when the board is off powers on the PMIC, which powers up all the devices on the board.

Ah, that would be great. I forgot about the ability to either force shutdown or "gracefully" shutdown the device. I certainly wouldn't want to abruptly cut power, shutting down properly is good. If they do the momentary contact switch, 10/10.

... :/c Huh, so... if I use the Gameboy power switch, I'll actually be forcing a hard shutdown instead of the 'graceful' soft shutdown? That sounds like it would be bad? Maybe... if I only turn it off after closing everything it would be okay..?

Ah! This is a good point. I think the Gameboy uses a hard on/off switch rather than a momentary power switch.

But we will figure out a solution to this, no worries Smile
  Reply
#14
(01-29-2016, 02:02 AM)Gearsoul Wrote:
(01-28-2016, 10:21 AM)pine.tree Wrote:
(01-28-2016, 09:59 AM)patrickhwood Wrote: I believe the switch that's on the board is actually a momentary contact that's connected to the PMIC.  A short press of the switch when the system is running generates an interrupt to the SoC from the PMIC, causing a soft power off with a graceful system shutdown.  A long hold (16 secs according to the AXP803 PMIC datasheet) forces the PMIC into a powered-off state, where it just shuts off the power to everything.

Pressing the power button when the board is off powers on the PMIC, which powers up all the devices on the board.

Ah, that would be great. I forgot about the ability to either force shutdown or "gracefully" shutdown the device. I certainly wouldn't want to abruptly cut power, shutting down properly is good. If they do the momentary contact switch, 10/10.

... :/c Huh, so... if I use the Gameboy power switch, I'll actually be forcing a hard shutdown instead of the 'graceful' soft shutdown? That sounds like it would be bad? Maybe... if I only turn it off after closing everything it would be okay..?

Hardware maybe this pine64 have not shutdown , 

but software android have .
https://play.google.com/store/search?q=shutdown&c=apps

For Linux , have command set time to shutdown your pine64 and mouse can shutdown your pine64 , this is not problem
  Reply
#15
... How big is the connector area?

Even though the switch seems to have a hard, 'one or the other' feel to it, feeling it out on my Gameboy you *can* actually slide it carefully to sit in the middle... Though it requires a lot more 'effort' to not simply click it into place.

Perhaps if the button weren't so snugly in place it would be easier to make use of a momentary contact? Of course this could lead to other problems if not done correctly.
  Reply
#16
(01-29-2016, 06:03 AM)Gearsoul Wrote: ... How big is the connector area?

Even though the switch seems to have a hard, 'one or the other' feel to it, feeling it out on my Gameboy you *can* actually slide it carefully to sit in the middle... Though it requires a lot more 'effort' to not simply click it into place.

Perhaps if the button weren't so snugly in place it would be easier to make use of a momentary contact? Of course this could lead to other problems if not done correctly.

Unfortunately, the Gameboy doesn't recognise that middle setting as anything. It will only ever be on or off. It doesn't mean we can't modify the switch, though. It's a small issue.

Like joe says (thanks joe), power shutdown can be accomplished by software, but our aim is to have an emulator that boots straight into the emulator and uses only the face buttons of the Gameboy to function. So we do not want (ultimately) to be encumbered with things like mice and keyboards...
  Reply
#17
Indeed!

I had though perhaps if the switch could be partially slid it could be clicked into place to make the shutdown contact and then slid to the middle to avoid a hard shut down and avoid the on switch portion of contact.
  Reply
#18
(01-29-2016, 06:38 AM)Gearsoul Wrote: Indeed!

I had though perhaps if the switch could be partially slid it could be clicked into place to make the shutdown contact and then slid to the middle to avoid a hard shut down and avoid the on switch portion of contact.

Yes, that would probably work, but it would hardly be ideal having to fiddle with the switch to find that middle position. Better perhaps to replace the original switch with a similarly sized and shaped momentary version...
  Reply
#19
I was recycling some home appliances and found some tactile switches. Found a new home for them - Pine Wink
Pressing power button for 15 seconds do hard power off, short press of power currently does nothing under Linux (investigating now), reset works just as intended. 
Heatsinks are from RPi, they are bit small, still better than nothing.
[Image: SbKoWRz.jpg]
  Reply
#20
From the picture, it looks like this Adafruit tactile switch (https://www.adafruit.com/products/1489).

Pololu.com also sells a similar tactile switch: https://www.pololu.com/product/1400.

I'm sure you can find these cheaper elsewhere, but if you are ordering things from Adafruit or Pololu, consider adding a pack of these to your next order.

Cool
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Z-Wave - Full and Low Power Inclusion mode B34N 1 4,688 03-26-2017, 06:03 PM
Last Post: B34N
  Power Supply for Pine a64 (2GB) Pip19083 1 4,906 01-22-2017, 01:32 PM
Last Post: Luke
  Low power headless operation? rubenk 9 16,988 01-05-2017, 12:37 AM
Last Post: swinging
  Power Off / Reset Buttons - DietPi casmiguefl 4 9,286 08-12-2016, 05:28 PM
Last Post: casmiguefl
  power Circuit polo 28 46,433 07-01-2016, 07:06 PM
Last Post: pfeerick
  Power over Ethernet (PoE) WLR 1 6,301 02-10-2016, 07:14 PM
Last Post: tllim
  USB HDD Power eender 5 10,536 02-06-2016, 09:30 PM
Last Post: blktiger

Forum Jump:


Users browsing this thread: 1 Guest(s)