PIC backup power supply: switchover ???


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    xnihilo's Avatar
    xnihilo Guest

    Smile PIC backup power supply: switchover ???

    Here is the topic:

    I am using two curcuits, based on PIC16F684.
    Main circuit is powered by 5V (9V battery to 5V voltage regulator).
    Auxiliary circuit is powered by 3V (one small battery) because it will be its backup supply.
    Auxilliary circuit is supposed to be normaly connected to the power supply of main circuit (5V) but, if disconnected, it should use the 3V power supply.

    Would someone know and be so kind to tell me how I could, electricaly design my circuits so I can implement such diagram?
    I will need a system to switchover from 3V to the 5V of the main circuit and vice versa when separating auxiliary circuit from main circuit.

    The fact is that this switchover must be immediate because the PIC CANNOT loose its power supply and reset.

    Thanks for your help.

    Regards.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    2 diodes and there you go. Low voltage drop please let's say 1N5817
    <img SRC="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2516&stc=1&d=120852848 5">
    Attached Images Attached Images  
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Smile

    Thank you for your quick reply.
    Can I ask why you are using diodes? To avoid peak currents? Wouldn't 1N4001 diodes be okay (I have a bunch of these...)
    I see a capacitor, what would be the value? 100UF would be fine or do I need higher value? Do you use it to prevent a voltage drop at the time the voltage switching occurs?
    I disabled BOD in the pics, should I expect a reset anyway if the voltage drops a little?

    Thanks mister_e

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Diode are there to avoid conflict between your voltage source... with this, the higher voltage will win the race

    Capacitor, 10 uF and more should be enough. For filtering purpose.

    You could use 1N4xxx diode, bear in mind their voltage drop is around .6V so your 3V will be 2.4 volt when your battery is at full-charge.

    The pic will work as long you haven reach the Brown-Out threshold voltage OR his voltage threshold depending on the osc speed you're using.

    You could still use another much fancy system, this one work pretty well in many cases.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by mister_e View Post
    Diode are there to avoid conflict between your voltage source... with this, the higher voltage will win the race

    Capacitor, 10 uF and more should be enough. For filtering purpose.

    You could use 1N4xxx diode, bear in mind their voltage drop is around .6V so your 3V will be 2.4 volt when your battery is at full-charge.

    The pic will work as long you haven reach the Brown-Out threshold voltage OR his voltage threshold depending on the osc speed you're using.

    You could still use another much fancy system, this one work pretty well in many cases.
    I didn't know that diodes had such use
    What's wrong if both supplies are connected at the same time in parallel???

    Filtering capacitors? What do they filter?

    Voltage drop? Right... 2.4v is a little too low, knowing the PIC will be fine down to 2V but I can't use 8MHz anymore if using 2V... In this case I can use 3*1.5v batteries instead and use 1N4001 diodes, right?

    I disabled Brown Oout Detect in the config words, do I still need to care about this feature?

    What fancy system are you talkning about?

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    ...................whoops...............

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    You could still use another much fancy system, this one work pretty well in many cases.
    What fancy system are you talkning about?
    Yes, tell me more about Fancy System v1.0...............

  8. #8
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by xnihilo View Post
    What's wrong if both supplies are connected at the same time in parallel???
    what happen if you connect a 5 volt directly to a 3v battery?

    Filtering capacitors? What do they filter?
    voltage regulator output, battery... yeah you may think battery don't produce noise.. well yes and no, they have internal resistor, everything that need juice will make the voltage drop a little bit, knowing there's a clock source somewhere and you will also drive something, the voltage will swing accordingly.

    Do a test, remove all capacitors, do a led blink (10mSec or so) then use your scope to monitor your Vdd rails... cool huh? now add the mandatory filtering caps... how better now?

    Voltage drop? Right... 2.4v is a little too low, knowing the PIC will be fine down to 2V but I can't use 8MHz anymore if using 2V... In this case I can use 3*1.5v batteries instead and use 1N4001 diodes, right?
    Sounds right

    I disabled Brown Oout Detect in the config words, do I still need to care about this feature?
    No, it will be disabled. It's not a bad idea to have it enabled so far. Just look the datasheet to know it's threshold and what advantage it may give you.

    What fancy system are you talkning about?
    Don't worry, way to complicated....
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Backup Power Supply
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th August 2007, 19:37
  2. Ideal backup power for PIC micro
    By emavil in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd March 2007, 00:07
  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. Decent 24 volt Pic power supply
    By rwskinner in forum Schematics
    Replies: 7
    Last Post: - 18th December 2006, 12:27
  5. backup supply for pic
    By PoTeToJB in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th May 2006, 17:24

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