element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Community Hub
Community Hub
Member's Forum What part am I looking for?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Community Hub to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 22 replies
  • Answers 11 answers
  • Subscribers 571 subscribers
  • Views 1803 views
  • Users 0 members are here
Related

What part am I looking for?

justphred
justphred over 5 years ago

Hey all, I recently decided to dive headlong into the micro controller world, with a project I am working on. I'm in way over my head and Amy trying to find a place to get some assistance.

 

I am in the planning phase so far and am trying to figure out what part I need for a specific section of my project.

 

Essentially, I am trying to create a software power button. So I don't have to have a Switch and a button. this project is fairly small and I am trying to save as much space as I can. I have mapped out how I THINK it should work, and have attached a quick diagram. Here is a run down of how I think it will work...

 

  • Power comes in to the Mystery Part from a battery (a 3.7v 420mAH lipo) and is sent to a momentary switch.
  • When the momentary switch is pressed the path of the battery power flips from going to the switch to going to the micro controller. There by powering on the system. (flipping the Mystery Part from RED position to GREEN)
  • The Momentary switch is now being seen by the micro controller. Which will be programed to send a signal to the Mystery Part when the Switch is held down for 5+ seconds.
  • The Signal coming in from the micro controller switches the battery power back to the momentary switch, thus cutting power to the system and powering it off (flipping the  Mystery Part from GREEN position back to RED)

 

 

The Grey box on the diagram is the mystery part. Any help in figuring out what I need to make this happen would be appreciated.

Attachments:
image
  • Sign in to reply
  • Cancel

Top Replies

  • genebren
    genebren over 5 years ago +5 verified
    Michael, There are a few things that you might new to think about, before you can make use of your Mystery part. You are planning on using a Lipo battery which has a typical voltage of 3.7 volts. In reality…
  • dougw
    dougw over 5 years ago +3 suggested
    If I understand the requirement, I think it could be done with 3 FETs and your momentary SPST push button. One PFET turns power on to the MCU. This PFET is turned on by an NFET which is turned on by the…
  • justphred
    justphred over 5 years ago in reply to dougw +2 suggested
    I think I understand what you are getting at here. The only issue is I want to use the push button with the MCU to activate other things while this project is on and running. Would the switch still be…
Parents
  • dougw
    0 dougw over 5 years ago

    If I understand the requirement, I think it could be done with 3 FETs and your momentary SPST push button.

    One PFET turns power on to the MCU. This PFET is turned on by an NFET which is turned on by the pushbutton via a capacitor.

    This NFET is held on by a resistor to MCU power.

    The MCU controls another NFET that can turn off the first NFET which kills all power to the MCU.

    The pushbutton has no power other than a brief pulse when it is first pushed.

    I can draw a schematic if this sounds like what you want.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • justphred
    0 justphred over 5 years ago in reply to dougw

    I think I understand what you are getting at here. The only issue is I want to use the push button with the MCU to activate other things while this project is on and running. Would the switch still be wired up to the MCU as well as? I am attempting to put together my own schematic, but would love to look at one from you if you don't mind?

     

    This is where I am at so far imageimage

     

    I have been looking up and leaning about FETs, but I work better when things are put in a use case, and most things out there talk about them at a very high level.

     

    any help understanding them would be great.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • dougw
    0 dougw over 5 years ago in reply to justphred

    The Protrinket regulates the battery to 3.3V at SW1.

    The pushbutton connects power to SW2 which stays on even if the button is released. (power to the MCU)

    The MCU Output will turn off power at SW2 when it is ready to turn itself off.

    If the pushbutton is pushed while the power is on, it generates a signal on the MCU Input.

    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • dougw
    0 dougw over 5 years ago in reply to justphred

    The Protrinket regulates the battery to 3.3V at SW1.

    The pushbutton connects power to SW2 which stays on even if the button is released. (power to the MCU)

    The MCU Output will turn off power at SW2 when it is ready to turn itself off.

    If the pushbutton is pushed while the power is on, it generates a signal on the MCU Input.

    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube