Nope, bet it was the other way around... Your speedometer stopped working and your check engine light came on. A broken speedometer (don't know what car so I can't pinpoint it) will cause a whole bunch of codes.
the speedometer on my 97 toyota camary stopped working and the check engine light came on why
Check the speed sensor.
check the fuse, the speedometer does not run off of a fuse
There are pages and pages of things that can cause a check engine light. You need to have it checked with a scantool. Then the code can be diagnosed and repaired.
wipers,headlights,speedometer,door locks,air conditioner,electric mirrors, stopped working
If the speedometer stopped working on a 1990 Cadillac Seville, it could be the fuse or an electrical problem. First check the fuse and if the fuse is good, check with a mechanic.
I once had the same problem in my 89 Sunbird turbo. The computer "ECM" went bad and the speedo stopped working. I would see what ECM codes you have causing the check engine light and go from there.
If the speedometer breaks, it effects the odometer. Check the speedometer cable it may be broken, even under the insulation.
check your speedometer sensor located back left of engine bay on top of the transmission
The check engine light only comes on for something that affects emissions
Something in the speedo circuit has possibly failed and the computer set a code for it.. Have it checked for codes.
I think you need a speed sensor