HOW TO MAKE Rotating turntables for cameras

By GIL'S LAB길스랩

24
0
Free
It's free to download
Main Image

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); }

License

36 objects 20 Followers
Joined over 5 years ago South Korea

YouMagine

a MyMiniFactory company
© 2024 YouMagine. All rights reserved.  2 Berners Road, Islington, London, N1 0PW, United Kingdom
Enjoy a 20% sitewide
Discount at checkout
️Get a 20% Discount