Code Monkey home page Code Monkey logo

stmbl's Introduction

stmbl

###AC Servo Driver for STM32F4

Driving a Bosch Turboscara

https://www.youtube.com/watch?v=Ue98HE76paI

Drivetest

https://www.youtube.com/watch?v=sMeV4SCu4TA

####Things that work

  • Synchronous AC servos with resolver or incremental encoder
  • DC servos with encoder
  • IRAMXv2 Hardware testet up to 320V

####TODO

  • autophasing for Synchronous AC servos with encoder
  • AC Async
  • saving parameters to flash

####Directories

  • hw/eagle/ Eagle board files and schematics
  • hw/spice/ Spice simulation for resolver interface
  • src/ STM32 code
  • term/ Terminal with scope and local history. Supports UHU servo and stmbl.

####Building the firmware

Requirements
Flashing

Add gcc and stlink to your $PATH

make
make burn

####Building Servoterm

Requirements
Compiling
cd term/
mkdir build/
cmake ../
make

####Using Servoterm

Testing HAL

HAL can be tested without any hardware connected to the STM32F4discovery.

  • Flash STM32F4discovery(STlink and USB OTG must be connected)
  • Launch Servoterm, Click refresh, and connecto to STM32 Virtual ComPort

entering ? prints a list of hal pins. The current default config is for a 4 pole AC permanent magnet motor with resolver feedback, using an encoder for command.

net0.fb <= res0.pos = 0.000000

net0.fb is driven by res0.pos, and its current value is 0. Pins can be connected to other pins, or fixed values.

This example connects the sine wave generatror to wave view 0. Offset and gain can be controlled with the sliders below Channel 1(black).

term0.wave0 = sim0.sin
sim0.amp = 10
sim0.freq = 5

To disconnect a pin, connect it to itself

term0.wave0 = term0.wave0

stmbl's People

Contributors

rene-dev avatar crinq avatar

Watchers

James Cloos avatar Markus Bernhardt 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.