Naime zanima me da li je moguce posto imam step motor(Model 17HD48002H-22B Step Angle 1.8 Degrees Torque 59Ncm (84 oz.in) Rated Current 1.7A)
da mu u skripti zadam korake razlicite vrijednosti naprimjer kad ide naprijed da ide stepsPerRevolution 3000 a kad se vraca da ide samo 2000 ,
Skripta koju koristim ,projek koji radim je camera slider,lijep pozdrav

Kod: Označite sve
// Define pin connections & motor's steps per revolution
const int dirPin = 2;
const int stepPin = 3;
const int stepsPerRevolution = 3500;
void setup()
{
// Declare pins as Outputs
pinMode(stepPin, OUTPUT);
pinMode(dirPin, OUTPUT);
}
void loop()
{
// Set motor direction clockwise
digitalWrite(dirPin,LOW);
// Spin motor slowly
for(int x = 0; x < stepsPerRevolution; x++)
{
digitalWrite(stepPin, HIGH);
delayMicroseconds(500);
digitalWrite(stepPin, LOW);
delayMicroseconds(500);
}
delay(1000); // Wait a second
// Set motor direction counterclockwise
digitalWrite(dirPin,HIGH );
// Spin motor quickly
for(int x = 0; x < stepsPerRevolution; x++)
{
digitalWrite(stepPin, HIGH);
delayMicroseconds(500);
digitalWrite(stepPin, LOW);
delayMicroseconds(500);
}
delay(1000); // Wait a second
}