 Hello and welcome to this video presentation where we will show how to spin a permanent magnet synchronous motor using the Modal Control Software Development Kit. My name is Rosetta Nassio and I'm an applications manager at ST Microelectronics. So, what is the Modal Control Workbench and how does it benefit a designer of Modal Control applications? The Modal Control Workbench is a GUI that is part of the Modal Control Software Development Kit, or SDK. This also includes the FOC library for permanent magnet synchronous motors. The ST Modal Control Workbench provides an easy way to configure Modal Control application software and matching hardware setup. The project generated by the tool is compatible with the STM32 Cubemax for further extension or modification. The Modal Control Workbench supports many of the boards of the Modal Control ecosystem or can also be used with custom boards. It has a large number of example projects to start with. The user can create a new project, input the motor parameters, set the signal conditioning current circuits for current and voltage sensing, and also leverage on an embedded tool for the tuning of the PI controller parameters. This is also an interface that allows you to monitor the application once the motor is spinning. The FOC library includes both sensorless or censored control for speed and position control using all-effect sensors or an encoder. The software reduces the design effort and time needed for application setup. Next is an overview of the hardware setup. We need our laptop with the software that we have just mentioned installed, Modal Control Workbench and STM32 Cubemax. We need a USB cable. We need also a demo board for this specific test. We have selected the STM32-1, which has the STM32-F0 and 6 low-voltage FETs that implement a 3-phase inverter. The topology is the 3-shunt 1 for this specific board. As you can see, the board is a general purpose one. It has a lot of test points, a potentiometer to close the speed feedback loop as well as the connector for the all-effect sensors or the encoder plus three push buttons that can be used to enable or disable the application or reset the microcontroller. The ST-Link is also present on this board, so you don't need an external one. We need to supply this board with a power supply that is capable of delivering 12V and a minimum current of 1A. The motor that we have used for this demonstration is BLDC, low power 4.2W, but capable of reaching 8,000 RPM. It has four power pairs. The oscilloscope is also necessary as well as a current probe that we will use down the road for tuning. For the wiring, you need to connect your power supply cables to J2, be careful the admissible voltage range is 8V to 45V DC. The motor winding phases need to be connected to J3 and the USB cable to J5. On the one hand, on the other hand, any of the available USB ports on your laptop. I have placed the current probe on phase V. The laptop is, as you can see on the right side, running the motor control workbench. This is the basic setup. The motor is shown here. It is a little black cylinder. The board is already supplied as the red LED show. The motor I have used for this demonstration is available on Anheim Automation website if you want to buy one for a few bucks and repeat the test. It has a rated voltage of 12V, a rated speed of 8,000 RPM. The peak current is 2.2A, rated torque is 0.7A per inch, the line-to-line resistance is 3.5A and the line-to-line inductance is 0.7M. The VKMF constant is 0.8V per kiloRPM and this motor has 4 pole pairs. Now I want to go over the workflow that needs to be followed for successfully spinning the motor. First of all, we need to create a new project with the motor control workbench. Then we need to set up the motor control workbench by inputting the motor parameters, setting the current sensing and the deprotection, then working on some drive management settings, such as selecting the proper switching frequency for our application. We need to set the type of speed sensing, startup parameters and the serial communication. Once we have done this, we can generate, compile and download the code into the ST-SPIN32F0. If all of this is done correctly, we can connect the board to the motor control workbench. One thing I want to mention is that if for any reason the motor parameters are not available, you can use the ST motor provider. This is available for download on our website or you can proceed with manual characterization and extraction of these parameters. Now that we have talked about the tools, we can proceed with the generation of the code using the motor control workbench. We start from a new project and we can see from this window that we have the option of selecting either a custom board, both for the control and the power, or one of our, for example, nuclear boards or one of our expansion boards dedicated to motor control applications. The other option is to select a complete inverter board which features both the control and the power stage. Among the featured board you will find the ST-SPIN32F1. We select it and we click on OK. The motor control main page will now load up and will allow us to change and configure the application parameters. The next thing from the motor one, so number of poppers, application speed, denominal current, voltage, value of phase, resistance, inductance and back-emf constant. Then we can move to the current setting parameters and to the speed sensing, where we can select, for example, between sensor FOC or sensor less FOC. Once we are done with this, we can set our protections, bus overvoltage or undervoltage, temperature protection as well as overcurrent protection. And then we can move to the firmware drive management block where we can define the startup parameters for sensor less FOC. Here we have a table with five steps that will allow us to define a current ramp and a speed ramp. From the same block we can also define some drive settings such as PWM switching frequency and the execution rate of our control loop. If all the parameters have been set correctly, we can use this blue arrow to generate the code and with one of the recommended application development environments, for example IR or the STM32 cube IDE, we can flash the program into the STM32 or into the ST speed 32 F0 in our case. Once this is done, we can open the monitor and connect the board by clicking on the plug icon. Ok, if the board is connected, we can now move to the advanced tab and from here we can select the control mode, either speed or torque. If we select the speed mode, we will have to tune the parameters KPNKI for the IQ ID regulator and also for the speed regulator. To do this, there is a whole procedure and we have several tutorials both on our YouTube channel and on our website that I invite you to consult. With the motor connected and with the board connected, we can click on the start icon and the motor will start to ramp up the speed. At this point, we have reached the end of this short video demonstration. For more information, please visit our website.