





PayPal Donations :https://www.paypal.me/01044488692
pla ,infill 30%
ARDUINO SOURCE CODE
=================================================================================
/* Stepper Motor Control - one revolution
This program drives a unipolar or bipolar stepper motor. The motor is attached to digital pins 8 - 11 of the Arduino.
The motor should revolve one revolution in one direction, then one revolution in the other direction.
Created 11 Mar. 2007 Modified 30 Nov. 2009 by Tom Igoe
*/
#include
const int stepsPerRevolution = 360; // 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, 6,7,12,13);
void setup() { // set the speed at 60 rpm: myStepper.setSpeed(3); // initialize the serial port: Serial.begin(9600); }
void loop() { Serial.println("counterclockwise"); myStepper.step(-stepsPerRevolution); digitalWrite (6,LOW) ; digitalWrite (7,LOW) ; digitalWrite (12,LOW) ; digitalWrite (13,LOW) ; delay(1000); Serial.println("clockwise"); myStepper.step(stepsPerRevolution); digitalWrite (6,LOW) ; digitalWrite (7,LOW) ; digitalWrite (12,LOW) ; digitalWrite (13,LOW) ; delay(1000);
}
Loading prints...
HOW TO MAKE Rotating turntables for cameras
Creative Commons Attribution
You can distribute, remix, adapt, and build upon the material in any medium or format, as long as attribution is given to the creator.
Loading comments...