Skip to content

jsphuebner/IPMMotorSim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IPMMotorSim

This project is an IPM Motor simulator intended to be uses with the Huebner inverter project, in particular the stm32-sine FOC firmware build.

Aims

The main aim of this project is to allow testing and development of the motor control sections of the inverter firmware in a safe reproducible environment.

The model is not intended to be perfect and is in the very early days of its development. Hopefully it's good enough to be useful now and will develop into something more sophisticated over time.

Compiling

Init the inverter source code by typing

git submodule update --init --recursive

The change into the build directory and type

make

Current Limitations

The simulator uses a number of new parameters not yet found in most builds of stm32-sin. There is a replacement param_prj.h file in the project directory that will be used in place of the one in the subdirectory. It is up to the user to ensure that the parameters contained in this replacement file are appropriate for whichever versions of the stn32-sine software is being used.

There is NO field validation on the GUI control fields, if you enter invalid values you will either get invalid simulation results or a program crash.

Not all GUI fields are supported by all versions of stm32-sine.

The simulator only exercises the main motor control sections of the stm32-sine software. It does not fully simulate the lower level hardware peripherals of the processor (although it aims to accurately reflect their behaviour). Nor does it exercise the higher level vehicle/charger control functions.

The model does not simulate drivetrain shunt (although it could be added relatively easily, see comments on source code).

Please note, as is says in the licence - This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

For more information on this project please refer to https://openinverter.org/forum/viewtopic.php?t=2611

About

IPM Motor Simulator for use with OpenInverter FOC build of stm32-sine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 43.9%
  • Makefile 42.9%
  • C 12.0%
  • QMake 1.2%