Git Product home page Git Product logo

hmmc's Introduction

Hardware Motion and Motor Control Library

This package has building blocks related to Motor and Motion Control. When combining them, it's possible to create various systems from a simple Step/Dir motion planner to driver stepper motor controllers, up to a fully-fledged, high-performance multi-axis servomotor controller. It uses migen to generate Verilog that will typically be synthetized in an FPGA, possibly using LiteX as the build system.

Hardware vs Software Motor and Motion Control advantages

CPUs typically aren't very good at performing high-frequency (>1MHz), low-jitter tasks. This is why SoC typically embedded Hardware peripherals such as PWM, ADC or quadrature counters to perform the most critical realtime tasks, lowering the realtime constraints on the CPU. Unfortunately, the huge variety of CPUs, peripherals and specific hardware optimizations makes it very hard to design a scalable Motor and Motion Control system without sacrifying performance or writing a lot of platform-specific code.

Thanks to the the availability of modern FPGAs, and modern HDL, it's possible to create a better Motion and Motor Controller:

  • performant: 50MHz+ hard realtime is easy to acheive in an FPGA.
  • flexible: using standard logic, nearly any make/model of FPGA can be used without adaptation.
  • scalable: a single motor controller can be put on a 5$ FPGA, and 10+ motor controllers can be put on a 30$ FPGA, without negative impact on performance.

Installation

In order to run the tests, you must install Verilator.

Usage

Generate a Verilog design

See the examples/verilog.py

Generate an FPGA bitstream

see example/icestick.py

hmmc's People

Watchers

 avatar

hmmc's Issues

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.