Date: 201503
Local time of day: 0601-1200
Location: ZZZ.Airport, US
Flight conditions: VMC
Light: Daylight
Aircraft: Cessna 150
Operator: Personal
Operating under: Part 91
Flight plan: None
Mission: Training
Flight phase: Cruise; Descent; Landing
Airspace: Class B ZZZ; Class D ZZZ; Class G ZZZ
ATC / advisory: CTAF ZZZ; TRACON ZZZ; Tower ZZZ
Aircraft component: Electrical Power
Component problem: Failed
Reporter organization: Personal
Reporter function: Pilot Flying; Single Pilot
Reporter qualification: Flight Crew Instrument
Human factors: Workload; Troubleshooting; Situational Awareness; Distraction; Confusion; Communication Breakdown
Anomaly: Aircraft Equipment Problem Less Severe; Airspace Violation All Types; Deviation / Discrepancy - Procedural Published Material / Policy
Detector: Person Flight Crew
When detected: In-flight
Result: Flight Crew Took Evasive Action; Flight Crew Landed in Emergency Condition; Flight Crew Diverted; General Maintenance Action
Contributing factors: Aircraft; Airspace Structure; Environment - Non Weather Related
Primary problem: Aircraft

Narrative: While being vectored for a practice instrument approach I encountered an electrical issue that affected both Nav and Comm radios. Next ATC notified me transponder was not broadcasting altitude. Controller handed me off to the tower controller. The tower controller advised transponder was not broadcasting altitude and Nav being used for approach showed 'off'. I cancelled approach and tower advised not to descend below altitude of 2000' MSL. I was checking fuse and recycled Nav/Com. The Nav/Com being used to speak to tower was still operational. As tower approved descent to an altitude to avoid Class B. I lost contact with the tower on remaining radio.I am not sure if I changed transponder code while in Class D airspace or as I entered into Class G. My knobs on transponder are analog and I switched knobs to what I thought was 7600. I finished recycling both Nav/coms and noticed I was quickly approaching Class D airspace of the adjacent airport.A climb was initiated to get over 2800 feet to avoid Class D; but in my estimation I would not make it over 2800 feet so I turned west to avoid Class D. Next portion of flight was to a small airport which has parachute jumping so I overflew field to look for the distinctive colors of the aircraft on the ground so as not to cause harm to any parachutists.I started my approach while a call was made to the office at my home airport to advise of electrical problem; however; the answering machine came on.There indeed was no power as I could not get the electrically powered flaps to deploy and committed to a no flap landing.When the office manager gave me a number to call to speak to TRACON I explained the foregoing as I did not realize the transponder was reading 7500 rather than 7600 along with flying the aircraft being first priority. I will make it my practice to confirm transponder settings more often as time permits.




Synopsis: A C-150 electrical system failed during a practice instrument approach to a Class D airport. Without radios the pilot navigated through and around Class B and D airspaces to return to the home airport.