Giter Club home page Giter Club logo

vesc_firmware's Introduction

Custom Firmware Used for VESC Controllers in F1TENTH

Firmware Installation

  1. Connect your VESC via USB to your host computer.
  2. Open the appropriate version of the VESC Tool.
  3. Click Autoconnect.
  4. Go to the Firmware section on the left.
  5. Go to the Bootloader tab at the top.
  6. Click the Upload button in the bottom-right.
  7. Click "Write Motor Configuration".
  8. Click "Write App Configuration".
  9. Go to the Custom File tab.
  10. Click the folder icon and browse to the appropriate VESC_TOOL folder and firmware binary for your VESC.
  11. Click the Upload button in the bottom-right.

Once this is complete, wait at least 10 seconds before re-connecting to configure additional parameters.

Building Your Own

The bldc firmware requires the gcc-arm-none-eabi. In order to avoid causing problems with your environment, it is recommended to do this in Docker. Once Docker is installed, you can run the following to build your own, custom firmware with the servo out enabled:

$ cd ~
$ git clone https://github.com/vedderb/bldc.git
$ cd bldc
$ docker run -it --rm -v $(pwd):/root/workspace -w /root/workspace ubuntu:18.04
ubuntu$ apt-get update && apt-get install build-essential gcc-arm-none-eabi binutils-arm-none-eabi

After running these commands, your Docker environment will be ready to build the firmware. However, you will need to modify the conf_general.h file to select the firmware you want to build. Since March 31, 2021 you don't have to enable servo output during firmware building. It can be enabled from VESC_tool (App Settings > PPM). (For older versions, set SERVO_OUT_ENABLE to 1.) To choose which board to build the firmware for, un-comment the .h and .c files for your board. The boards that are currently supported by this repository are:

  1. VESC 6 MkIII -> hw_60.h and hw_60.c. Also uncomment #define HW60_IS_MK3 (make sure the other HW60_IS_ lines are commented out).
  2. VESC SIX+ -> hw_60.h and hw_60.c. Also uncomment #define HW60_IS_MK4 (make sure the other HW60_IS_ lines are commented out).
  3. VESC 6 MkV -> hw_60.h and hw_60.c. Also uncomment #define HW60_IS_MK5 (make sure the other HW60_IS_ lines are commented out).
  4. FLIPSKY MiniFSESC 4.20 -> hw_410.h and hw_410.c.

Once you have modified the conf_general.h file as necessary, run the command make in your Docker container. This will generate a file called build/BLDC_4_ChibiOS.bin which is the custom firmware. It is recommended to rename this file to match your hardware and move it out of the Docker container. You can then use this file with the instructions above to flash your VESC.

vesc_firmware's People

Contributors

jara001 avatar jwhitleywork avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jara001

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.