Clean out the throttle housing and butterfly plate to get rid of all carbon build up. Use a cloth or toothbrush - no abrasive -.and carb cleaner/brake cleaner/solvent. Ensure no splits or holed vacuum pipes around the engine.
To test the idle speed control valve without a scanner, warm engine, rev up to 3,000rpm for a few seconds then foot straight off accelerator. The revs should drop to about 1,100 then slowly down to idle speed. Now switch lights, screen and heater on and repeat. If the revs do the same the valve is working. If the revs at any time drop straight to say 750rpm, then the valve is suspect. If this problem only happens when coming to junctions, lights etc, then disconnect the speed sensor and it should get better.