Next, we will introduce the transformer function of spotlights. A transformer is an electronic component that converts high-voltage electricity to low-voltage electricity, or vice versa. The transformer in a spotlight primarily functions to change the voltage to better suit indoor lighting needs. Spotlight transformers are typically located inside the lamp holder or power supply.