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

DRV8833 motor driver: stepper motor is not rotating in coounterclock (reverse) wise direction.

$
0
0

hi,

   I am writing a linux device driver for stepper motor.I need to rotate stepper motor in both direction.I am able to rotate stepper motor in clockwise direction but when i am trying this in counterclock wise then it moving only in back and forth.

I am using DRV8833 motor driver to drive the stepper motor.

To rotate motor in clockwise direction, i am using this configuration:-

Pin A1        Pin A2       Pin B1      Pin  B2         

1                      0                    0            1                  = 0x9

0                      0                    0            1                 =  0x1

0                      0                    1            1                  =  0x3

0                      0                    1            0                  =  0x2

0                      1                    1            0                   =  0x6

0                      1                   0             0                 =   0x4

1                     1                    0             0                  = 0xC

1                     0                    0              0                  = 0x8

And for counter clock wise i am using exactly opposite of this: 0x8 ,  0xC , 0x4  , 0x6  0x2 ,  0x3  , 0x1  , 0x9

But the motor is not rotating in counter clock wise, it only just moving in back and forth.

So any one please help me out of this problem.

Regards

Vikram Singh Shekhawat


Viewing all articles
Browse latest Browse all 15415

Trending Articles



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