Capacitors are components that are used to store an electrical charge and are used in timer circuits. A capacitor may be used with a resistor to produce a timer. Sometimes capacitors are used to smooth a current in a circuit as they can prevent false triggering of other components such as relays. When power is supplied to a circuit that includes a capacitor - the capacitor charges up. When power is turned off the capacitor discharges its electrical charge slowly.