Go to file
Rene Hopf d37071f35d current and voltage adc 2015-02-02 23:08:24 +01:00
graphviz rt term, pid i clamping, enc interpolation, ... 2015-01-30 03:56:51 +01:00
hw IC1 value 2015-01-03 20:33:46 +01:00
inc initial import 2013-12-09 23:04:24 +01:00
lib HSE fix 2014-12-15 18:59:49 +01:00
sim tvd sim 2014-11-09 19:19:04 +01:00
src current and voltage adc 2015-02-02 23:08:24 +01:00
stm32f103 current and voltage adc 2015-02-02 23:08:24 +01:00
term dq frame ausgelagert 2015-01-30 11:29:50 +01:00
.gitignore cleanup 2014-12-29 13:47:11 +01:00
COPYING License 2014-11-25 01:19:39 +01:00
Makefile auto, makefile, hal fix 2015-01-11 00:23:30 +01:00
README.md typo 2015-01-30 17:02:18 +01:00
cleanup.sh cleanup 2014-12-18 00:04:04 +01:00
stm32_flash.ld initial import 2013-12-09 23:04:24 +01:00

README.md

stmbl

stmbl is an open source servo drive designed for Retrofitting CNC machines and Robots. It supports Industrial AC and DC servos with up to 320V and 1kW.

Hardware version 31

bot top

Driving a Bosch Turboscara

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

Drivetest

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

Drivetest with asymmetrical load

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

####Supported Motors

  • Synchronous AC Servos
  • DC Servos
  • IRAMXv2 Hardware testet up to 320V

####Supported Feedback systems

  • Resolvers
  • Incremental encoders
  • sin/cos encoder interpolation

####TODO

  • AC Async
  • saving parameters to flash

####Directories

  • hw/eagle/ Eagle board files and schematics
  • hw/spice/ Spice simulation for resolver interface
  • src/ STM32F4 code, command, feedback and control loop
  • stm32f103/ STM32F1 code, running on the HV side, generating PWM
  • 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