Realization of Detection of Stalling in Micro-stepping Motor Driver in AFS Application

Due to the limitation of mechanical structure, in the application of adaptive headlamp system (AFS), the stepper motor may sometimes be blocked. Once the motor stalls, the electronic control unit (ECU) will lose the tracking information of the headlight position and make an inappropriate response, which breeds a very serious safety problem. Therefore, stall detection in AFS applications is essential.

Generally, the motor's back electromotive force (BEMF) can be used to determine whether the motor is locked or not. BEMF varies with motor speed, load and supply voltage. The traditional stepper motor driver chip has no BEMF output, but includes a built-in locked-rotation detection algorithm. The customer can only set a fixed lock-up threshold value in the register, which means that under real road conditions, all set values ​​must be preset “offline” before work, and cannot be adapted to real working conditions.

ONV Semiconductor's NCV70522 microstepping motor driver provides BEMF output through the SLA pin, which means that it can perform stall detection calculation in real time and adjust the detection level according to different conditions.

Algorithm description

Because the recirculation current during the coil current decay is relatively large, the coil voltage Vcoil exhibits transient characteristics. Since transient state is not always wanted in the application software, two operating modes can be selected by the bit setting value. At high, the SLA pin shows a fully visible voltage transient. If the bit is cleared, then only voltage samples at the zero-crossing end of each coil current are visible on the SLA pin. Since the transient characteristics of the coil voltage are no longer visible, this mode produces a more common BEMF input for subsequent processing by software, etc.

In order to adapt the sampled BEMF output level to the (0 V to 5 V) range, the sampled coil voltage Vcoil can be optionally divided by 2 or 4. This setting is controlled by the SPI bit. The following figure shows the operation of the SLA pin. The transparent bits "PWMsh" and "Icoil = 0" are internal signals, which together with SLAT define the sampling and maintenance instants of the coil voltage.

The following figure shows the working timing diagram of the SLA pin

This BEMF voltage is sampled during each so-called "coil current zero crossing". Each coil has 2 zero current positions in each electrical cycle, so there are 4 zero crossing observation points in each electrical cycle, so it can measure 4 times of BEMF. If the microstep position is at the "coil current zero crossing", the BEMF voltage will only be sampled by the motor driver. The microstep position can be read through the SPI interface.

Through the software, we can flexibly determine whether the stall is based on the four SLA values ​​measured in one electrical cycle.

Here you can find the related products in LED Track Light, we are professional manufacturer of Cob Track Light 25W, Led  Track Light ,Flicker-Free Track Lighting,Commercial Track Lighting. We focused on international export product development, production and sales. We have improved quality control processes of Led Track Light to ensure each export qualified product. If you want to know more about the products in LED Track Light, please click the product details to view parameters, models, pictures, prices and other information about Cob Track Light 25W,Led Track Light,Flicker-Free Track Lighting,Commercial Track Lighting. Whatever you are a group or individual, we will do our best to provide you with accurate and comprehensive message about LED Track Light!

track light


LED Track Light

Cob Track Light 25W,Led Track Light,Flicker-Free Track Lighting,Commercial Track Lighting

Guangdong Decosun Lighting Technology Co.,Ltd , https://www.decosun-lighting.com