MotorDriver / L6474

Stepper motor driver library for Arduino Uno using X-NUCLEO-IHM01A1 shield (based on L6474 component)
10 stars 7 forks source link

ABS_POS register store bad value after rotation .... #13

Open sly2538 opened 4 years ago

sly2538 commented 4 years ago

Hello,

I try arduino sketch "L6474SketchFor1MotorShieldDrivenByUart" all is ok but when i tried to send a C12 command with position higher than 32765 there is a problem in ABS_POS register which is negative ! Someone else report this problem ?

When i send a C12 command with negative position like : C12 -33000) all is ok The C9 ( GetPosition) return : 4294934296 it's -33000 value position, but when it will be: C12 33000 after motor's rotation The C9 ( GetPosition) return a bad value : 4294934530 .

When i send a C12 command: C12 25000 after motor's rotation The C9 ( GetPosition) return : 25000 .

best regards.

Sly