early power down


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default

    Hi Mackcrackit,
    I saw the final circuit diagram and it seems OK to me .
    The interrupt pin detect the lack of the 12 Vdc before the PIC stops to work.
    I hope to have time enough to store my data before the cpu collapses.
    Thanks for the suggestion.
    regards,
    Ambrogio

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    If you need more time you can add more/bigger capacitors.

    Or, if you really want to make sure the data is saved and you have the room and an extra PIC pin...

    Run the PIC from a rechargeable battery or battery pack, have the mains keep a float on the battery.
    Rig a MOSFET/transistor/relay as a self holding relay with the PIC doing the holding.
    When the interrupt triggers the PIC can save the data, close the windows and put the cat out. Then shut
    it self down.

    When it is time to start the system have a momentary switch to energize the "relay". If you want it to come on automatically. Add another relay that the mains control to put the initial power to the relay. One the PIC starts it will do the holding.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default

    Thanks Dave,
    Ambrogio

Similar Threads

  1. Battery powered applications
    By NavMicroSystems in forum Off Topic
    Replies: 7
    Last Post: - 22nd June 2009, 08:12
  2. Pic getting part power from Analog Port
    By ShaneMichael in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 22nd April 2009, 11:34
  3. PIC power backup with "super capacitor"
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 25th January 2007, 00:51
  4. 12 Servo's together does not seem to work, Power problem
    By macx75 in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th December 2006, 20:30

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