Narrative:

Climbing out from ZZZ. After about 3 minutes; had some electrical smoke and odor in the cabin. Aircraft was recently out of a large inspection and repair process. I pulled almost all the circuit breakers that were not absolutely essential for flight. Left electric fuel pumps breakers in for auto pumps. Transponder for operating near a class B air space. And all engine instrument breakers to keep track of engine temps; torque and fuel flows. Pulled most of the breakers one by one to see if any one at a time would eliminate the odor and light electrical smoke issue. Not paying good attention to aircraft during this trouble shooting process; and emergency as I considered the event; at my position and altitude while climbing; I inadvertently entered the ZZZ1 class B airspace. By the time I realized the aircraft was in the outer ring at or above 4;000 feet after working the electrical issue; I was already exiting the airspace to the south east and had climbed to about 10;000 feet. The odor started thinning out and as each circuit breaker was reset and I turned towards my home base airport of ZZZ2 to land and report the problem to our maintenance base. Next time; I would most likely handle the event the same way because my concern was mostly an electrical fire possibly becoming a major event. I could have turned a bit more east but that was not on my mind when the light smoke and odor started to become obvious inside the cabin.

Google
 

Original NASA ASRS Text

Title: Piper Twin Turboprop pilot reported 'electrical smoke and odor' shortly after takeoff. Fumes dissipated after troubleshooting problem.

Narrative: Climbing out from ZZZ. After about 3 minutes; had some electrical smoke and odor in the cabin. Aircraft was recently out of a large inspection and repair process. I pulled almost all the circuit breakers that were not absolutely essential for flight. Left electric fuel pumps breakers in for auto pumps. Transponder for operating near a Class B air space. And all engine instrument breakers to keep track of engine temps; torque and fuel flows. Pulled most of the breakers one by one to see if any one at a time would eliminate the odor and light electrical smoke issue. Not paying good attention to aircraft during this trouble shooting process; and emergency as I considered the event; at my position and altitude while climbing; I inadvertently entered the ZZZ1 Class B airspace. By the time I realized the aircraft was in the outer ring at or above 4;000 feet after working the electrical issue; I was already exiting the airspace to the south east and had climbed to about 10;000 feet. The odor started thinning out and as each circuit breaker was reset and I turned towards my home base airport of ZZZ2 to land and report the problem to our maintenance base. Next time; I would most likely handle the event the same way because my concern was mostly an electrical fire possibly becoming a major event. I could have turned a bit more east but that was not on my mind when the light smoke and odor started to become obvious inside the cabin.

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.