Error P0504: Meaning and Causes

Ivan Matieishyn Ivan Matieishyn
0
0
0

The diagnostic trouble code P0504 stands for Brake Switch A/B Correlation (or mismatch between sensor 1 and 2 signals). It appears when the ECU receives contradictory information regarding the current position of the brake pedal.

Most frequently, error P0504 is recorded in Lada (Kalina, Granta, Priora, Vesta, Largus), Datsun (On-DO, mi-DO), Renault (Logan, Duster), Toyota (Corolla, Land Cruiser Prado), and other models where this data is transmitted to the controller via a four-pin brake light switch.

P0504 error in diagnostic software

In this article, we will discuss why error P0504 occurs and how to find and eliminate the cause of the discrepancy in brake sensor signals.

Symptoms and Conditions for DTC P0504

DTC P0504 is triggered by specific signals sent to the electronic control unit (ECU) from the brake light limit switch. In a number of vehicles, particularly Lada models with an electronic accelerator pedal, two pairs of contacts are combined within the switch housing: normally closed (for brake pedal position) and normally open (for the brake light circuit). When the pedal is depressed, the first contact opens, and the second closes.

Information about the state of both contacts is sent to the ECU. If their values do not correspond to each other—for example, if both contacts are closed or open simultaneously, or if the accelerator pedal is pressed while the brake pedal is registered as depressed—error P0504 is generated.

Since this algorithm ensures the safety of vehicle operation, in the event of malfunctions in the electronic throttle system or repeated discrepancies between the brake and accelerator pedal sensor signals, the engine may enter limp mode (emergency operation mode).

Therefore, along with error code P0504, certain symptoms may manifest:

P0504 error description in diagnostic software

  • The brake lights stay on constantly or do not illuminate when the brake pedal is pressed.
  • Cruise control does not activate.
  • Dynamics deteriorate: engine speed does not rise above 1250–1500 rpm and/or drops to idle during acceleration; the engine stalls or fails to start.
  • On vehicles with automatic transmission, there may be problems shifting the gear selector.
  • The Check Engine light illuminates on the dashboard (usually after the error is detected multiple times).
The set of symptoms depends directly on the nature of the fault, the ECU logic, and the design features of the specific model. In some cases, the malfunction may not reveal itself in any way other than an error code in the memory.

Causes of Brake Sensor Correlation Errors and Solutions

In most cases, error P0504 arises due to a malfunction of the brake light limit switch or its incorrect adjustment (if adjustment is required). However, a failure is also possible if bulbs in the rear lights burn out or non-standard bulbs are installed. The main causes of brake sensor signal discrepancy and ways to eliminate them are reviewed in the table below.

Causes and solutions for error P0504
Faulty ElementReason for FailureHow to Eliminate
Brake light limit switchIncorrect adjustmentAdjust the position so that the plunger is fully retracted into the housing when the pedal is released
Weakened or broken springReplace the spring or replace the sensor itself
Burnt or oxidised contactsClean the contact plates with sandpaper or a needle file, or replace the switch entirely
Brake light bulbsFilament burnt outReplace the bulb
Non-standard bulbs with lower resistance installed (e.g., LED)Add a resistor to the circuit, replace with CAN-bus compatible bulbs, or revert to standard bulbs
FuseBrake light circuit fuse has blownReplace the fuse; if it blows again, check the circuit for a short circuit
Circuit between the limit switch, ECU, brake lights, and batteryBroken wires, damaged insulation, or contact terminalsVisually check the integrity of wires and contacts; check wiring continuity with a tester or test light
ECUDamaged contacts, failure of elements on the controller boardReplace contacts and faulty components

After eliminating the cause of the malfunction, it is necessary to clear error code P0504 using a diagnostic scanner or a dedicated app; otherwise, the engine may continue to operate in limp mode.

Diagnostic Procedure for Error P0504

To perform certain diagnostic operations when error P0504 appears, a multimeter or a test light is required. If you do not have an assistant to check the operation of the limit switch and the state of the brake lights, you can reverse up to a wall so that the glow of the brake lights is visible in the mirrors.

  1. Check the brake lights by pressing and releasing the brake pedal several times. The lamps should light up when the brake pedal is depressed by 2–3 cm and go out when released. Blinking or flickering indicates a poor contact, while intermittent failure indicates incorrect adjustment or wear of the limit switch.
  2. If error P0504 appears after replacing brake light bulbs with LEDs, first try reinstalling the standard halogen bulbs. The problem is likely due to the resistance difference.
  3. If the lamps do not light up when the pedal is pressed, ensure that the brake light circuit fuse has not blown.
  4. Switch connection diagram,
    click to enlarge
  5. Inspect the limit switch connector; ensure it is secure and there is no external damage.
  6. Check the brake light limit switch and its adjustment. The detailed checking procedure is analysed in the next section.
  7. Check the power supply to the sensor using a multimeter or a test light. Power (12 V) should be constantly supplied to one of the terminals. Refer to the vehicle's wiring diagram to identify the corresponding contact. If there is no power, sequentially check the relevant circuit.
  8. If power is present and the sensor is functioning, check the signal output to the corresponding ECU contacts using a multimeter with the pedal pressed and released. The presence of signals indicates a malfunction within the controller itself.

