KDE Direct UVC series ESC
DroneCAN QuickStart Guide
REV 1.0.4 Last Modified (January 29, 2024)
Overview
This document covers the steps and components needed to enable DroneCAN with a KDE Direct UVC series ESC and a Pixhawk 2.1 (CUBE). The configuration steps for the Pixhawk flight controllers, hardware, and software are explained in further detail. For more information about DroneCAN, refer to https://dronecan.org.
Quick Start and Requirements
Software Required:
- ESC firmware (D4600341.dfu) or above
- KDE Device Manager (KDE_Direct_Device_Manager_V138.4.exe) or above
- Mission Planner
Quick Setup Guide:
- Correctly wire the ESCs to connect the CAN bus network.
- Update all ESCs with the latest firmware supporting DroneCAN, and assign each ESC Node ID and Motor ID using the KDE Device Manager.
- Update the Pixhawk with the latest firmware and go through the initial configuration via Mission Planner.
- Set CAN_P1_DRIVER to 1, reboot and set CAN_D1_UC_ESC_BM correctly then write the parameters and restart the Pixhawk by unplugging and reconnecting power.
- Press the connect button in Mission Planner. Telemetry data can be viewed from Data -> Status tab.
Detailed Setup Guide – CAN bus Wiring
- Connect the yellow wire between the first ESC and the Pixhawk. We recommend cutting the CAN bus 3.3V wire (the right-most yellow wire on the ESC side) that connects the ESC to the flight controller. Since the ESC supplies 3.3V to this wire, this can inadvertently power the Pixhawk which isn’t recommended. Only CAN_L, and CAN_H wires are needed.
- Connect each ESC together with the red/black wires included in the KDECAN-KIT.
- Add the 120-ohm terminating resistor (from the KDECAN-KIT) to the last ESC on the Bus.
Warning: Incorrect wiring can result in damage to the flight controller or ESC.
Update ESCs and Assign IDs
Run the latest KDE Device Manager installer (V1.38.4) and connect the ESC to the PC via the USB cable provided with the ESC. Update the ESC to the latest firmware online (D460341.dfu). Then change the following settings:
- Set the Throttle Calibration Mode to RANGE and the min and max to 1000-2000.
- Set the CAN BUS NODE ID to a unique value.
- Set the CAN BUS CONTROL to DRONECAN.
- Set the DRONECAN MOTOR ID to the motor it is connected to (e.g. 1-4 for QuadCopter).
- Set the DRONECAN POLES to the number of magnetic poles on the motor.
Press the Send Settings button and proceed to repeat the steps above for each ESC, making sure to increment the CAN BUS NODE ID and DRONECAN MOTOR ID.
Viewing Live Telemetry
The Pixhawk will now receive DRONECAN messages. If it’s not working, go back through the steps and verify all settings and parameters have been set correctly.
Note: Mission Planner will not update the ESC status fields unless the motor is spinning. While connected to MAVLink 2 via the COM port, the ESC live telemetry can be viewed via Flight Data -> Status. Each ESC has numerous fields marked (escX_volt, escX_curr, etc.) with X indicating the DRONECAN MOTOR ID. The fields indicate the ESCs’ voltage, current, rpm, and temperature. To view the telemetry graphically, click the Tuning checkbox, double click the empty graph, and then select up to ten parameters to populate the graph.
Specifications
Component | Specification |
---|---|
ESC Firmware | D4600341.dfu or above |
KDE Device Manager | KDE_Direct_Device_Manager_V138.4.exe or above |
Mission Planner | Latest version |
FAQ
- What is the purpose of cutting the CAN bus 3.3V wire?
Cutting the CAN bus 3.3V wire prevents the ESC from inadvertently powering the Pixhawk, which is not recommended. - How do I update the ESC firmware?
Use the KDE Device Manager to connect the ESC to your PC via USB and update to the latest firmware online. - What should I do if telemetry data is not visible?
Ensure all settings and parameters are correctly configured and verify the motor is spinning to update ESC status fields in Mission Planner.
DroneCAN QuickStart Guide
REV 1.0.4 Last Modified (January 29, 2024)
Overview
This document covers the steps and components needed to enable DroneCAN with a KDE Direct UVC series ESC and a Pixhawk 2.1 (CUBE). The configuration steps for the Pixhawk flight controllers, hardware, and software are explained in further detail. For more information about DroneCAN, refer to https://dronecan.org
Quick Start and Requirements
Hardware required:
- Pixhawk CUBE
- KDE UVC series ESCs
- KDECAN-KIT JST-GHR Wire Kit (red and black wires – used between ESCs)
- KDECAN-PHC JST-GHR Wire (yellow wire – for connection to flight controller)
Software required:
- ESC firmware (D4600341.dfu) or above
- KDE Device Manager (KDE_Direct_Device_Manager_V138.4.exe) or above
- Mission Planner
Quick Setup Guide:
- Correctly wire the ESCs to connect the CAN bus network.
- Update all ESCs with the latest firmware supporting DroneCAN, and assign each ESC Node ID and Motor ID using the KDE Device Manager.
- Update the Pixhawk with the latest firmware and go through the initial configuration via Mission Planner.
- Set CAN_P1_DRIVER to 1, reboot and set CAN_D1_UC_ESC_BM correctly then write the parameters and restart the Pixhawk by unplugging and reconnecting power.
- Press the connect button in Mission Planner. Telemetry data can be viewed from Data -> Status tab.
Detailed Setup Guide – CAN bus Wiring
- Connect the yellow wire between the first ESC and the Pixhawk. We recommend cutting the CAN bus 3.3V wire (the right-most yellow wire on the ESC side) that connects the ESC to the flight controller. Since the ESC supplies 3.3V to this wire, this can inadvertently power the Pixhawk which isn’t recommended. Only CAN_L, and CAN_H wires are needed.
- Connect each ESC together with the red / black wires included in the KDECAN-KIT
- Add the 120-ohm terminating resistor (from the KDECAN-KIT) to the last ESC on the Bus
Warning: Incorrect wiring can result in damage to the flight controller or ESC.
Figure 1: Pixhawk 2.1 (CUBE) & ESC wiring pins.
Note: 3.3V CAN transceivers are fully interoperable with 5V CAN transceivers.
Note: If using Pixhawk 2.1, connect to port CAN2 as the ports are incorrectly labelled.
Update ESCs and Assign IDs
Run the latest KDE Device Manager installer (V1.38.4) and connect the ESC to the PC via the USB cable provided with the ESC. Update the ESC to the latest firmware online (D460341.dfu). Then change the following settings:
- Set the Throttle Calibration Mode to RANGE and the min and max to 1000-2000
- Set the CAN BUS NODE ID to a unique value
- Set the CAN BUS CONTROL to DRONECAN
- Set the DRONECAN MOTOR ID to the motor it is connected to (e.g. 1-4 for QuadCopter)
- Set the DRONECAN POLES to the number of magnetic poles on the motor
Press the “Send Settings” button and proceed to repeat the steps above for each ESC, making sure to increment the CAN BUS NODE ID and DRONECAN MOTOR ID.
Figure 3: KDE Device Manager DRONECAN settings
For throttle control to work properly via DRONECAN, first you need to set the CAN_P1_DRIVER to 1 and reboot the flight controller (all features that require chunks of memory to initialize are done once at boot). Next, you need to set CAN_D1_UC_ESC_BM to the number of ESCs you are using in Mission Planner. For example, if you are using a QUAD X frame, then you would select ESC 1, ESC 2, ESC 3, and ESC 4 to enable those motor outputs to be sent.
Figure 4: Mission Planner CAN_D1_UC_ESC_BM example.
You also need to configure this on each ESC using the KDE Direct Device Manager too. For example, if you’re using a QUAD X, the top left motor is ID 3 so the ESC controlling the top left motor needs to have the DRONECAN MOTOR ID set to 03. You will need to set the MOTOR ID for each ESC connected.
Figure 5: KDE Device Manager MOTOR ID.
Viewing Live Telemetry
The Pixhawk will now receive DRONECAN messages. If it’s not working, go back through the steps and verify all settings and parameters have been set correctly. * Note: Mission Planner will not update the ESC status fields unless the motor is spinning.
While connected to MAVLink 2 via the COM port, the ESC live telemetry can be viewed via “Flight Data” ->
“Status”. Each ESC has numerous fields marked (escX_volt, escX_curr, etc.) with X indicating the DRONECAN MOTOR ID. The fields indicate the ESCs’ voltage, current, rpm, and temperature. To view the telemetry graphically, click the “Tuning” checkbox, double click the empty graph, and then select up to ten parameters to populate the graph.
Figure 7: Mission Planner telemetry window.
For PX4 Autopilot firmware with QGroundControl:
- set Vehicle Setup -> Actuator Outputs -> Configure: “Sensors and Actuators (ESCs) Automatic Config” set Vehicle Setup -> ESCs 1-4 function to output to Motors 1-4
- You can now view the ESC_STATUS message in Analyze Tools -> MAVLink Inspector
Documents / Resources
![]() |
KDE Direct UVC series ESC [pdf] User Guide KDE-UAS125UVC-HE, KDE-UAS125UVC-HE UVC series ESC, KDE-UAS125UVC-HE, UVC series ESC, series ESC, ESC |