Skip to content

unseenlaser/stmbl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DISCLAIMER

THE AUTHORS OF THIS SOFTWARE ACCEPT ABSOLUTELY NO LIABILITY FOR ANY HARM OR LOSS RESULTING FROM ITS USE. IT IS EXTREMELY UNWISE TO RELY ON SOFTWARE ALONE FOR SAFETY. Any machinery capable of harming persons must have provisions for completely removing power from all motors, etc, before persons enter any danger area. All machinery must be designed to comply with local and national safety codes, and the authors of this software can not, and do not, take any responsibility for such compliance.

This software is released under the GPLv3.

stmbl

PCBs are now available, let me know if you are interested.

IRC: #stmbl on irc.hackint.eu

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.

Documentation about the PCB and pinout of the feedback connector:

https://github.com/rene-dev/stmbl/wiki/Pinouts

https://github.com/rene-dev/stmbl/wiki/PCB

Hardware version 3.2

top bot

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
  • 2 Phase HF spindle motors
  • IRAMXv2 Hardware testet up to 320V

####Supported Feedback systems

  • Resolvers
  • Incremental encoders
  • sin/cos encoder interpolation
  • Mitsubishi absolute encoders

####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 'list' 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

About

AC Servo Driver for STM32F4

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 47.9%
  • Eagle 45.5%
  • Assembly 4.6%
  • HTML 0.9%
  • C++ 0.6%
  • AGS Script 0.4%
  • Other 0.1%