Some common causes of check engine lights are:
Almost any issue with the powertrain, which includes the engine and transmission, can cause the check engine light to come on. Other parts of your car such as the braking system have their own indicator lights, so you can rule them out when considering what issue has caused your check engine light to come on.
The best way to diagnose your engine issue is to go an auto repair shop. They can plug your car’s on-board diagnostic (OBD) system into a computer to reveal a code. That code will tell them exactly what triggered the check engine light.
It’s a good idea to get a check engine diagnosis as soon as the indicator comes on. Even though the problem could be very minor, some issues that trigger the check engine light get worse the more you drive. You could inadvertently turn a minor issue into something that requires major repair.
If the check engine light is solid and your car seems to be driving normally, it is usually OK to keep driving the car to the mechanic. However, a flashing check engine light indicates a major engine problem, and you should pull over immediately to prevent severe damage to your car.