The main things that you need to look at when selecting capacitors for a power supply is the voltage rating of the capacitor, if it needs to be polarized, and the equivalent series resistance.
The datasheet of the IC that you are using will specify what value of capacitor you need and many times will specify the actual type of capacitor required.
Electrolytic Caps are polarized which doesn't work well for AC signal, but is the cheapest way to get a high value capacitance, which is why they are used a lot in power supplies.
So, in short, yes, any cap should work OK as long as you are in the allowable voltage range.
How safe are pre-charged supercaps compared to pre-charged batteries?
I'm designing a solar-powered system and I'd like to use something like a Maxwell's BCAP0005 supercap (2.7V, 5F) to store a lot of energy.
This supercap is far less energetic and far less dangerous than a battery pack of 2500 mAh AA cells or even than an individual AA cell.
The supercap that you have chosen would produce a burst of power for a fraction of a second that slightly exceeded what you would usually get from a modern 2500 mAh NimH AA cell - but it would then be fully discharged.
A single AA cell would however produce somewhat less power but for many minutes. A single cell or a few of them in a battery would be quite capable of creating very high temperatures and starting a fire. The supercap could be used to start a fire only with great difficulty.
Some supercaps or ultracaps are far more capable than this one. Some can be used for eg automobile starting.
" .... pants on fire" - almost: On "a few occasions" I have come close to setting my trouser pocket on fire or of burning myself with the temperatures generated by (stupidly) carrying a number of AA NimH cells (under 2000 mAh capacity) plus coins and keys in the same pocket and having a conductive path form. Removal of the cells from the pocket suddenly becomes one's sole and overwhelming priority with removal of trousers a close second choice. This is not an experience that I intend to replicate in future :-). On such occasions some coins or keys achieve temperatures well above their safe handling level in a few seconds. The supercap chosen as an example could not achieve this result.
First, let's look at the energy capacity aspects:
By any normal meaning of the term, a 2.7V, 5F capacitor will not store "a lot of energy". If all the energy in the capacitor was available it would provide E = 0.5 x C x V^2 Joule. For a 2.7V, 5F capacitor E = 0.5 x 5 x 2.7^2 =~ 18 Joule.
By comparison a 2500 mAh AA battery will provide about
E = V x Ah x 3600 Joule
= 1.2 x 2.5 x 3600 = 10,800 Joule.
So the 5F supercap will store about 18/10,800 =~ 0.17% of the energy in the battery. Also, whereas the battery will be able to deliver almost all this energy in a typical application, the supercap will need extra effort to recover energy as the voltage approaches zero.
Discharge safety:
Where a supercap is useful compared to a battery is in it's ability to charge rapidly and to discharge rapidly, and to do so over many more cycles than a battery can with little loss in capacity.
in SOME cases this rapid charge & discharge capability is large compared to that of a typical battery, and is extremely large compared to that of a battery when expressed in terms of their total capacity.
However, the example that you have chosen, and all the other members of its family, are far "wimpier" than some super/ultra caps. The data sheet available here shows internal resistance of 170 milliohms suggesting a short circuit current of around 2.7/0.17 =~ 16A when fully charged, and the typical short circuit current is shown as 16A at 65C and 14A at 85C. As temperature would rise rapidly and equivalent voltage (once de-shorted) would fall very rapidly under short circuit (as at 18 J gross capacity the s/c discharge time would be well under 1 second) this capacitor would not produce vast amounts of energy (maybe 20 to 30W peak) and only for well under 1 second.
A typical modern NimH AA cell contains much more energy and will deliver much much more power for much longer.
For example a 2.5 Ah Nimh AA cell may be typically discharged at up to about 5A and may have a loaded discharge capacity in the 10A to 20A range for short periods at very reduced voltage. So it's output Wattage almost matches what the supercap will produce for a fraction of a second, BUT the battery will produce 10+ Watts for many seconds and 5+ Watts for many minutes.
Best Answer
Summary:
"When used properly" tantalum capacitors are highly reliable.
They have the advantage of high capacitance per volume and good decoupling characteristics due to relatively low internal resistance and low inductance compared to traditional alternatives such as aluminum wet electrolytic capacitors.
The 'catch' is in the qualifier "when used properly".
Tantalum capacitors have a failure mode which can be triggered by voltage spikes only 'slightly more' than their rated value. When used in circuits that can provide substantial energy to the capacitor failure can lead to thermal run-away with flame and explosion of the capacitor and low resistance short-circuiting of the capacitor terminals.
To be "safe" the circuits they are used in need to be guaranteed to have been rigorously designed and the design assumptions need to be met. This 'does not always happen'.
Tantalum capacitors are 'safe enough' in the hands of genuine experts, or in undemanding circuits, and their advantages make them attractive. Alternatives such as "solid aluminum" capacitors have similar advantages and lack the catastrophic failure mode.
Many modern tantalum capacitors have built in protection mechanisms which implement fusing of various sorts, which is designed to disconnect the capacitor from its terminals when it fails and to limit PCB charring in most cases.
If 'when', 'limit' and 'most' are acceptable design criteria and/or you are a design expert and your factory always gets everything right and your application environment is always well understood, then tantalum capacitors may be a good choice for you.
Longer:
Solid Tantalum capacitors are potentially disasters waiting to happen.
Rigorous design and implementation that guarantees that their requirements are met can produce highly reliable designs. If your real world situations are always guaranteed to not have out of spec exceptions then tantalum caps may work well for you, too.
Some modern tantalum capacitors have failure mitigation (as opposed to prevention) mechanisms built in. In a comment on another stack exchange question Spehro notes:
Strangely, I can find nothing about the "ignition failure" feature in their other data sheets.
Solid Tantalum electrolytic capacitors have traditionally had a failure mode which makes their use questionable in high energy circuits that cannot be or have not been rigorously designed to eliminate any prospect of the applied voltage exceeding the rated voltage by more than a small percentage.
Tantalum caps are typically made by sintering tantalum granules together to form a continuous whole with an immense surface area per volume and then forming a thin dielectric layer over the outer surface by a chemical process. Here "thin" takes on a new meaning - the layer is thick enough to avoid breakdown at rated voltage - and thin enough that it will be punched through by voltages not vastly in excess of rated voltage. For an eg 10 V rated cap, operation with say 15V spikes applied can be right up there with playing Russian Roulette. Unlike Al wet electrolytic caps which tend to self heal when the oxide layer is punctured, tantalum tends not to heal. Small amounts of energy may lead to localised damage and removal of the conduction path. Where the circuit providing energy to the cap is able to provide substantial energy the cap is able to offer a correspondingly low resistance short and a battle begins. This can lead to smell, smoke, flame, noise and explosion. I've seen all these happen sequentially in a single failure. First there was a puzzling bad smell for perhaps 30 seconds. Then a loud shrieking noise, then a jet of flame for perhaps 5 seconds with gratifying wooshing sound and then an impressive explosion. Not all failures are so sensorily satisfying.
Where the complete absence of overvoltage high energy spikes could not be guaranteed, which would be the case in many if not most power supply circuits, use of tantalum solid electrolytic caps would be a good source of service (or fire department) calls. Based on Spehro's reference, Kemet may have removed the more exciting aspects of such failures. They still warn against minimal overvoltages.
Some real world failures:
Wikipedia - tantalum capacitors
Kemet - application notes for tantalum capacitors
AVX - voltage derating rules for solid tantalum and niobium capacitors
With the recent introduction of niobium and niobium oxide capacitor technologies, the derating discussion has been extended to these capacitor families also.
Vishay - solid tantalum capacitor FAQ
A. The 893D series was designed to operate in high-current applications (> 10 A) and employs an “electronic” fusing mechanism. ... The 893D fuse will not “open” below 2 A because the I2R is below the energy required to activate the fuse. Between 2 and 3 A, the fuse will eventually activate, but some capacitor and circuit board “charring” may occur. In summary, 893D capacitors are ideal for high-current circuits where capacitor “failure” can cause system failure.
Type 893D capacitors will prevent capacitor or circuit board “charring” and usually prevent any circuit interruption that can be associated with capacitor failure. A “shorted” capacitor across the power source can cause current and/or voltage transients that can trigger system shutdown. The 893D fuse activation time is sufficiently fast in most instances to eliminate excessive current drain or voltage swings.
Capacitor guide - tantalum capacitors
What a cap-astrophe
I did some Internet research on tantalum-capacitor failures and found that the tantalum capacitors' pellets contain minor defects that must be cleared during manufacturing. In this process, the voltage is increased gradually through a resistor to the rated voltage plus a guard-band. The series resistor prevents uncontrolled thermal runaway from destroying the pellet. I also learned that soldering PCBs at high temperatures during manufacturing causes stresses that may cause microfractures inside the pellet. These microfractures may in turn lead to failure in low-impedance applications. The microfractures also reduce the device's voltage rating so that failure analysis will indicate classic overvoltage failure. ...
Related:
AVX - surge in solid tantalum capacitors
Failure modes and mechanisms in solid tantalum capacitors - Sprague / IEEE abstract only. - OLD 1963.
AVX - FAILURE MODES OF TANTALUM CAPACITORS MADE BY DIFFERENT TECHNOLOGIES - Age ? - about 2001?
Effect of Moisture on Characteristics of Surface Mount Solid Tantalum Capacitors - NASA with AVX assistance - about 2002?
Hearst - How to spot counterfeit components
Sometimes it's easy :-) :
Added 1/2016:
Related:
Test for reverse polarity for standard wet-aluminium metal can capacitors.
Brief:
For correct polarity can potential is ~= ground. For reverse polarity can potential is a significant percentage of applied voltage.
A very reliable test in my experience.
Longer:
For standard wet Al caps I long ago discovered a test for reverse insertion which I've not ever seen mentioned elsewhere but is probably well enough known. This works for caps which have the metal can accessible for testing - most have a convenient clear spot at top center due to the way the sleeve is added.
Power up circuit and measure voltages from ground to can of each cap. This is a very quick test with a volt-meter - -ve lead grounded and zip around cans.
Caps of correct polarity have can almost at ground.
Caps of reverse polarity have cans at some fraction of supply - maybe ~~~= 50%.
Works reliably in my experience.
You can usually check using can markings but this depends on intended orientation being known and clear. While that is usually consistent in a good design this is never certain.