GithubHelp home page GithubHelp logo

jaxxzer / open-esc-firmware Goto Github PK

View Code? Open in Web Editor NEW
53.0 10.0 16.0 569 KB

License: GNU General Public License v3.0

C++ 5.68% Python 0.02% C 93.39% CMake 0.71% Shell 0.20%
stm32 esc speed control blheli diy motor-control motor dshot multishot

open-esc-firmware's Introduction

Welcome to open-esc: the open esc!

The aim of this project is to produce an ESC that is very high performing, widely applicable, and attractive to manufacture.

GSC will run on these target microcontrollers:

  • Giga Device GD32 F350 series (in development)
  • STM32 F0 series (working!)
  • STM32 F3 series (in development)
  • STM32 G0 series (in development)
  • STM32 G4 series (in development)
  • STSPIN series (in development)
  • Active Semi PAC5523 (in development)

open-esc-hardware is a repository of hardware designs supported by this firmware.

To add support for a new hardware, copy one of the exisiting folders in the target directory and change the pin defitions.

Current functionality:

  • automatic input signal detection (pwm, oneshot125/42, multishot)
  • audio
  • open-loop sine-modulated pwm
  • closed-loop comparator based commutation

Project roadmap:

  • dshot, proshot
  • Closed-loop adc based commutation
  • Support for dshot commands
  • Save/store settings
  • Sensored Field Oriented Control
  • Sensorless Field Oriented Control
  • Support for common communication interfaces (uart, i2c, spi, can, usb)
  • GUI configuration
  • Bipolar pwm (active braking)
  • Support for PAC5523
  • Switch from stm32-lib to STM LL, libopencm3 or bare-metal

To build the main application for the selected target board (the default board is wraith32):

mkdir -p build
cd build
cmake --configure -DTARGET_BOARD=wraith32 ..
make

To flash the program after building (with openocd and st-link programmer), use the flash make target:

make flash

This project's launch.json will allow you to debug the program in vscode with the cortex debug extension using an st-link programmer and openocd.

Be Advised: I am developing my understanding of motor control and embedded programming as I work on this project. I am not an expert (yet). Many cool open source projects already exist to control brushless motors. Some day, I might choose to retire this project in favor of developing further one or more of these:

open-esc-firmware's People

Contributors

jaxxzer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.