/*------------------------------------------------------ Gauge_Pot01 Arduining.com 10 July 2011 Direct driving of Miniature Stepper Motor used as an indicator drive for dashboard instrumentation. Hardware: -Arduino UNO. -Potentiometer. -Stepper Motor VID29-05P (Can be directly driven by MCU): -Low current consumption: 2) { //if diference is greater than 2 steps. if ((val - pos) > 0) { stepper.step(-1); // move one step to the left. pos++; } // delay(25); if ((val - pos) < 0) { stepper.step(1); // move one step to the right. pos--; } // delay(25); } Serial.println(pos); //for debuging... // Serial.println(val); // delay(100); }
Good vid
Do you know how much current each coil draws? It looks like you're able to drive the coils directly from the Arduino pins with no buffering.
it's under the output limits of the arduino and yes it's directly driven.
Awesome! Just wish you moved the camera to more easily see the coding. Are you going to post the code anywhere?
/*------------------------------------------------------
Gauge_Pot01
Arduining.com 10 July 2011
Direct driving of Miniature Stepper Motor used as an indicator
drive for dashboard instrumentation.
Hardware:
-Arduino UNO.
-Potentiometer.
-Stepper Motor VID29-05P (Can be directly driven by MCU):
-Low current consumption: 2) { //if diference is greater than 2 steps.
if ((val - pos) > 0) {
stepper.step(-1); // move one step to the left.
pos++;
}
// delay(25);
if ((val - pos) < 0) {
stepper.step(1); // move one step to the right.
pos--;
}
// delay(25);
}
Serial.println(pos); //for debuging...
// Serial.println(val);
// delay(100);
}
@@aknovaman Thank you sir!