User Guide for KDE Direct models including: KDE-UAS125UVC-HE, KDE-UAS125UVC-HE UVC series ESC, KDE-UAS125UVC-HE, UVC series ESC, series ESC, ESC

DroneCAN QuickStart

PLKoegler

DroneCAN

KDECAN-KIT JST-GHR Wire Kit | KDE Direct

KDE-UAS125UVC-HE – multirotors.store live-telemetry feedback with the flight-controller for added safety and operation. Critical system components can be monitored in real time and additional control signals can be sent to the ESC. See the KDECAN or

KDE-UAS125UVC-HE 125A UHV ESC with CAN Bus & IP66 Rating | Multirotors.store


File Info : application/pdf, 8 Pages, 1.24MB

PDF preview unavailable. Download the PDF instead.

DroneCAN QuickStart 1.0.4 ?v=1706569784
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
Contents
Overview..................................................................................................................................................... 1 Table of Figures ........................................................................................................................................... 1 Quick Start and Requirements ..................................................................................................................... 2 CAN bus Wiring ........................................................................................................................................... 3 Update ESCs and Assign IDs ......................................................................................................................... 5 Viewing Live Telemetry................................................................................................................................ 7
Table of Figures
Figure 1: CAN bus wiring......................................................................................................................................... 3 Figure 2: Pixhawk 2.1 (CUBE) & ESC Wiring pins .................................................................................................... 4 Figure 3: ESC Unique ID........................................................................................................................................... 5 Figure 4: Mission Planner CAN_D1_UC_ESC_BM example .................................................................................... 6 Figure 5: KDE Device Manager MOTOR ID.............................................................................................................. 6 Figure 6: Mission Planer Frame Type...................................................................................................................... 6 Figure 7: Mission Planner telemetry window ......................................................................................................... 7
1|8 REV1.0.3

DroneCAN QuickStart Guide REV 1.0.4 Last Modified (January 29, 2024)
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: 1) Correctly wire the ESCs to connect the CAN bus network. 2) Update all ESCs with the latest firmware supporting DroneCAN, and assign each ESC Node ID and Motor ID using the KDE Device Manager. 3) Update the Pixhawk with the latest firmware and go through the initial configuration via Mission Planner. 4) 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. 5) Press the connect button in Mission Planner. Telemetry data can be viewed from Data -> Status tab.
2|8 REV1.0.3

DroneCAN QuickStart Guide REV 1.0.4 Last Modified (January 29, 2024)
Detailed Setup Guide - CAN bus Wiring
1) 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.
2) Connect each ESC together with the red / black wires included in the KDECAN-KIT 3) Add the 120-ohm terminating resistor (from the KDECAN-KIT) to the last ESC on the Bus
Figure 1: CAN bus wiring.
3|8 REV1.0.3

DroneCAN QuickStart Guide REV 1.0.4 Last Modified (January 29, 2024) 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.
4|8 REV1.0.3

DroneCAN QuickStart Guide REV 1.0.4 Last Modified (January 29, 2024)
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
5|8 REV1.0.3

DroneCAN QuickStart Guide REV 1.0.4 Last Modified (January 29, 2024) 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.
Figure 6: Mission Planer Frame Type.
6|8 REV1.0.3

DroneCAN QuickStart Guide REV 1.0.4 Last Modified (January 29, 2024)
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.
7|8 REV1.0.3

DroneCAN QuickStart Guide REV 1.0.4 Last Modified (January 29, 2024) 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
8|8 REV1.0.3



References

Microsoft Word 2016