I have a stepper motor which i think needs more current as it is unable to rotate from arduino the problem is that i do not have any shield or some driver circuit to provide it sufficient current is there any method to amplify the currents from the pins 8,9,10,11 so that it can rotate the stepper motor.
This is the code i am using
#include <Stepper.h>
const int stepsPerRevolution = 200; // change this to fit the number of steps per revolution
// for your motor
// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
void setup() {
// set the speed at 60 rpm:
myStepper.setSpeed(60);
// initialize the serial port:
Serial.begin(9600);
}
void loop() {
// step one revolution in one direction:
Serial.println("clockwise");
myStepper.step(stepsPerRevolution);
delay(500);
// step one revolution in the other direction:
Serial.println("counterclockwise");
myStepper.step(-stepsPerRevolution);
delay(500);
}
The motor is sounding like inside the motor something is rotating properly as it is properly stopping from .5 seconds after one rotation and then feels like taking taking another rotation in the opposite direction. So if supply is the reason how can i solve it?