A camera flash runs on a capacitor: pick the capacitor, watch the voltage rise (τ = R·C) and stop the charge with the right energy for the shot.