The spark generator is part of the pilot assembly and is responsible for generating a spark that allows the pilot burner to light. It is controlled by the electronic control board which is controlled by the user via the control panel of the appliance .