Testing, Repair, and Adjustment of the Brake Light Switch on Various Car Makes

Inside the four-pin brake switch, there are two pairs of contacts, the state of which depends on the position of the plunger: when fully depressed and fully extended. One pair is always closed (resistance close to zero), and the other is open (resistance of several kOhms or more). If for some reason the contact group does not work properly, error P0504 occurs.

Testing the Brake Light Switch

Checking the brake light switch involves testing the continuity of the contact pairs in the normal position—with the plunger extended and with it depressed, simulating a brake pedal press. The normal contact states of a working switch for some popular models are given in the table below.

ModelContact State
Plunger Depressed (Pedal released)Plunger Extended (Pedal pressed)
Toyota Rav43–4 closed
1–2 open
3–4 open
1–2 closed
Lada (Priora, Kalina, Granta, 4x4)
Datsun (on-DO, mi-DO)
Gazelle Next, Business
1–4 open
2–3 closed
1–4 closed
2–3 open
Lada (Largus, Vesta, XRAY)
Renault (Logan, Duster)
3–4 open
1–2 closed
3–4 closed
1–2 open

If the test shows that the contacts open and close properly, error P0504 may be related to either incorrect adjustment of the brake light switch (not required on all models) or faulty wiring and other causes listed above. If the multimeter readings do not match the parameters of a working switch, it must be replaced or repaired.

Repairing the Brake Pedal Limit Switch

Diagnosis and repair of the brake light switch: video

The two main reasons for the failure of the brake light limit switch are oxidised or burnt contacts and a broken or weakened spring. An indirect sign of the second problem is a shorter plunger travel compared to a working one, or excessive free play.

To repair the switch, it must be removed. First, disconnect the connector by pressing the release tab. In some cars, such as the Lada Kalina and Granta, you need to unscrew a fastening nut; in others, like the Lada Largus and Vesta, simply turn the housing 90 degrees anti-clockwise and remove it from the mount.

Next, disassemble the sensor housing, which is held together by clips, and inspect the condition of the spring and contacts. Oxidised or burnt contacts can be cleaned with sandpaper and treated with a contact cleaner. A broken spring should be replaced with a new one of similar length (for the switch 1118-3720010 installed on Lada cars, a spring with a diameter and height of 6–8 mm is suitable), and a weakened one can be stretched, although this will only help temporarily.

Repairing the brake pedal switch is generally a temporary measure for when you cannot quickly find or purchase a replacement part. Usually, a restored switch will soon begin to malfunction again. Therefore, it is better to install a new switch immediately if possible.

Switch replacement and adjustment: video

Adjusting the Brake Pedal Switch

Error P0504 in Lada (Priora, Kalina, Granta, 4x4), Datsun (on-DO, mi-DO), Gazelle Next, and Business models with the old-type switch (part number 1118-3720010) and other models with a similarly constructed brake light switch may be due to incorrect adjustment. In this case, the switch is secured to the brake pedal bracket using a pair of nuts.

The correct position is considered to be when the gap between the plunger tip and the switch housing does not exceed 0.5–1 mm when the brake pedal is not pressed. If the distance is greater, the pressure from the pedal stop is insufficient to depress the plunger enough to close and open the corresponding contacts.

Tip: When replacing a faulty brake light switch, set the lock nut on the new part at the same distance as it was on the old one. This usually avoids the need for further adjustment.

Newer types of switches that lock onto the bracket without a nut (removed by turning the housing), particularly those installed on some Lada (part number 21700372001000) and Renault (part number 8200168238) cars, are self-adjusting. Before installation, simply pull out the ribbed plunger; it will automatically assume the correct position after mounting.

New type limit switch

Adjusting the new type switch: video

The switch has a plunger with a mushroom-shaped head that protrudes fully. After installing the limit switch, you must gently release the pedal so that it returns to the top position. The pedal will click the plunger into the correct setting as required.

Was this article useful?

Your feedback helps us improve our content.

Didn't find the answer to your question?
Ask in the comments. We will definitely answer!

Discussion (0)

Log in to comment!
Log In

No comments yet!