E39 Headlights dim when I press the brakes

Hello,
I have a 2000 E39.
Tonight when I started the car, the "Service engine soon" light was illuminated. The car seemed to be running fine. I started to notice though
when my foot hits the brake pedal the headlights will dim. It seem to get more noticeable later.
What could be the problem?
Thanks, Jeff
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
The Check Engine light means the computer has detected a problem and stored a code. You need to find out what the code is.
Your car is OBD II (on board diagnostics, level 2) compliant. This means you can buy a code reader at virtually any auto parts store for about the same price as paying BMW to plug in the reader they have and pull the codes for you, OR you can ask them at AutoZone to pull the codes or let you use the scan tool and pull the codes yourself. AutoZone does this for free.

Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

Lights dimming when you press the brakes sounds like the alternator isn't charging properly.
--
*The statement above is false

Dave Plowman snipped-for-privacy@davenoise.co.uk London SW
  Click to see the full signature.
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
Dave Plowman (News) wrote:

Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

You might check your charging system and your battery it might have lose connections/if it was the alternator it would do it when you turned on or off any electrical appliance....
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
snipped-for-privacy@hotmail.com wrote:

It will likely be corrosion on one of the light units
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

Motorsforum.com is a website by car enthusiasts for car enthusiasts. It is not affiliated with any of the car or spare part manufacturers or car dealers discussed here. All logos and trade names are the property of their respective owners.