Bill of Materials
Part Name | Quantity | Total Price |
300mm linear rail shaft | 2 | 11 |
100mm linear rail shaft | 2 | 9 |
0.25” plywood sheet (30”x48”) | 2 | 35 |
0.125” plywood sheet (12”x12”) | 1 | 10 |
0.25” acrylic sheet (12”x12”) | 1 | 10 |
NEMA 17 stepper motor | 1 | 14 |
Stepper motor driver | 1 | 10 |
12V DC power supply | 1 | 6 |
Assorted M4 nuts and bolts | 1 | 15 |
Assorted M5 nuts and bolts | 1 | 10 |
Lazy susan rotational bearing | 2 | 12 |
8mm bearing | 1 | 9 |
5mm bearing | 1 | 7.5 |
Linear shaft mount | 4 | 11.5 |
Linear bearing block | 4 | 15 |
TOTAL | $185 |
Arduino Code
Code Block | ||
---|---|---|
| ||
#define pulsePin 3
#define dirPin 4
#define optoPin 5
#define enablePin 6
#define pulseDelay 400
void setup() {
pinMode(pulsePin, OUTPUT);
pinMode(dirPin, OUTPUT);
digitalWrite(dirPin, HIGH);
digitalWrite(optoPin, HIGH);
digitalWrite(enablePin, HIGH);
}
void loop() {
digitalWrite(pulsePin, LOW);
delayMicroseconds(pulseDelay);
digitalWrite(pulsePin, HIGH);
delayMicroseconds(pulseDelay);
} |
Download Code: rmd_project_stepper_code.ino
MATLAB Code
Code Block |
---|
FILLER |
...