Coder Social home page Coder Social logo

dspic-esc's Introduction

dsPIC33 based Field Oriented Controller for Brushless Motor ESCs

Highlights

This is a Field Oriented Control (FOC) motor controller implementation for dsPIC33 based ESCs.

It was originally developed for use in torque sensing robot joints, but may be used in any motor control application that requires current control.

Commercial licence for both hardware & software available.

Project features:

  • Accurate current sensing & control at 100Amps+
  • Memory safety (no malloc)
  • Short and easy to understand, verify, codebase
  • Based on low cost components

Prerequisites

Software features & details

  • Hard realtime leveraging vector interrupt with prioritisation
  • 20kHz center aligned PWM with deadtime
  • Controls two 3-phase brushless motors
  • Current sensing on all 2x 3 phases
  • Biquad filtering of current sense data
  • Motor and PCB temperature sensing
  • Multiple motor angle sensing:
    • Digital hall sensors
    • Analogue hall sensors (for compact/low cost applications)
    • Rotary encoders over SPI
  • Low latency control comms uses DMA
  • UART debuggin output
  • Fast dsPIC DSP fixed point maths engine leveraging inline assembly
  • Motor calibration data stored to dsPIC flash
  • Control multiple ESCs over SPI (up to 12 tested at 1kHz each)
  • Reliable control comms using checksumms

dspic-esc's People

Contributors

modelbased avatar

Stargazers

Denys avatar Floatyboy avatar  avatar

Watchers

Denys 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.