Git Product home page Git Product logo

ottercontrol's Introduction

OtterControl

Hardware files for OtterControl BLDC motor controller.

What is OtterControl?

OtterControl is a open source, open hardware DC / BLDC motor controller. The basic idea was to make the well-known VESC (http://vedder.se/2015/01/vesc-open-source-esc/) even cheaper - making hoverboard-powered armchairs or crazycarts affordable.

While these 350W hoverboards motors are great and quiet affordable (only 40€ in Germany), you need a powerful ESC to get them running. Until now, the only open ESC I'm aware of is the VESC - which is great and all, but with ~100-120€ per piece quiet expensive. That's why I decided to save on some parts:

  • Single-Chip Gatedrivers
  • Mosfets in D2PAK package
  • Chinese HV buck converter
  • STM32f3 instead of f4: still powerful enough, and with more internal analog peripherals

The STM32f303 has lots of internal peripherals such as OpAmps, PGAs etc. Using this chip reduces external components and system complexity - saving about 10€. Also, using D2PAK Mosfets allows more flexible part selection - saving another 20€ with almost the same specs.

The final BOM for 50pcs of OtterControl turns out to be ~19€ per piece.

Specs

  • max. 50A continous motor current (~90A peak)

  • max. 80V (with 63V capacitors = 14S LiIon)

  • STMBL Codebase ("easy to use", configurable)

  • no additional programming device (USB DFU support)

  • UART, RS485, CAN, USB

  • PPM (to be implemented)

  • 3 GPIOs, sharing one Timer (eg. as hall sensor input, quadrature encoder)

  • 5V max. 200mA out (eg. for hall sensors)

  • Otter

Versions

There are currently two different versions of OtterControl V1.3: One with 1mOhm current-sensing shunts, and one with 3mOhm. The reason for this:

To measure the phase current, the f303 internal PGA is set to 16x gain. This gives a input range of 3.2AVDD / 16 = 200mV. It is necessary to measure positiv and negative currents, so the shunt is pre-biased to 100mV, giving +/- 100mV measurable voltage drop.

  • With 1mOhm, this means 100A full scale
  • With 3mOhm, this means 33A full scale

Depending on your application, you want as much current resolution as possible. For a 5A DC motor, or a small BLDC, 33A is way enough, archiving good current regulation. However, for applications with more current, 1mOhm increases the current scale to the necessary range.

Software

OtterControl is based on the stmbl codebase (https://github.com/rene-dev/stmbl). A ported version can be found in my fork (ottercontrol branch). Essentially, the code on the f303 is the same as in stmbl, but without the f4 this mcu now also handles encoder input, position regulation, user settings etc.

ottercontrol's People

Contributors

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