How to achieve continious rotation in stepper motor

Hello, I trying to run a stepper motor using L298N motor driver. I have setup the connections as:

12V - power supply +

GND - power supply -

IN1, 2, 3, 4, - arduino digital 9,10,11,12

out 1, 2, 3, 4 - stepper coils. [ checked the proper coils using a multi-meter. Connected the coils which showed resistance reading ]

I am powering the arduino using my computer.

But my motor is not running smoothly. It seems to get stuck.

You need to post a link to the datasheet for your stepper motor. An L298 may bot be a suitable driver.

You also need to tell us what motor power supply you have - volts and amps.

And you need to post your program

...R Stepper Motor Basics Simple Stepper Code

also look up the AccelStepper library

@YOGANANADHABABU, do not cross-post. Other thread removed.

int enA =7;
int enB = 8;
int in1 = 9;
int in2 = 10;
int in3 = 11;
int in4 = 12;
void setup()
{
pinMode(enA,OUTPUT);
pinMode(enB,OUTPUT);
pinMode(in1,OUTPUT);
pinMode(in2,OUTPUT);
pinMode(in3,OUTPUT);
pinMode(in4,OUTPUT);
}
void loop()
{
digitalWrite(in1,LOW);
digitalWrite(in2HIGH);
digitalWrite(in3,LOW);
digitalWrite(in4,HIGH);
for(int m_speed=250; m_speed<255;m_speed++)
{
analogWrite(enA,m_speed);
delay(1000);
}
digitalWrite(in1,HIGH);
digitalWrite(in2,LOW);
digitalWrite(in3,HIGH);
digitalWrite(in4,LOW);
for(int m_speed=250; m_speed<255;m_speed++)
{
analogWrite(enB,m_speed);
delay(1000);
}
}

for this coding the stepper motor will work continiously or not.

Please stop double posting.

...R

Threads merged.

Yo', have you read this page:

https://www.arduino.cc/en/Reference/Stepper