About
The Electric Motor Control reference application by Speedgoat, is aiming to provide you with a starting point to electric motor controls development using Model-Based Design. The reference application is packed with a set of exercises that show you how to best combine the power of Speedgoat real-time solutions with Simulink, Simscape Electrical and Motor Control Blockset, among other MathWorks products, for motor control design and testing. Download the reference application and discover the process of developing a digital controller based on field-oriented control (FOC) algorithm, from the initial design stages, to prototyping and final deployment and testing.
The reference application leverages the Speedgoat HIL Demo Kit and the Electric Motor Control Kit. The latter features a small 100W Maxon PMSM motor with integrated Hall Sensor and Encoder, and the Speedgoat 1.4 kW Three-phase Inverter that supports switching frequencies up to 50kHz. These kits seamless operate with the cost-effective IO397 FGPA I/O Module, which supports PWM generation and capture, with time resolution as low as 5ns, as well quadrature encoding and decoding.
Learn how to:
- Create accurate brushless DC motor models and fine-tune controller gains by collecting data directly from the hardware
- Prototype your controller on Speedgoat target hardware and quickly spin a brushless DC motor using Simulink Real-Time and the Speedgoat Electric Motor Control Kit
- Monitor and control your real-time application directly from Simulink models or with instrument panel apps
- Automatically run test-cases and prove that your embedded motor controller meets requirements with Hardware-in-the-Loop testing
- Configure your prototype controller model to generate compact and fast C code for any target microcontroller
Getting started
- Open MATLAB and open Simulink Project File.
- Click in 'Launchdoc' project shortcut
- Follow steps in HTML documentation
Release notes\
7.0.2 - May 2023
- Renamed Startup/Shutdown scripts.
7.0.1 - May 2023
- Cosmetic changes in the UI and continuous integration scripting.
7.0.0 - March 2023
- Official release for MATLAB R2023a
- Major rework with single model for all type of simulations (MIL, RCP, HIL) and simplification of datadictionnary
- Simplification and lower refresh rate of the UI for improved stability
- Requirements, links and tests
6.0.1 - September 2022
- Cosmetic changes on the UI for MIL and HIL R2022b now requires variant manager for simulink from file exchange
6.0.0 - September 2022
- Official release for MATLAB R2022b
5.0.2 - July 2022
- Redesign of the user interface
- Rework of livescripts
- Improved accessibility of documentation
- Improved stability of RCP model
5.0.1 - March 2022
- Added work folder to prevent error message at first project startup
5.0.0 - March 2022
- Official release for MATLAB R2022a
4.0.1 - March 2022
- Rework of livescripts
- Improved accessibility of documentation
- Improved stability of RCP model
4.0.0 - November 2021
- Official release for MATLAB R2021b
- Updated RCP implementation with Quadrature Decore v5
3.0.1 - November 2021
- Update and bug fixes in documentation
3.0.0 - November 2021
- Official release for MATLAB R2021a
2.0.3 - November 2021
- Bug fixing in HIL live scripts
2.0.2 - October 2021
- Added general stability fixes.
- Minor UI fixes
- Removed Test Harness and Model Relationship
- Improved Documentation
- Removed support for deprecated PMSM kit
- Bug fixing where the SDI signals were not displayed correctly
2.0.1 - MAY 2021
- Fixed broken links on project path
- Removed R2020a backup files
2.0.0 - MAR 2021
- Support for MATLAB R2020b
1.3.0 - JAN 2021
- Added deployment models and experiment to deploy code to Texas Instrument C2000 hardware
- Added HIL models and experiments to perform HIL simulation
1.2.0 - AUG 2020
- Centralized documentation access through Speedgoat Customer Portal
1.1.0 - AUG 2020
- Added new experiment and video: Characterize Motor Inertia and Friction using Simulink Design Optimization
- Changed offset and bias volatge parameters so to improve overcurrent protection in open loop mode
- Bugfix in App Designer instrument panel when using open loop mode
- Bugfix in Coastdown experiment
- Upgraded mode scheduler state chart
- Included new IO397 bitstream (CI02171) with improved PWM-ADC synchronization and phase frequency control
1.0.0 - JUN 2020
- First release
© 2007 – 2020 Speedgoat GmbH