Author Topic: Microcontroller soft power button  (Read 2940 times)

0 Members and 1 Guest are viewing this topic.

Offline ThingsTopic starter

  • Regular Contributor
  • *
  • Posts: 224
  • Country: au
  • Laser Geek
    • NQLasers
Microcontroller soft power button
« on: November 29, 2014, 11:29:57 am »
Hi all,

I'm working on designing a product that needs to be as physically small as possible. It will incorporate a microcontroller, and have a single button for accessing various modes. It'll have a small inbuilt LiPo battery for power - but the it occurred to me, how do I turn it on and off. Being a LiPo, it'd need to have no draw in the off state, but I also don't really have the room for a separate switch.

I've had this idea before, but I couldn't really seem to get it to work. Basically I'd have the switch connected directly to the battery positive, as well as an I/O pin. When pressed, it'd send power into the boost converter, which in turn would power up the microcontroller. I could then use a transistor on another I/O pin to keep it "latched" while the micro is running (or an enable pin on the boost converter, if it has one). This would also make it very easy to incorporate a hard low voltage cutoff to protect the LiPo.

However I seem to recall thoughts about this not working for some reason. Said product is just for fun, so things like the microcontroller accidentally rebooting and killing it's own power isn't a big deal.

Cheers,
Dan
 

Offline 8086

  • Super Contributor
  • ***
  • Posts: 1085
  • Country: gb
    • Circuitology - Electronics Assembly
« Last Edit: November 29, 2014, 11:54:22 am by 8086 »
 

Offline Mad ID

  • Regular Contributor
  • *
  • Posts: 167
  • Country: 00
Re: Microcontroller soft power button
« Reply #2 on: November 29, 2014, 11:50:49 am »
Hi all,
I'm working on designing a product that needs to be as physically small as possible. It will incorporate a microcontroller, and have a single button for accessing various modes. It'll have a small inbuilt LiPo battery for power - but the it occurred to me, how do I turn it on and off. Being a LiPo, it'd need to have no draw in the off state, but I also don't really have the room for a separate switch.

I've had this idea before, but I couldn't really seem to get it to work. Basically I'd have the switch connected directly to the battery positive, as well as an I/O pin. When pressed, it'd send power into the boost converter, which in turn would power up the microcontroller. I could then use a transistor on another I/O pin to keep it "latched" while the micro is running (or an enable pin on the boost converter, if it has one). This would also make it very easy to incorporate a hard low voltage cutoff to protect the LiPo.

However I seem to recall thoughts about this not working for some reason. Said product is just for fun, so things like the microcontroller accidentally rebooting and killing it's own power isn't a big deal.

Cheers,
Dan

It will work. You have a PFET on the power signal. The pushbutton pulls the gate of the PFET low and the system start running. The pushbutton has an NFET in parallel which the MCU turns on as soon as it boots. When you want to shut down, just release the NFET. Whola.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->