Quantcast
Channel: Motor drivers forum - Recent Threads
Viewing all articles
Browse latest Browse all 15441

Need Help on DRV8711 micro step size

$
0
0

I'm using Infineon XMC4500 to drive DRV8711.

The motor made so much noises when I set it to 256 and 128 micro step size, 120+ rpm. It didn't make that much noises on 64 micro step size.

When I tried using DRV8711 EVM and set it to 256 and 128 micro step size, 12)+ rpm, it was much more quite and smoothly.

The registers settings are the same in both cases, so I don't know what's wrong.

Here are the registers settings:

Register 0:

ISGAIN = 40

DTIME = 850ns

Register 1:

TORQUE = 123(Decimal)

SMPLTH = 001

Register 2:

TOFF = 20 us

Register 3:

TBLANK = 3 us

ABT = 0

Register 4:

TDECAY = 10 us

DECMOD = 101

Register 5:

SDTHR = 60 (Decimal)

SDCNT = 00

VDIV = 10

Register 6:

OCPTH = 00

OCPDEG = 00

TDRIVEN = 11

TDRIVEP = 11

IDRIVEN = 00

IDRIVEP = 00

Register 7:

all zeroes

 

everything else is in default setting.

 

Here is my acceleration code, I have a hardware timer expires every 1ms:

steps_per_second = RPM * ustep_size * (360 degree / 1.8 (degree per step) );

accel = (steps_per_second - 0 )/acceleration_time; //I set the acceleration time to 500ms

voidTime_Interval_Event(void)

{

TIMER_ClearEvent(&AccelTimer);

PWM_SetFreq(&MotorStep,current_steps_per_second);

current_steps_per_second = current_steps_per_second + accel ;

if(current_steps_per_second > steps_per_second ){

PWM_SetFreq(&MotorStep,steps_per_second);

TIMER_Stop(&AccelTimer);

TIMER_ClearEvent(&AccelTimer);

}

}

This is how I calculate the acceleration, I skipped other settings such as the timer, because it's working fine

So why does the motor make so much noise on my board with the same settings of drv8711 evm?

(Also drv8711 evm can't go faster than 30 RPM when it's set to 256 micro step size due to the chip)

Could you please take a look at my spi settings and acceleration calculation? Thanks!

Esme

 


Viewing all articles
Browse latest Browse all 15441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>