Since the check engine light is coming on it would be best to see if it's setting a code. You may be able to retrieve the code yourself and then find out what is setting it.
This would be a good start, then I would have someone look at the vehicle since it's hard to diagnose the problem without seeing the vehicle.
〉 Answered on Jan 8th, 2007 by Lori Johnson, Owner and Instructor at Ladies Start Your Engines
Many things can cause this problem,
the fact that the check engine light comes on means it should be easy for an ASE
certified echnician to diagnose. Make sure you only take it to an ASE certified tech to diagnose the issue.
You can find an ASE certified tech near you by going here: