Engine cutting out while I'm driving

I drive an early 1994 mazda protege 2.0L DOHC. This car has been randomly shutting off while I am driving, frequently when I am letting my foot off the gas pedal. Sometime it will start right up again and sometimes it takes a lot of tries to get it going and when it starts hard like that there is usually a large amount of smoke in the exhaust.



It was fine most of the winter until a month ago when I could not get it to start again without push starting it. I paid a mechanic $50 to tell me I had a bad battery and nothing else. I replaced the battery and everything ran fine until today. I was driving down the road and it shut off again. I popped the clutch and it started up again but now I’m very concerned. It had been worse usually in the warmer weather. I just did a tune up. New fuel filter, air filter, cap and rotor, plugs and wires, PCV valve. I’ve cleaned the entire air intake system and just replaced all the belts as well. Any suggestions?

When you take your foot off the gas pedal, the throttle plate goes to the idle position. Using signals from various sensors [MAF (Mass Air Flow), engine coolant temperature (ects)] the engine computer adjusts the throttle body idle air control valve (iacv) to vary the amount of extra air going through the throttle body, and on into the engine cylinders.
When all of these parts don’t operate correctly, the engine runs badly, or stalls.
What to do? Use MAF cleaner to clean the MAF (carefully), use Throttle Body Cleaner to clean the throttle plate and bore, and the passages to and from the iac valve and the iac valve pintle (“gate”).
The repair manual has instructions for checking the iac valve and the sensors with a digital multimeter (ohms, voltages). Some can, some can’t (use a multimeter).

An EGR valve stuck open…Disconnect it for a while and see what happens…