2003 Nissan Altima P0506, P0171, and P017-4 Codes: Diagnosis and Solutions
I'm seeking advice from experienced mechanics regarding a recurring issue on my 2003 Nissan Altima. The check engine light activated, and the following diagnostic codes appeared: P0506 (Idle Control System malfunction), P0171 (System too lean - Bank 1), and P0174 (System too lean - Bank 2). I previously replaced the Mass Air Flow (MAF) sensor due to damage from water ingress through a cold air intake, which burned out the original unit. After that replacement, the car ran smoothly for about four to five months. However, recently it began shaking when coming to a complete stop and has intermittently shut off. Acceleration also feels sluggish, especially at red lights. I suspect an underlying issue beyond the MAF sensor—possibly related to vacuum leaks or airflow inconsistencies. Could there be other contributing factors? Any guidance on troubleshooting would be greatly appreciated.
P0506 indicates an Idle Control System (ISC) issue where the engine RPM is not within expected range. P0171 and P0174 are both 'lean' fuel mixture codes, suggesting excess air in the intake system. Based on your description, this appears to be a new problem after the MAF replacement—so it's likely not related to the sensor itself. Check for vacuum leaks occurring downstream of the MAF sensor. Use carburetor or brake cleaner spray to test suspected areas—the engine should show a noticeable change in sound or RPM when a leak is present. Note: You mentioned a cold air intake—can you describe its setup and confirm it's a K&N filter? This could contribute to airflow issues.