The capacitor collects electricity and releases it all in one quick burst; such as in cameras where a tiny battery can provide enough energy to fire the flashbulb.The diode stops electricity under some conditions and allows it to pass only when these conditions change. This is used in , for example, photocells where a light beam that is broken triggers the diode to stop electricity from flowing through it..