Powering BS2p with Super Cap
civster
Posts: 17
I'm currently looking for a solution regarding a way to save variable values to eeprom in an event of a power failure and I've though of powering the BS2p with a super cap and a diode to isolate the cap and the stamp with the rest of the circuit. The super cap will only power the stamp for a few seconds, just enough time for the stamp to detect the power failure and write to the eeprom.
I'm wondering if anyone had any experience with super caps and BASIC Stamp together and whether the above design would work.
I'm wondering if anyone had any experience with super caps and BASIC Stamp together and whether the above design would work.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Best Regards
Manuel C. Reinhard
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Best Regards
Manuel C. Reinhard
Your plan should work fine. I have done the same thing with excellent results. As long as the cap has enought juice to power your circuit for long enough for the Stamp to detect the power out and write to the EEPROM, it's a good system. All Electronics has some good prices on super caps.
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
I'm not so sure about having the super cap available for the whole circuit. I'm leaning towards just the BS2p module.
I did an experiment today by placing a diode and the largest capacitor (10 uF) I have between the regulated 5 volt supply and the Vdd pin of the BS2p and I noticed that the stamp would not startup. I have ~5 volts going into the Vdd pin of the stamp according to my DMM.
I've read somewhere that when a super cap is in your application, they could simulate a short for a brief moment until they are fully charged. I've never though of trickle charging them for I'm hoping my regulator can handle one super cap and I'm also trying to make my application as simple as possible.
Any advise on trickle charging a super cap are welcome.
Actually now that I think about it, just buy a brown-out detector chip which will hold the stamp in reset, this will be the easiest and most "bullet-proof" solution.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Post Edited (Paul Baker) : 8/4/2005 4:41:58 PM GMT
The MAX703 is an example of a circuit which should be able to be used, instead of the lithium battery, you should be able to replace it with a diode and supercap, while it charges the MAX703 will hold the stamp in reset. and the /PFO should provide indication of a power fault to your stamp.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
just what came in mu mind !
Amaral.
Thanks for the info regarding the MAX703, it's datasheet has a diagram regarding using a super cap and a diode.
My other question is, like Amaral suggested, I don't want to charge the super cap instantaneously and I'm wondering if there is a formula to calculate the resistor value to charge a 0.1 Farad 5v super cap in 5 seconds. The 5v regulator that will be charging the super cap can source up to 1 amp.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Thanks for the RC time formula. I calculated that I need approximately an 8 ohm resistor to recharge a 0.1 farad super cap to ~5v in 5 seconds. I understand that the super cap will never equal the charging voltage for the time to charge it will be infinite.
I also made a decision on how the BS2p will recognize a power failure. I will have it poll an active high input pin that it hardwired to a 5 volt source just outside of the MAX703 circuit. When a power failure occurs, that pin will go low and since the BS2p is still powered, it will see that the pin has changed state and it will then perform a write to the eeprom.
Post Edited (civster) : 8/7/2005 5:34:31 AM GMT
I haven't investigated it completely, but you should consider using the /PFO pin on the MAX703 as your polled indication of a power fault.
If I remember correctly, in college we considered a cap to be completly charged when it is at 99.1% capacity.·I think the figure comes from the Vdd/Vc·(Vc is the voltage across the capacitor) at a certain number of times the time constant, but my memory is fuzzy, and it was a·rule of thumb so I don't think I would be able to verify this by looking through my bookcase of electronics books.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Even with a "perfect" diode with zero voltage drop, the peak charge current for the super cap with 8 ohm resistor will be 0.625 amp. The rest of my application will probably draw around 200 mA, so that is within the limits of my 5 volt regulator with some underrating.
According to the MAX703 datasheet the PFO works with PFI. When ever PFI goes below 1.25 volts, PFO goes low. PFI's maximum voltage input is 1.30 volts and the typical connection for it is to the unregulated source via a voltage divider.
The PFO will not work for my application due to my unregulated source can vary from 24 to 30 volts. Also, a voltage divider will increase the parts count for my application.
I believed it's after the fifth iteration of the time constant that a capacitor should be considered fully charged.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot