Forgot to add the last bit of this install, the final wiring job. I happened upon a wrecked 2009 Mazda 5 touring in the junkyard, same model as mine. Engine and front end was gone so I was able to get a better idea how the wiring is laid out and grab a bit of wiring to study and use.
Main body harness connector behind the glove box:
You can see two wires (Gr/R & Gr) representing reference voltage and signal for the potentiometer (headlight level switch). This is the body interior side:
On the other side of the connector, notice there aren't any wires on the engine side that complete the Gr/R & Gr wires. It terminates here, and it is here, where you will decide if you will de-pin and continue the connection like OEM, or snip and solder them to extend wiring into the engine bay:
I decided to de-pin the junkyard connector and add those into my 5's body harness connector into the missing terminals:
The two missing wires are added in and extended into the engine bay to work it's way against the firewall, around the battery, and towards the fusebox. next to the airbox. You'll connect the the pair of 3 (total of 6 wires) from the HID headlights in fron into 3 leads: (Gr/R: reference voltage, Gr: Signal, B: ground).
- B black will go directly to a ground point, which is easy since the battery negative on the fender is handy.
- Gr Grey, the signal, is simply connected from the pair of HIDs to the extended wire from the body harness connector.
- Gr/R: Grey/Red A reference voltage is needed to flow from the fuse box to the highlights AND headlight level switch at the same time as designed by the factory.
Reference voltage can be tapped into easily with an Add-A-Fuse into the headlight relay 15A slot. Making two 15A slots just like a Grand Touring model has:
I've found the low profile Add-A-Fuse doesn't fit very well (these Mazdas use low profile mini fuses annoyingly), a standard taller mini fuse version fits perfectly.
And thats it! Headlights can now pivot with factory precision and you can avoid blinding folks when you over load the rear.
Enjoy