GithubHelp home page GithubHelp logo

chsc / stm32servo Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 42 KB

STM32 Servo controller

License: GNU General Public License v3.0

CMake 0.39% C++ 32.65% C 66.96%
servo-controller micro-controller firmware pwm-servo-driver pwm platformio opencm3 stm32f103 stm32 bluepill

stm32servo's Introduction

STM32Servo

STM32Servo turns your STM32 micro-controller into a multi-channel servo controller with some additional goodies. This version was specifically written for the Blue Pill but can be easily adopted to other boards. The firmware is controlled via a simple set of UART commands.

You can find a demonstration video on YouTube.

This firmware was originally written for a robot project but I have never had the time to complete it :(

Basic Features:

  • Servo calibration. Sets the PWM length for 0° and 180°. I might change this in the future to make it more flexible!
  • Timed PWM interpolation. E.g. you can turn a servo from 45° to 170° within the next 2,5 seconds.
  • Each servo has it's own time line. They are completely independent.
  • Currently supports up to 24 servos in parallel. This can be easily extended. You can virtually turn every pin of your micro-controller into a PWM generator.
  • Enabling/disabling servos on the fly.
  • Adoptable to other micro-controller boards. The servo code is controller agnostic and the rest is done using libopencm3 + PlatformIO.

The example directory contains a simple test console and an interface class for the servo controller. Have fun!

stm32servo's People

Contributors

chsc avatar

Stargazers

 avatar

Watchers

 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.