HOW TO MAKE Rotating turntables for cameras

By GIL'S LAB길스랩

5
0
Free
It's free to download

Technical

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); }
36 objects 20 Followers 1717 Downloads
Joined almost 5 years ago South Korea
Enjoy a 10% sitewide
Discount at checkout
Get a 10% Discount