Narrative:

I departed ZZZ on an instructional flight in an IFR flight plan to try to get VFR on top for training maneuvers. When leveled at 4;000 feet MSL; I was in VFR conditions between two layers and requesting radar vectors to get to an area with better conditions; I was instructed to climb to 6;000 feet but due to the outside temperature being 0 [degrees] celsius; I told ATC I was unable to climb to avoid icing conditions. As I continued on a heading of 180 as instructed by ATC; I realized I was not going to be able to get into an area of better weather conditions so I requested to go back to ZZZ on the RNAV xxl approach. As I proceeded southbound; I saw some clouds in my way so I asked for different headings to try to avoid those clouds and thus getting into icing since my aircraft is not rated for flights into known icing. Since ATC didn't give me the vectors I required I turned right to a heading of 210 to avoid this one cloud and once I started turning back to my assigned heading ATC asked me for which heading I was flying; and once I told I was turning back to 180; they gave me a phone number to call for possible pilot deviation. After that I continued following the vectors; ended up going into clouds but did not pick up any icing and landed safely at ZZZ without other problems.

Google
 

Original NASA ASRS Text

Title: PA44 pilot reported a heading deviation when ATC was slow in providing vectors around weather.

Narrative: I departed ZZZ on an instructional flight in an IFR flight plan to try to get VFR on top for training maneuvers. When leveled at 4;000 feet MSL; I was in VFR conditions between two layers and requesting radar vectors to get to an area with better conditions; I was instructed to climb to 6;000 feet but due to the outside temperature being 0 [degrees] Celsius; I told ATC I was unable to climb to avoid icing conditions. As I continued on a heading of 180 as instructed by ATC; I realized I was not going to be able to get into an area of better weather conditions so I requested to go back to ZZZ on the RNAV XXL Approach. As I proceeded southbound; I saw some clouds in my way so I asked for different headings to try to avoid those clouds and thus getting into icing since my aircraft is not rated for flights into known icing. Since ATC didn't give me the vectors I required I turned right to a heading of 210 to avoid this one cloud and once I started turning back to my assigned heading ATC asked me for which heading I was flying; and once I told I was turning back to 180; they gave me a phone number to call for possible pilot deviation. After that I continued following the vectors; ended up going into clouds but did not pick up any icing and landed safely at ZZZ without other problems.

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.