Skip to content
MathWorks - Mobile View
  • Sign In to Your MathWorks AccountSign In to Your MathWorks Account
  • Access your MathWorks Account
    • My Account
    • My Community Profile
    • Link License
    • Sign Out
  • Products
  • Solutions
  • Academia
  • Support
  • Community
  • Events
  • Get MATLAB
MathWorks
  • Products
  • Solutions
  • Academia
  • Support
  • Community
  • Events
  • Get MATLAB
  • Sign In to Your MathWorks AccountSign In to Your MathWorks Account
  • Access your MathWorks Account
    • My Account
    • My Community Profile
    • Link License
    • Sign Out

Videos and Webinars

  • MathWorks
  • Videos
  • Videos Home
  • Search
  • Videos Home
  • Search
  • Contact sales
  • Trial software
3:32 Video length is 3:32.
  • Description
  • Full Transcript
  • Code and Resources

How to Design Motor Controllers Using Simscape Electrical, Part 1: Simulating Back-EMF Voltage of a BLDC Motor

From the series: How to Design Motor Controllers Using Simscape Electrical

Melda Ulusoy, MathWorks

This video demonstrates how you can model a three-phase BLDC motor using Simscape Electrical™ and investigate its back-EMF profile.

Download the model used in this video.

Check out this video to learn more about brushless DC motors

In this video, we’ll create a simple model to simulate a three-phase BLDC and investigate its back-EMF profile. In Simulink, we’ll create a scenario where we turn the motor shaft while having open terminals at all three phases and then measure the voltage produced at one of the phases to observe the back-EMF.

We will now create a physical model to simulate this scenario using Simscape Electrical. In the Simulink library browser, we first navigate to the Permanent Magnets and drag the BLDC block to the canvas. This block represents a BLDC with a trapezoidal back-EMF profile. You can use your motor’s data sheet to set the values of the block parameters under the rotor, stator and mechanical tabs. In the later videos, we’ll talk about the parameterization in more detail. The ports at the left-hand side of the block are for electrical connections and the ones on the right are for the mechanical connections.

To create open terminals, we first expand the composite port to three phases and then connect an open circuit block to each of the phases. To connect the motor’s neutral phase to the ground, we use the electrical reference block.

Now we’re going to work on the mechanical connections of the motor. To make the motor shaft turn, the motor is driven by using an ideal angular velocity source block. You can think of this block as a torque source that will make the rotor follow a specified angular trajectory. We then connect a mechanical reference to the ports labeled with C. The velocity source block has a second input, which is a physical signal. In order to make the motor rotate at a constant speed, we’ll input a constant value to the block. This block outputs a Simulink signal. We need to convert it to a physical signal by using the Simulink PS converter. To solve the Simscape model we just created, we use a solver block where we choose to use the local solver and also set the sample time. We’ll discuss how to choose a sample time in a later video. Now we can simply pick one of the three phases and measure the back-EMF. Let’s connect a voltage sensor to phase A to measure phase A’s back-EMF voltage. The output of the voltage sensor block is a Simscape signal. In order to convert it to a Simulink signal, this time we use PS Simulink converter and connect the signal to a scope for visualization. Then we simulate this model and view the back-EMF voltage of phase A. We observe that the back-EMF exhibits a trapezoidal shape, including regions where the voltage remains flat. This concludes the video.

Download Code and Files

Download the model used in this video

Related Products

  • Simscape Electrical

Learn More

BLDC Motor Control with Simulink
Power Electronics Control Community
Motor Control Design with Simulink
Introduction to Brushless DC Motor Control (Ebook)
Field-Oriented Control of PMSMs with Simulink (4 videos)
Get technical papers and videos explaining modeling and simulation of motor controllers
Understanding BLDC Motor Control Algorithms

3 Ways to Speed Up Model Predictive Controllers

Read white paper

A Practical Guide to Deep Learning: From Data to Deployment

Read ebook

Bridging Wireless Communications Design and Testing with MATLAB

Read white paper

Deep Learning and Traditional Machine Learning: Choosing the Right Approach

Read ebook

Hardware-in-the-Loop Testing for Power Electronics Control Design

Read white paper

Predictive Maintenance with MATLAB

Read ebook

Electric Vehicle Modeling and Simulation - Architecture to Deployment : Webinar Series

Register for Free

How much do you know about power conversion control?

Start quiz
Related Information
Related Information
Watch this video series to learn how brushless DC motors work (6 videos)

Feedback

Featured Product

Simscape Electrical

  • Request Trial
  • Get Pricing

Up Next:

Learn how you can model a three-phase inverter using Simscape Electrical.
7:51
Part 2: Modeling a Three-Phase Inverter
View full series (5 Videos)

Related Videos:

5:11
Simulating in Real Time: Electrical Actuator
3:13
Optimizing System Performance: DC Motor
24:59
AC Motor Control Architecture, Code Generation, and...
48:06
Electrical Distribution System Modeling and Analysis in...
23:46
Modeling Rail Electrical Systems in MATLAB and Simulink

View more related videos

MathWorks - Domain Selector

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

  • Switzerland (English)
  • Switzerland (Deutsch)
  • Switzerland (Français)
  • 中国 (简体中文)
  • 中国 (English)

You can also select a web site from the following list:

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
    • 简体中文Chinese
    • English
  • 日本Japanese (日本語)
  • 한국Korean (한국어)

Contact your local office

  • Contact sales
  • Trial software

MathWorks

Accelerating the pace of engineering and science

MathWorks is the leading developer of mathematical computing software for engineers and scientists.

Discover…

Explore Products

  • MATLAB
  • Simulink
  • Student Software
  • Hardware Support
  • File Exchange

Try or Buy

  • Downloads
  • Trial Software
  • Contact Sales
  • Pricing and Licensing
  • How to Buy

Learn to Use

  • Documentation
  • Tutorials
  • Examples
  • Videos and Webinars
  • Training

Get Support

  • Installation Help
  • MATLAB Answers
  • Consulting
  • License Center
  • Contact Support

About MathWorks

  • Careers
  • Newsroom
  • Social Mission
  • Customer Stories
  • About MathWorks
  • Select a Web Site United States
  • Trust Center
  • Trademarks
  • Privacy Policy
  • Preventing Piracy
  • Application Status

© 1994-2022 The MathWorks, Inc.

  • Facebook
  • Twitter
  • Instagram
  • YouTube
  • LinkedIn
  • RSS

Join the conversation