MCU-less sinusoidal control of permanent magnet synchronous motors
The brushless DC (BLDC) and permanent magnet synchronous motor (PMSM) both require electronic commutation to create a rotating electromagnetic field, which is needed to turn the rotor. Both are synchronous machines, where the magnetic field and rotor move at the same speed.
The main difference between these two motor types lies in the construction of the stator windings. So, the BLDC is ideally commutated using a trapezoidal waveform that can be created relatively easily. In contrast, the PMSM (as shown in Figure 1) requires a sinusoidal commutation waveform that is more complicated to produce.
Figure 1: The PMSM is a brushless DC motor that requires a sinusoidal waveform for commutation
Although it requires a more complex waveform, the PMSM benefits from lower torque ripple and reduced audible noise. For this reason, it is often the preferred motor type in applications requiring smooth and quiet motion, such as high-end home appliances, power tools, and industrial automation.
Historically, sine-wave commutation has been handled using algorithms implemented in microcontroller unit (MCU) firmware that require extensive optimization and fine-tuning to work with the chosen motor and meet the requirements of the application. Also, the MCU’s performance must be adequate to execute the control algorithm up to the maximum required speed while also handling application-level processing.
Position sensing and soft-start
Unlike a brushed motor, where simply applying power will ensure the correct coils are engaged to start the motor satisfactorily regardless of where the rotor last stopped, starting and running a BLDC motor requires knowledge of the current rotor position. This is needed to allow the appropriate coils to be excited and the rotor to begin rotating in the correct direction. Sensors are often fitted to brushless motors to detect this position. Alternatively, a sensorless setup saves on the expense and the potential reliability issues associated with sensors (such as Hall devices).
In this case, techniques are needed to move the stationary rotor in a known starting position before energizing the coils. Without proper precautions, the rotor and anything attached to it could whip back in the wrong direction.
When the coils are energized, this must be undertaken in a manner that prevents PWM switching from generating excessive noise and vibration during the time where no useable back-EMF is available to determine the rotor angle. In essence, the motor control algorithm is driving the motor blind. Once sufficient back-EMF is available, the motor controller can switch to the chosen control method.
Fine-tuning the drive
The ability to start the motor and select the speed, however, is only a subset of the functions needed to operate properly. The motor-drive designer must have the flexibility to integrate the controller with MOSFETs of a suitable voltage and power rating for the application. They also require the ability to optimize parameters (such as acceleration, lead angle, and PWM frequency) to ensure the system will respond as required to the user’s inputs and maximize energy efficiency in all operating conditions.
Achieving MCU-less control
The Toshiba TC78B011FTG sine wave pre-driver relieves any need for an MCU. This parameterizable chip for sensorless three-phase brushless motor control is a pulse-width modulated (PWM) chopper that can be connected to external low-side and high-side N-channel MOSFETs, allowing for a scalable inverter implementation to match a range of different motors.
While the device provides open-loop speed control, closed-loop control that maintains the target speed unaffected by power supply or load variations, with an adjustable speed curve, is a more typical requirement. This can be achieved by configuring the precise operating mode via the I2C interface, with the option to store the settings in a non-volatile memory (NVM). Hence, suitable settings can be programmed during manufacture for circuits that do not use a microcontroller or processor.
On the other hand, the motor speed can be adjusted by writing to a register through the device’s I2C interface and can also be determined using either a PWM input or an analog signal. Braking and direction, also, are controlled via register settings or external pins. The motor current and rotation speed can be read from external pins while the motor is running.
More accurate positioning
After powering-on, the TC78B011FTG retrieves the stored device configuration from its NVM (see Figure 2). At this point, a brake sequence may be applied by shorting the appropriate coils through the motor inverter to ensure that the rotor is stationary before attempting to start rotation. Once the initialization sequence is complete, after around 3.5ms, the driver enters idle mode with all MOSFETs turned off and awaits further instruction from the host system.
Figure 2: Operational flowchart showing the initialization of NVM configuration and forced commutation motor start-up
The required speed can be defined via I2C to the speed command register (SPD) or applied as a PWM or analog signal to the SPD pin. When either of these is received, the motor start-up sequence is engaged. The process begins with a DC excitation of the motor coils that moves the rotor to the starting position. When this is completed, the forced commutation of the motor starts. At this stage, a rough electrical field is applied in 120° commutation to generate an initial back-EMF. A configurable soft-start feature is also included (as illustrated in Figure 3), which limits the current drawn when spinning up the motor. All speed control at this stage is open loop.
Figure 3: Output current limit during start-up
The system changes to sensorless control, with the current limit set for normal operation, as soon as the motor is rotating fast enough to generate a back-EMF usable for the control algorithm. Closed-loop speed control can then be engaged.
The rotor may already be rotating before power is applied, which can be caused, for example, by air passing over a fan’s blades. In this case, known as idling or windmilling, the motor driver will skip the initial excitation and forced commutation steps and proceed directly with sensorless operation. In a typical application, the back-EMF measurement capability can be excessively sensitive in this type of situation, causing the driver to incorrectly try to skip the first open loop start-up stages. The TC78B011FTG prevents this by providing a register that allows the designer to change the minimum rotor speed considered fast enough to skip the start-up process. Alternatively, to avoid the challenges associated with starting an idling motor, the controller can be configured to apply the braking sequence each time after leaving standby or power on, enabling the rotor to always start from a stopped state.
Greater adjustability
To allow flexible speed control in closed-loop mode, the TC78B011FTG IC provides registers for setting the acceleration by specifying the time between each step change in speed and for determining how quickly the speed changes can occur. The supported speed settings are configurable through individual control of the starting, stopping, and maximum duty cycles. The RPM associated with the start and maximum values (as shown in Figure 4) can also be set and up to two speed slopes between the start and maximum RPM may be defined.
Figure 4: The minimum and maximum speed can be set. And two different speed slopes are available
The frequency used for the PWM output can be fixed or set to increase automatically as the motor speed increases for optimum efficiency. The available frequency range lies between '23.4kHz and 187.5kHz'. Adjusting the PWM frequency also helps designers ensure compliance with the electromagnetic compatibility (EMC) requirements relevant to the application.
There is also a register for adjusting the lead angle according to the motor’s characteristics, which helps to optimize energy efficiency and minimise audible noise. For the quietest possible operation, the lead angle can be set so that the back-EMF and motor current are in phase.
The IC contains three half-bridge pre-drivers for external N-channel MOSFETs. These can supply a gate-source (VGSS) voltage of up to 8V above the motor supply voltage and can be configured to deliver gate-source (IGSS) current from 10 mA to 100 mA for both high- and low-side MOSFETs, while the sink current range is 20 mA to 200 mA. Applying the electrical brake function or reversing the direction could cause a shoot-through in the switches. An ANTITHROUGH register coupled with a DEADTIME setting avoids this with dead time options from 250 ns to 1500 ns.
The highest usable switching frequency may be limited by the MOSFET choice and motor used. Since the back-EMF is measured for position sensing during the off-time of the PWM, choosing a highly inductive motor or choosing MOSFETs with low switching performance, can cause position detection to fail. To avoid this, the optimum PWM frequency can be determined by testing suitable settings under all usage conditions.
The device also comes with safety features, including shoot-through prevention with configurable dead-time. A status register indicates abnormal conditions, including excessive current draw, low charge-pump voltage, thermal shutdown, and start-up failure. An alert pin is set when any of these conditions arise. This pin is also used to indicate under-voltage and motor operation outside the pre-set maximum and minimum speeds. The controller can be programmed to await a signal from an external source after an abnormal condition is detected or attempt to restart the motor in auto-recovery mode.
MOSFET selection
The following three parameters should be considered to select a suitable MOSFET that matches the output stage of the TC78B011.The first is the maximum motor voltage VM supply, which is limited for the TC78B011 to 27V max operating voltage. So, a MOSFET with a minimum VDDS of 30-40 could be selected. The second parameter to consider is the minimum charge pump voltage VCP over the maximum VM, which is rated with 7.5V under min conditions for the TC78B011. The minimum gate-source voltage (VGS) for the MOSFET is 1.5V lower than the minimum VCP. So, a MOSFET, which is reasonably conductive at a VGS of 4.5V to 6V, can be used. The third parameter is the achievable current by the charge pump, which is used to load and unload the gate of the MOSFET under the current PWM frequency.
Item | Min | Typ | Max | Unit |
---|---|---|---|---|
VM Power supply voltage | 9 | 14.8 | 27 | V |
VCP charge pump voltage | VM+7.5 | VM+8 | VM+8.5 | V |
Gate source voltage | VCP-1.5 | VCP-0.3 | VCP | V |
Drive current | 160 | 200 | 240 | mA |
Table 1: The Output Stage Parameter of TC78B011
Considering these three parameters, the following selection of MOSFETs from Toshiba are suitable for different possible output power capabilities:
Device | VDS | ID | RDS(ON)@4.5V |
---|---|---|---|
SSM6N67NU | 30V | 4A | 39.1mΩ |
SSM6K804R | 30V | 12A | 12mΩ |
SSM6K513NU | 30V | 15A | 8mΩ |
TPN8R903NL | 30V | 20A | 10.2mΩ |
Conclusion
Designers can take advantage of BLDC motors, and the smooth and quiet PMSM type in particular, without embarking on an MCU development project. They can leverage programmable controllers that are featured for standalone operation with closed-loop control and parameterizable speed setting. A MIKROE board featuring the Toshiba TC78B011 IC plus selected MOSFETs is now available for evaluation purposes. This will further facilitate the motor system development process.
Explore more about Toshiba TC78B011 motor driver IC and MOSFETs. Click here.
Download article in PDF