2 diodes and there you go. Low voltage drop pleaselet's say 1N5817
<img SRC="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2516&stc=1&d=120852848 5">
2 diodes and there you go. Low voltage drop pleaselet's say 1N5817
<img SRC="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2516&stc=1&d=120852848 5">
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
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
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.
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?
You could still use another much fancy system, this one work pretty well in many cases.Yes, tell me more about Fancy System v1.0...............What fancy system are you talkning about?
what happen if you connect a 5 volt directly to a 3v battery?
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.Filtering capacitors? What do they filter?
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?
Sounds rightVoltage 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?
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.I disabled Brown Oout Detect in the config words, do I still need to care about this feature?
Don't worry, way to complicated....What fancy system are you talkning about?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
My method for the backup is 'simple'-ish. Used it a number of times, works for me...Don't worry, way to complicated....
+5v normally powers the whole circuit except for the PIC. It also trickle charges a 3 cell pack of NiMH batt's thru a blocking diode and a current limiting resistor (I also have a jumper that adds another resistor in parallel if I need to do a manual fast charge for awhile, i.e. I let it run too long on backup). This 3 cell pack directly feeds the PIC. I tap off the main +5v line into a normal port and keep an eye on it. If I lose the main +5v line, I shut down other peripherals, drop the clock speed, and start napping until main power comes back up. A single PIC running off 3 AAA 650 mAh NiMH cells can run a long time in sleep / low power mode. Even looping on the internal low speed clock (~37Khz) draws so little current that the thing can 'sleep' for a solid week before I have to worry about.
Skimask, the "crazy flying tiger"...
Remember I'm in a project where I use a gun and a mag for a DIY lasergame.
I have a pic in the gun and a pic in the mag. When the mag is in the gun, it gets its power from it. When player needs to switch to the next virtual mag, he removes the 'physical' mag, clicks on a switch to cycle through his virtual mags and then reinserts the mag in the gun. I need some power supply in the mag while it is out of the gun, it cannot sleep because player interacts with the pic inside the mag while it is away from the main power supply. See?
what happen if you connect a 5 volt directly to a 3v battery?
-> Dunno... Some electrical magic for sureWill you tell me?
Are you talking about a problem based on different voltage levels or on batteries in parallel?
IF the latest, I thought putting batteries in parallel increases their capacity 'i.e. 2x1.5V 2500mAh will give 1.5V 5000 mAh... ?)
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.
-> I'm not using oscilloscopes. I'm building a DIY lasergame project. I'm biochemist and filmmaker, that's why I'm asking so many dumb questions
I will use a capacitor on the power supply, good practice, for the reason you are giving above. Thank you for that.
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?
-> Great.
Sounds right
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.
-> Well, BOD resets the chip when the voltage drops too low if I remember well, but my system must not reset... I will have a look at the BOD feature in the datasheet this WE, just in case.
Don't worry, way to complicated....[/QUOTE]
-> Okay, the simpler the better anyway
Bookmarks