PA-28 Cherokee/Archer/Dakota/Pillan/Warrior
Flight Crew Private
Flight Crew Last 90 Days 23; Flight Crew Total 106; Flight Crew Type 22
Confusion; Distraction; Troubleshooting
Airspace Violation All Types; Deviation / Discrepancy - Procedural Published Material / Policy; Deviation / Discrepancy - Procedural FAR
Flight Crew Exited Penetrated Airspace
Human Factors; Software and Automation; Procedure
I was taking off from ZZZ to ZZZ1 for landing practice and familiarizing myself with a new auto pilot (AP) installed in the plane that I had just been shown earlier on the ground.After engaging the AP and setting the altitude for 3;500 feet MSL under the bravo; I turned my attention to the GPS and working on modifying my flight plan and setting my course. When I rechecked the instruments; I had unknowingly continued my climb to 4;100 feet MSL penetrating the ORD Bravo airspace that had started at 4;000 feet MSL. Upon realizing where I was; I disengaged the AP completely; lowered the nose and descended to 3;300 feet MSL and proceeded to continue my flight.I was in the ORD Bravo airspace for less than a minute.I needed to double check that the AP had actually done what I had set it for as opposed to assuming that the altitude was held where I had set it. I also should have continued west from ZZZ instead of turning southwest to clear the bravo completely prior to working with the AP.
PA-28 reported inadvertently flying into ORD Class B airspace due to newly installed autopilot.