How can a battery powered PIC turn itself off?


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Location
    Maine, USA
    Posts
    81

    Default How can a battery powered PIC turn itself off?

    I am trying to build a battery powered device that runs on 2 CR2032 coin batteries. I want to be able to press a button to activate it, then it does its thing and powers itself off.

    So I put the button switch between the battery ground and circuit ground and put a MOSFET across it. Push the button, PIC wakes up and sends a HIGH signal to the MOFET gate to hold power on when the button is released. So far so good.

    Now when the PIC has completed its task I drop the MOSFET gate line low in code, but the circuit does not power down. A voltage remains on the driver line and I'm not sure why.

    Anyone have a working solution to this problem. I am open to anything!

    Guy

  2. #2
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Add a resistor

    Hi,

    Add a pulldown resistor between the gate and ground. That will keep the gate closed when the button is not pressed ot the pic pin is high. 10k or whatever you have at hand.

    /me

  3. #3
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    This ditty does exactly what you want...

    http://www.picbasic.co.uk/forum/showthread.php?t=3510

    Ah... I think it's too big for the forum since the filesizes have been reduced since that was posted... here's another link to something similar but different...

    http://www.picbasic.co.uk/forum/showthread.php?t=57

  4. #4
    Join Date
    Sep 2008
    Location
    Maine, USA
    Posts
    81


    Did you find this post helpful? Yes | No

    Default Thanks! It worked

    Jumper - a pull down does not work, don;t know why. But the thread Melaine pointed me to yielded a circuit that I simplified a bit that works like a charm. Thanks Melanie you totally made my day, I will cross post my solution to the other thread. See attached.
    Guy
    Attached Images Attached Images  

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tekart View Post
    Jumper - a pull down does not work, don;t know why. But the thread Melaine pointed me to yielded a circuit that I simplified a bit that works like a charm. Thanks Melanie you totally made my day, I will cross post my solution to the other thread. See attached.
    Guy
    ...disregard...misread the original question.
    But...could be that you ended up with a voltage divider at the gate of the mosfet and when the PIC's signal was removed, the pulldown wasn't strong enough to pull it far enough and the FET stayed on...
    Last edited by skimask; - 29th September 2008 at 21:06.

  6. #6
    Thoranaga's Avatar
    Thoranaga Guest


    Did you find this post helpful? Yes | No

    Default Power OFF

    I use this small addon circuit to my PIC :
    Attached Images Attached Images  

Similar Threads

  1. Battery powered applications
    By NavMicroSystems in forum Off Topic
    Replies: 7
    Last Post: - 22nd June 2009, 07:12
  2. Help with PIC project
    By davekav in forum General
    Replies: 3
    Last Post: - 17th April 2008, 23:15
  3. PIC powered by capacitor for 0,5 second
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 25th August 2007, 09:23
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. 12F683 battery powered remote - energy consumption question
    By silentwol in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th April 2007, 13:23

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts