absolute beginner: basic question - limiting the time of power output
The following simple circuit will produce a light pulse







simulate this circuit &ndash; Schematic created using CircuitLab

The capacitor is charged when the switch is in the initial state. When the switch is activated it is discharged through the LED.

Size the capacitor according to the length of the desired pulse.