Final Machine

Final Machine
Final Machine
First Versions of dipping machine
First Versions of dipping machine second with counter weight attempt and raised bed.
*/ Incremental Stepper Motion

#include <Stepper.h>

const int stepsPerRevolution = 200; // change this to fit the number of steps per revolution for your motor

// initialize the stepper library on pins 8 through 11:

Stepper myStepperB(stepsPerRevolution, 8, 9, 10, 11);

int stepCount = 0; // number of steps the motor has taken

int motorSpeedB = 100; //range from 0 to 100:
int n = 1200 ;
int d = 100;
int startStop = 0;

void setup() {
Serial.begin(57600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}

}

void loop() {
if (Serial.available() > 0) {
startStop = Serial.read();
}

if (int(startStop) == ‘G’) {
myStepperB.setSpeed(motorSpeedB); // set the motor speed:

//5 dips
for (int j = 0; j < 24; j++) {

for (int f = 0; f < 4; f++) {

//go up 20
for (int i = 0; i < 20; i++) {
myStepperB.step(stepsPerRevolution);
}
delay (1500);

//go down 20
for (int i = 0; i < 20; i++) {
myStepperB.step(-stepsPerRevolution);
}

}

for (int h = 0; h < 4; h++) {

//go up 19
for (int i = 0; i < 19; i++) {
myStepperB.step(stepsPerRevolution);
}
delay (1500);

//go down 19
for (int i = 0; i < 19; i++) {
myStepperB.step(-stepsPerRevolution);
}

}

//go up 18
for (int i = 0; i < 18; i++) {
myStepperB.step(stepsPerRevolution);
}
delay (1500);
//go down 17
for (int i = 0; i < 17; i++) {
myStepperB.step(-stepsPerRevolution);
}
//go up 16
for (int i = 0; i < 16; i++) {
myStepperB.step(stepsPerRevolution);
}
delay (1500);
//go down 15
for (int i = 0; i < 15; i++) {
myStepperB.step(-stepsPerRevolution);
}

//go up 14
for (int i = 0; i < 14; i++) {
myStepperB.step(stepsPerRevolution);
}
delay (1500);
//go down 13
for (int i = 0; i < 13; i++) {
myStepperB.step(-stepsPerRevolution);
}

//go up 12
for (int i = 0; i < 12; i++) {
myStepperB.step(stepsPerRevolution);
}
delay (1500);
//go down 11
for (int i = 0; i < 11; i++) {
myStepperB.step(-stepsPerRevolution);
}

//go up 10
for (int i = 0; i < 10; i++) {
myStepperB.step(stepsPerRevolution);
}
delay (1500);

//go down 9
for (int i = 0; i < 9; i++) {
myStepperB.step(-stepsPerRevolution);
}

//go up 8
for (int i = 0; i < 8; i++) {
myStepperB.step(stepsPerRevolution);
}

//go down 7
for (int i = 0; i < 7; i++) {
myStepperB.step(-stepsPerRevolution);
}

//go down 9
for (int i = 0; i < 7; i++) {
myStepperB.step(stepsPerRevolution);
}

}
}
//stop
myStepperB.setSpeed(0); // set the motor speed:
startStop = 0;
delay (1500);

}

else if (int(startStop) == ‘S’) {
myStepperB.setSpeed(0); // set the motor speed:
}

else if (int(startStop) == ‘U’) {
myStepperB.setSpeed(motorSpeedB); // set the motor speed:

for (int i = 0; i < 5; i++) {
myStepperB.step(stepsPerRevolution);
}
myStepperB.setSpeed(0); // set the motor speed:
startStop = 0;
}

else if (int(startStop) == ‘D’) {
myStepperB.setSpeed(motorSpeedB); // set the motor speed:
for (int i = 0; i < 5; i++) {
myStepperB.step(-stepsPerRevolution);
}
myStepperB.setSpeed(0); // set the motor speed:
startStop = 0;

}

*/ Simple Stepper Motion

#include <Stepper.h>

const int stepsPerRevolution = 200; // 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, 8, 9, 10, 11);

int stepCount = 0; // number of steps the motor has taken
int motorSpeed = 100; //range from 0 to 100:
void setup() {
// nothing to do inside the setup
}

void loop() {

myStepper.setSpeed(motorSpeed); // set the motor speed:

if (stepCount < 800) {
// step 1/100 of a revolution
myStepper.step(-stepsPerRevolution / 25);
}
else {
//step backwards
myStepper.step(stepsPerRevolution / 25);

}

if (stepCount > 1600) stepCount = 0;
stepCount++;

//stepCount=stepCount+1;
}

img_5478

Raised frame, bucket sitting on washers and hotplate

img_5476

Set of fans to cool top of bucket

img_5475

Wiring of stepper motor

img_5480

Pulleys up top

img_5479

New set of pulleys attached to hook.

We raised the legs further a couple of inches and increased the base hole to 13″ wide and added 2 more pulleys to the string to hold up the wax weight.

 

Dunking machine is built into a frame so that pulleys can hold back the build up weight of the wax onto the frame. Thick string coils around the stepper motor and runs through 2 pulleys attaching back to the top portion of the frame. The bottom piece has an opening to place hot wax underneath.

img_2142

 

img_2143The materiality of the frame, as it stands, is not best suited to handle the high temperature of the hot plate, nor the heat stored in the pot containing the wax. Moving forward, it could be beneficial to rebuild the frame out of aluminum, rather than MDF and bass wood.

img_2196