This is your ISC valve.
C40/P0505 - Circuit voltage of motor unusual - ISC valve curcuit open or shorted - Power Source Curcuit open
C40/P0506 - Idle speed lower than desired - Air passage clogged, ISC valve is fixed, ISC valve preset position incorrect
C40/P0507 - Idle speed higher than desired - ISC valve hose connection, ISC valve fixed, ISC valve preset position incorrect