/installBLDCTool

Install the BLDC-Tool on the NVIDIA Jetson TX development kits. The BLDC-Tool is for use with VESC compatible 4.12 hardware.

Primary LanguageShellMIT LicenseMIT

installBLDCTool

The BLDC-Tool is used to flash firmware and configuration files to a hardware compatible Vedder Electronic Speed Controller (VESC). The VESC is an open source Brushless DC Motor Controller (BLDC). See:

http://vedder.se/2015/01/vesc-open-source-esc/

This repository contains scripts to build the BLDC-Tool on a NVIDIA Jetson TX development kit running L4T 28.1, and a script for building a desktop x86 Linux Ubuntu 14.04 version. The x86 Ubuntu machine is typically used to flash the Jetson using JetPack. The tool may be used by either platform to program the VESC.

Jetson TX Development Kit

Install the BLDC-Tool on the NVIDIA Jetson TX development Kit. The BLDC-Tool is for use with VESC compatible 4.12 hardware.

To run the script:

$ ./installBLDCToolJetson.sh

These scripts will install the bldc-tool for Vedder Electronic Speed Controller (VESC) and compatible hardware, version 4.12. This type of hardware is sometimes referred to as BLDC controller. The VESC is used in the RACECAR/J project.

The VESC is an open source hardware and software brushless motor controller.

Running the install script builds the bldc-tool, a Qt Gui to interact with the BLDC controller. Before building the tool, the required prerequisites are installed.

Note: The version of libqt5serialport5-dev is 5.5. There is an issue which causes the Bldc-Tool to segment fault when the VESC reboots after being flashed using that version. The work around is to use version 5.6. The scripts builds qtserialport from source and installs it in order to address this issue.

Next the bldc-tool is compiled from source.

Note that this is the tool that can configure and load firmware on the VESC, not the actual firmware that runs on the VESC. The firmware is in a separate repository. See: https://github.com/racecarj/bldc-tool

The last step in the script installs VESC firmware and VESC configuration files in the directory ~/vesc-firmware for use with the RACECAR/J configuration. The VESC firmware is located in:

~/vesc-firmware/firmware/VESC_servoout.bin

The firmware includes support for using the PWM output to control the steering servo.

The Configuration files are in the VESC-Configuration directory. There are two different configurations:

  • VESC_30k_erpm.xml
  • FOCBOX_hw_30k_erpm.xml

The VESC_30k_erpm.xml configuration is for VESC 4.12 compatible hardware. For Enertion Boards VESC-X/FOCBOX hardware, there is FOCBOX_hw_30k_erpm.xml

Note: Compiled versions of the firmware are also contained in the bldc-tool repository in the 'firmwares' directory.

Desktop Linux Host

For Linux Ubuntu 14.04 running on an x86 machines (typically used to flash a Jetson using JetPack), there is an installation script which installs the prerequisites, downloads and builds the BLDC-Tool. This script:

$ ./installBLDCToolHost.sh

The last step in the script installs VESC firmware and VESC configuration files in the directory ~/vesc-firmware for use with the RACECAR/J configuration. The VESC firmware is located in:

~/vesc-firmware/firmware/VESC_servoout.bin

The firmware includes support for using the PWM output to control the steering servo.

The Configuration files are in the VESC-Configuration directory. There are two different configurations:

  • VESC_30k_erpm.xml
  • FOCBOX_hw_30k_erpm.xml

The VESC_30k_erpm.xml configuration is for VESC 4.12 compatible hardware. For Enertion Boards VESC-X/FOCBOX hardware, there is FOCBOX_hw_30k_erpm.xml

Note: Compiled versions of the firmware are also contained in the bldc-tool repository in the 'firmwares' directory.