Skip to content

HDQ output

HDQ is a low-side switch output on the controller. You can use it to control an external LED, a brake light, a simulated Hall signal, or a trigger for an external oscilloscope. At the end, the HDQ output operates the device that you connect to it.

Firmware

HDQ Configuration is available in firmware 6.027 and later. In firmware 6.026 and earlier, feature bits select the HDQ function. Refer to Configure the HDQ output.

Prerequisites

Prerequisites

  • The HDQ pin is connected on your wiring harness. Refer to Connector pinouts.
  • The device that you connect can operate from a low-side switch with a maximum of 100 mA.

How it works

The HDQ output is a low-side switch. When the output is active, the switch connects the HDQ pin to ground. When the output is not active, the pin floats. The maximum current is 100 mA.

HDQ Configuration sets the function of the output:

Value Function The output is active when
0 Remote Remote Digital Commands bit 9 HDQ is set. This is the default.
1 External Fault LED The fault LED of the controller is on. Use it for an external status or fault LED.
2 Replicate Hall The output simulates a Hall signal. It is active during the first third of each electrical rotation.
3 Brake Light The brake light must be off. Refer to Brake light.
4 Datalog Alignment Trigger The BACDoor®3 scope triggers. The output stays active until the end of the scope window.

HDQ Configuration values

Wiring

Connector HDQ
24-pin JST (BAC355/555/855) Pin 15
Waterproof Higo (BAC355/555/855) Orange wire
16-pin Molex MX150 (BAC2000/4000/8000) Pin 1

HDQ pin by connector

Connect the load between a positive supply and the HDQ pin. The current must be 100 mA or less. For the other pin data, refer to Connector pinouts.

Configure the HDQ output

  1. Set HDQ Configuration to the function that you use.
  2. Do the steps for that function in Additional options, if there are steps.
  3. Save the parameters to flash, and restart the controller.

WARNING

If you update from firmware 6.026 and you used Features2 bit 1 or Features bit 14, set HDQ Configuration. Firmware 6.027 does not use these bits. If you do not set HDQ Configuration, the HDQ output does not operate as before.

  • Remote: this is the default. Use Remote Digital Commands bit 9 HDQ.
  • External Fault LED: enable Features bit 14 External Fault LED on HDQ.
  • Replicate Hall: enable Features2 bit 1 HDQ Replicating Hall.

Enable only one of these bits. If you enable more than one bit, the controller uses one function, and you cannot see which one.

Verify

digital outputs (address 295) bit 2 HDQ TX shows the state of the output. The value 1 shows that the switch is active (the pin is connected to ground). The value 0 shows that the switch is off.

Make sure that the bit and the device that you connected change together.

Additional options

Brake light

Firmware

Available in firmware 6.027 and later.

With HDQ Configuration set to 3 (Brake Light), the output controls a brake light driver. The brake light comes on when the analog brake input or the regen brake switch is active.

The brake light driver must turn the light on when the switch is off (the pin floats), and turn the light off when the switch is active (the pin is connected to ground).

To also turn on the brake light during engine braking or speed mode braking:

  1. Set HDQ Brake Light Torque Threshold, as a percentage of the braking torque.
  2. Enable Features5 bit 8 Automatic Brake Light.
  3. Save the parameters to flash.

The brake light then also comes on when the braking torque is more than the threshold.

Note

If the threshold is too low, the brake light can come on when the vehicle does not slow down, for example on a slope.

Datalog alignment trigger

Firmware

Available in firmware 6.027 and later.

Use this function to align the BACDoor®3 scope with an external oscilloscope.

  1. Connect the HDQ output through a pull-up resistor to 5 V. Use approximately 1 kΩ or more, so that the current is less than 100 mA.
  2. Set HDQ Configuration to 4 (Datalog Alignment Trigger).
  3. Set the BACDoor®3 scope to single trigger mode.
  4. Connect an oscilloscope probe to the HDQ output, on the controller side of the pull-up resistor. Set the oscilloscope to trigger on the falling edge, in single trigger mode.

The HDQ output goes to 0 V when the BACDoor®3 scope triggers. It goes back to 5 V at the end of the scope window. Use the width of the pulse to align the time scales of the two instruments.

Parameters

Parameter Address Units Description
Features2 174 Bit field. Bit 1: HDQ Replicating Hall (firmware 6.026 and earlier; reserved in 6.027).
Features 212 Bit field. Bit 14: External Fault LED on HDQ (firmware 6.026 and earlier; reserved in 6.027).
digital outputs 295 Read only. Bit 2: HDQ TX, the state of the HDQ output.
Remote Digital Commands 496 Bit 9: HDQ. Controls the output when HDQ Configuration is 0.
Features5 2006 Bit field. Bit 8: Automatic Brake Light (firmware 6.027 and later).
HDQ Brake Light Torque Threshold 2013 % Braking torque above which the brake light comes on, with Automatic Brake Light. Firmware 6.027 and later.
HDQ Configuration 2306 Function of the HDQ output. 0: Remote. 1: External Fault LED. 2: Replicate Hall. 3: Brake Light. 4: Datalog Alignment Trigger. Firmware 6.027 and later.

Parameters used on this page