Arnov Sharma
Published © LGPL

Arduino Rotating Platform Based on NEMA17

A NEMA 17 stepper motor based Rotating Platform for capturing fancy rotating videos.

IntermediateFull instructions provided5 hours5,653

Things used in this project

Hardware components

Stepper motor driver board A4988
SparkFun Stepper motor driver board A4988
×1
NEMA 17 STEPPER M
×1
attiny dev board
×1
Arduino Nano R3
Arduino Nano R3
×1
UTSOURCE Electronic Parts
UTSOURCE Electronic Parts
×1

Software apps and online services

Arduino IDE
Arduino IDE
Fusion
Autodesk Fusion

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)

Story

Read more

Custom parts and enclosures

body

big gear

small gear

PIN

paper holder

Schematics

sch

Code

TEST code

C/C++
// defines pins numbers
const int stepPin = 3; 
const int dirPin = 4; 
 
void setup() {
  // Sets the two pins as Outputs
  pinMode(stepPin,OUTPUT); 
  pinMode(dirPin,OUTPUT);
}
void loop() {
  digitalWrite(dirPin,HIGH); // Enables the motor to move in a particular direction
  // Makes 300 pulses for making one full cycle rotation
  for(int x = 0; x < 10000; x++) {
    digitalWrite(stepPin,HIGH); 
    delayMicroseconds(500); 
    digitalWrite(stepPin,LOW); 
    delayMicroseconds(500); 
  }
  delay(1000); // One second delay
  
  digitalWrite(dirPin,LOW); //Changes the rotations direction
  // Makes 300 pulses for making two full cycle rotation
  for(int x = 0; x < 10000; x++) {
    digitalWrite(stepPin,HIGH);
    delayMicroseconds(500);
    digitalWrite(stepPin,LOW);
    delayMicroseconds(500);
  }
  delay(1000);
}

Credits

Arnov Sharma

Arnov Sharma

305 projects • 305 followers
Just your average MAKER

Comments