Engineers say | The future of digital motor control: multiple motors on one MCU, embedded AI, and advanced algorithms
Jeff Sieracki
Director of Engineering, AI Center of Excellence
Empowering the future
Our solution example shows off the muscle of the RA8T1 motor control MCU, demonstrating independent control of two motors while running multiple AI inference modules to detect operating anomalies. We address shaft misalignment and load imbalance conditions – real-world problems commonly found in motor systems. But these are just examples of the countless advanced algorithms that the RA8 core enables engineers to bring to their embedded motor control designs. The demo is built around our RealityCheck ™ Motor Toolbox for creating and deploying AI solutions based on sensorless motor control. This workflow connects capabilities in e² studio with Renesas’ cloud-based Reality AI Tools® machine learning system. We also allow users to combine AI modules created with Reality AI Tools with open source AI models imported from other machine learning platforms via the Renesas e-AI Converter. All generated code is compact and efficient, leaving plenty of resources on the MCU available for other tasks.
RA8T1 Quick View
The RA8T1 32-bit MCU features an Arm® Cortex -M85® core with Helium technology, up to 480MHz, and a package optimized for motor or inverter control. It is significantly faster and more advanced than other motor control solutions on the market, bringing ample power for advanced algorithms such as AI while maintaining precise electronic control of multiple independent motors.
For more information about the RA8T1 32-bit MCU, you can scan the QR code below or copy the link to open it in your browser:
https://www.renesas.cn/zh/products/microcontrollers-microprocessors/ra-cortex-m-mcus/ra8t1-480-mhz-arm-cortex-m85-based-motor-control-microcontroller-helium-and- trustzone
In terms of AI operations, by combining Arm's Helium technology and 2MB of tightly coupled D-cache, RA8 can increase inference speed by 10 times that of other Arm cores at similar clock rates. This provides engineers with huge benefits, making complex algorithms and decisions that were previously impossible to run on moderate clock rate chips feasible.
Two motors, two AI modules, one core
Now let’s talk about the new application examples. In this example, we show the RA8T1 independently controlling two different motors while running two different AI inference modules. Watch the “ Motor Anomaly Detection - Unbalanced Load and Shaft Misalignment ” demo.
For more information about motor anomaly detection - unbalanced load and shaft misalignment, you can scan the QR code below or copy the link to open it in your browser:
https://www.renesas.cn/zh/video/motor-anomaly-detection-unbalanced-load-shaft-misalignment
Figure 1 MCK-RA8T1 with two inverter boards
For controlling two independent motor assemblies
This setup demonstrates the detection of two anomalies that occur in real motor operation: shaft misalignment and load unbalance conditions. Shaft misalignment occurs when the motor’s output shaft is not perfectly aligned in space with the load it is driving, resulting in unintended torque and friction. Load unbalance conditions occur when the system driving the load is out of dynamic balance, generating oscillatory forces as the motor rotates orthogonally to the shaft, and oscillations in the form of load resistance changes during each revolution.
Both of these conditions are serious issues for motor systems and can lead to a range of serious problems, from power loss to excessive noise and vibration to rapid bearing wear and dangerous bearing and structural failures. In some applications, such as high-power industrial systems, even small deviations from proper alignment and balance over time can cause significant concerns. In other applications, such as washer dryers, a certain amount of imbalance and misalignment is expected, but exceeding it can lead to internal machine collisions and failures.
To create shaft alignment issues in a small area, our first motor was configured with a shaft that connected it to the gearbox. When the circuit board holding the motor was slightly deformed by a push from a finger, the shaft bent and moved out of alignment with the gearbox.
To demonstrate the balance issue, our second motor is configured with an aluminum hub that we have the option of inserting small M4 screws into. Without the screws, the hub provides a normal, balanced load to the drive motor. With the screws added, the motor load is unbalanced by a small amount.
Figure 2 Status data sent from the Board dashboard
Our two AI modules have been trained to detect both of these situations. We then added the communications to the dashboard display (as shown in Figure 2) so that we can see what is happening in real time.
The display marks the condition of each motor, with status indicated by color codes and text. It also includes a scrolling timeline that lights up orange whenever the system sees an anomaly about a certain threshold (i.e., a misaligned or unbalanced condition).
As shown in Figure 3, there are quite a few processes running simultaneously on the RA8 MCU. We have two independent instances of the vector motor control algorithm driving the BLDC motor. Each of these instances also sends real-time data from the control process to two coupled AI inference modules. The AI modules monitor this data for indications of normal versus problematic behavior. Since only internal motor control data is used, the AI system does not require additional sensors to monitor for anomalies. This is a powerful feature of RealityCheck ™ Motor Toolbox , allowing engineers to create AI monitoring solutions without adding any sensor BOM cost to their designs.
For more information about RealityCheck ™ Motor Toolbox, you can scan the QR code below or copy the link to open it in your browser:
https://www.renesas.cn/zh/software-tool/realitycheck-motor-toolbox
As shown in Table 1, our AI modules have extremely small RAM and flash memory footprints, and they are both very fast, leveraging the advanced features of the RA8T1. The total flash memory used for both is less than 14KB, and the RAM is less than 5KB. Each module performs an inference in 1 millisecond, so even with 8 inferences per second for each motor subsystem, the load on the CPU is very small.
Figure 3 Process and data flow in two motor AI examples
Table 1 Embedded model indicators
How are we built?
The story begins with Renesas providing e² studio users with a seamless, integrated workflow for interacting with Reality AI tools , all as part of our RealityCheck ™ Motor Toolbox. The functionality is shown in Figure 4 below. Engineers can connect to a Renesas motor control MCU and collect data directly into our Data Storage Tool plugin. This can be done using an evaluation board such as the MCK-RA8T1 or in their own Renesas MCU-based hardware design. Our toolbox provides example code tied to the Renesas Flexible Software Package (FSP) stack, guiding users through selecting and capturing real-time data parameters from vector motor control algorithms. In minutes, users can collect real-time data from their boards under actual motor usage conditions.
For more information about e² studio and Reality AI tools, you can scan the QR code below or copy the link to open it in your browser:
https://www.renesas.cn/zh/software-tool/e-studio
https://www.renesas.cn/zh/software-tool/reality-ai-tools
Specifically for unbalanced load detection, our data collection matrix has two columns of variation: (1) the presence and absence of a screw in the hub, and (2) the range of speeds we want to address. To build our demonstration, we collected data samples for combinations of these conditions, and repeated them multiple times to cover the random variations that occur in any physical setup. Table 2 shows an example data coverage matrix.
Figure 4 RealityCheck Motor toolbox for creating motor AI
Provides a seamless round-trip workflow
So, how do you build a useful classifier using the Renesas workflow ?
Reliable AI results always start with structured data collection. We collected data examples in a variety of conditions that addressed the detection categories of interest as well as the variation in motion conditions we expect to see in practice.
Table 2 Data collection plan for unbalanced load detection
From the e² studio data storage plugin, this data can be uploaded directly to the cloud, where we use Reality AI Tools to train and optimize machine learning models. The process is highly automated using our proprietary AI Explore ™ methodology, but also provides extensive testing, tuning, and optimization that users can employ. (For more information, see the Reality AI Tools page. Once we are satisfied with the accuracy of the model in the cloud, we can generate an inference module and export the embedded library code directly back to e² studio for testing. Users get a simple, fast, end-to-end workflow from raw data to final code generation.
For more information about Reality AI Tools, you can scan the QR code below or copy the link to open it in your browser:
https://www.renesas.cn/zh/software-tool/reality-ai-tools
But what if you have your own AI model?
Figure 5 e-AI Translator allows you to easily import AI models from open source platforms such as Keras, Tensor Flow, and PyTorch as code in your e² studio project
Some customers prefer to bring in their own AI models, developed in well-known open source frameworks such as Keras, Tensor Flow or Pytorch. RealityCheck Motor lets you do this too with the help of the Renesas e-AI Translator plugin. This powerful e² studio plugin enables users to import open source created AI, converting them into compact C code that can be directly linked into your project.
This is how we built our shaft misalignment detector. We once again collected data in a similar way as before, using the RealityCheck Motor data acquisition and data storage tools in e² studio. However, instead of going through Reality AI Tools, we imported this new data into the Python framework and trained our demo AI model there using Keras. We then imported the fully trained Keras model into our project code using the e-AI Translator. The model was already configured to handle the data stream from our RealityCheck Motor capture function, making it easy to integrate the e-AI inference code with the rest of the project.
This example shows how we can easily combine AI modules created by the Reality AI Tools workflow with AI modules imported from other sources via the e-AI converter. Users can import any deep learning or NN model from common training frameworks, so if you prefer to bring your own model, we are happy to help.
To summarize…
The RealityCheck Motor Toolbox combines the Renesas e² studio IDE with our cloud-based Reality AI Tools machine learning environment to create a seamless end-to-end workflow for users, from data collection to AI model building to compact, efficient embedded code. All of this works on the Renesas Motor Control MCU of your choice, either on an evaluation board or in your own product hardware. Users can easily create AI modules that run directly on the same MCU, in many cases without the need for any additional sensors other than real-time data from the motor control algorithm. Customers who want to bring in their own models from an open source AI platform can do so using the e-AI Translator import feature.
The RA8T1 32-bit motor control optimized MCU features a high-performance Arm Cortex-M85 core and advanced features, including Helium and tightly coupled D-cache, which can accelerate algorithms by up to 10 times. This powerful feature supports multiple motors, multiple embedded AI modules and other advanced algorithms, all in a cost-effective MCU.
With Renesas technology and advanced AI solutions, your motor control system designs will be future-ready today.
For more information including technical documents and videos, you can scan the QR code below or copy the link to open it in your browser:
https://www.renesas.cn/zh/software-tool/reality-ai-tools
To request a demo from the engineering team, you can scan the QR code below or copy the link to open it in your browser:
https://info.renesas.com/reality-ai-request
If you have any questions when using Renesas MCU/MPU products, you can scan the QR code below or copy the URL to open it in your browser and enter the Renesas Technology Forum to find answers or get online technical support.
https://community-ja.renesas.com/zh/forums-groups/mcu-mpu/
- END -
-
END
-
Remember to share and like while watching!
-
-
-
About China Power Port
-
-
China Electronics Port (stock code: 001287) is an industry-leading integrated service platform for electronic component application innovation and modern supply chain. Relying on more than 30 years of upstream and downstream industry resource accumulation, technology precipitation, and application innovation, it has developed into a comprehensive service provider covering electronic component distribution, design chain services, supply chain collaborative support, and industrial data services.
-
-
China Electronics Port adheres to the business philosophy of "serving customers and sharing with partners". While fulfilling its social responsibilities, it strives to build a component supply chain ecosystem to help the development of China's electronic information industry.
-
-
-
-
Click below to follow China Power Port official account
-
Get more industry information
-
-