HOW TO MAKE Rotating turntables for cameras

Free Download
2 Likes
0 Downloads
1 Comments

Category: Gadgets

License: commercial

Files Included:

  • File ID: 1616391 (Unknown size)
  • File ID: 1616392 (Unknown size)
  • File ID: 1616393 (Unknown size)

Description

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

}

Comments (1)

Sign in to leave a comment.

No comments yet. Be the first to comment!