C172 student pilot reported inflight electrical system burning and loss of a number of electrical system components. Pilot diverted and landed.
Synopsis
C172 student pilot reported inflight electrical system burning and loss of a number of electrical system components. Pilot diverted and landed.
Narrative
We departed the ZZZ airport. Around 10 minutes into the flight the autopilot disengaged on its own while cruising at six thousand feet indicated. Due to the fact that the air was turbulent we figured it was due to the turbulent air. I hand flew the aircraft for a few minutes and then reengaged the autopilot. A few minutes after reengaging the autopilot the autopilot disengaged for a second time. This time in non-turbulent air. As we were attempting to try and figure out the autopilot issues with the quick reference card; I smelled a burning plastic electrical smell and we began to lose our flight instruments. After smelling the plastic smell we also observed a slight white smoke emitting from under my left leg. We lost our G5 PFD; COMM one and two; GTN650; and transponder. The GPS and the transponder would shut off and occasionally flicker on and off. At this point we powered off the master switch and moved the avionics master to the off position; while also leaving our altitude and diverting to the ZZZ1 airport. After securing the electrical system we attempted to get at least one radio back to communicate with ATC and the firetrucks at ZZZ1. After getting a functional radio we [requested priority handling] and told approach to standby as we finished running a checklist. We diverted to the ZZZ1 airport due to a longer runway and the availability of ARFF equipment if needed. We executed a landing at the ZZZ1 airport.
Source: NASA Aviation Safety Reporting System (public domain). Reports are voluntary submissions and are not verified by NASA.