Narrative:

On initial approach we detect heavy smoke from our electric equipment. I immediately open the window and switched off all electric devices and lights except the ignition and radios to talk to ATC. We landed on the first available airport which was ZZZ1. After touchdown we left the runway and turned everything off and left the aircraft. The firefighters came immediately but after shutting down everything the smoke stopped.

Google
 

Original NASA ASRS Text

Title: C172 pilot reported heavy smoke in the cockpit; seeming to emanate from electrical equipment.

Narrative: On initial approach we detect heavy smoke from our electric equipment. I immediately open the window and switched off all electric devices and lights except the ignition and radios to talk to ATC. We landed on the first available airport which was ZZZ1. After touchdown we left the runway and turned everything off and left the aircraft. The firefighters came immediately but after shutting down everything the smoke stopped.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.