Can anyone give me idea A3967 motor driver IC and its interfacing with arduino

Thread Starter

Md_Yusuf

Joined Aug 2, 2022
20
Hi, everyone I have interfaced A3967 IC with Arduino to operate the stepper motor but the problem is that my motor is not rotating but only vibrating please suggest me that what could be the possible reasons the motor is not rotating and I have used A3967 Easy Driver circuit for this please look the schematics in the datasheet and also the code for this as I have attached below thank you.
 

Attachments

Papabravo

Joined Feb 24, 2006
21,264
Without taking a deep dive I would say you are trying to run the motor at too high a speed. You must ramp the velocity up from a slow speed to the running speed and similarly you must ramp the velocity down to stop.
 

Reloadron

Joined Jan 15, 2015
7,546
When posting code things go better if you post your code using code tags so it looks like this:

This is my code I am using.:
/*
  EasyDriver-Stepper-Motor-Driver Module

*/

#define stp 2
#define dir 3
#define MS1 4
#define MS2 5

int x;

void setup() {
  pinMode(stp, OUTPUT);
  pinMode(dir, OUTPUT);
  pinMode(MS1, OUTPUT);
  pinMode(MS2, OUTPUT);

  digitalWrite(MS1, LOW);
  digitalWrite(MS2, LOW);
}

void loop() {
  digitalWrite(dir, HIGH);
  for (x = 0; x < 1000; x++)
  {
    digitalWrite(stp, HIGH);
    delay(10);
    digitalWrite(stp, LOW);
    delay(10);
  }
  delay(1000);

  digitalWrite(dir, LOW);
  for (x = 0; x < 1000; x++)
  {
    digitalWrite(stp, HIGH);
    delay(10);
    digitalWrite(stp, LOW);
    delay(10);
  }
  delay(1000);
}
I also agree with ...
Without taking a deep dive I would say you are trying to run the motor at too high a speed. You must ramp the velocity up from a slow speed to the running speed and similarly you must ramp the velocity down to stop.
Ron
 
Top