early power down


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326

    Default early power down

    Hi to all ,
    I am going to implement a system that detects the AC power removal from my PIC18F452 board in order to save data before the Pic stops to operate definitively. I am thinking to use a LVD ( low voltage detect ) input of the PIC connected to a resistor voltage divider connected at the full wave rectifier of the power supply. Some sort of clamping will be used to avoid input voltage greather than 5 Vdc.
    Any suggestion ?
    Thanks
    Ambrogio
    IW2FVO
    North Italy

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


    Did you find this post helpful? Yes | No

    Default

    Have a look a this thread. Might give you an idea.
    http://www.picbasic.co.uk/forum/showthread.php?t=11567
    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

    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

  4. #4
    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.

  5. #5
    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, 07:12
  2. Pic getting part power from Analog Port
    By ShaneMichael in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 22nd April 2009, 10:34
  3. PIC power backup with "super capacitor"
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 24th January 2007, 23: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, 19: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