Skip to content
Snippets Groups Projects
Commit b1ad5c48 authored by Dan Stone's avatar Dan Stone
Browse files

skirt

parent 60304959
No related branches found
No related tags found
No related merge requests found
Pipeline #396116 passed
......@@ -2,9 +2,9 @@
// Define the pin numbers for the sensors and actuators
const int LED_PIN = 7;
const int WASH_BUTTON_PIN = 11;
const int DRY_BUTTON_PIN = 10;
const int FULL_BUTTON_PIN = 9;
const int WASH_BUTTON_PIN = D6;
const int DRY_BUTTON_PIN = D5;
const int FULL_BUTTON_PIN = D4;
const int WATER_SENSOR_PIN = 2;
const int LID_SENSOR_PIN = 3;
const int DRUM_PIN = D0;
......@@ -19,7 +19,7 @@ Servo esc;
void setup() {
pinMode(LED_PIN, OUTPUT);
pinMode(WASH_BUTTON_PIN, INPUT);
pinMode(WASH_BUTTON_PIN, INPUT_PULLUP);
pinMode(DRY_BUTTON_PIN, INPUT);
pinMode(FULL_BUTTON_PIN, INPUT);
pinMode(WATER_SENSOR_PIN, INPUT);
......@@ -33,11 +33,12 @@ void setup() {
void loop() {
// Wait for the wash button press
if (digitalRead(WASH_BUTTON_PIN) == HIGH) {
if (digitalRead(WASH_BUTTON_PIN) == LOW) {
// Check the water level and lid status
if (digitalRead(WATER_SENSOR_PIN) == LOW && digitalRead(LID_SENSOR_PIN) == LOW) {
// Start the wash cycle
esc.write(DRUM_SLOW);
Serial.println("wash");
digitalWrite(WATER_PUMP_PIN, HIGH);
delay(600);
esc.write(DRUM_STOP);
......@@ -54,71 +55,71 @@ void loop() {
}
// Wait for the dry button press
if (digitalRead(DRY_BUTTON_PIN) == HIGH) {
// Start the slow spin
if (digitalRead(LID_SENSOR_PIN) == LOW) {
// if (digitalRead(DRY_BUTTON_PIN) == HIGH) {
// // Start the slow spin
// if (digitalRead(LID_SENSOR_PIN) == LOW) {
esc.write(DRUM_FAST);
delay(600);
//esc.write(DRUM_FAST);
// delay(600);
// Start the fast spin
esc.write(DRUM_STOP);
delay(300);
esc.write(DRUM_FAST);
delay(300);
esc.write(DRUM_STOP);
} else {
Serial.println("lid is open.");
digitalWrite(LED_PIN, HIGH);
}
}
// esc.write(DRUM_STOP);
// delay(300);
// esc.write(DRUM_FAST);
// delay(300);/
// esc.write(DRUM_STOP);
// } else {
// Serial.println("lid is open.");
// digitalWrite(LED_PIN, HIGH);
// }
// }
// Wait for the full cycle button press
if (digitalRead(FULL_BUTTON_PIN) == HIGH) {
// if (digitalRead(FULL_BUTTON_PIN) == HIGH) {
// Perform the wash cycle
if (digitalRead(WATER_SENSOR_PIN) == LOW && digitalRead(LID_SENSOR_PIN) == LOW) {
// if (digitalRead(WATER_SENSOR_PIN) == LOW && digitalRead(LID_SENSOR_PIN) == LOW) {
// Start the wash cycle
esc.write(DRUM_SLOW);
digitalWrite(WATER_PUMP_PIN, HIGH);
delay(600);
esc.write(DRUM_STOP);
digitalWrite(WATER_PUMP_PIN, LOW);
delay(400);
digitalWrite(WATER_PUMP_PIN, HIGH);
delay(400);
digitalWrite(WATER_PUMP_PIN, LOW);
} else {
Serial.println("Not enough water or lid is open.");
digitalWrite(LED_PIN, HIGH);
return;
}
// esc.write(DRUM_SLOW);
// digitalWrite(WATER_PUMP_PIN, HIGH);
// delay(600);
// esc.write(DRUM_STOP);
// digitalWrite(WATER_PUMP_PIN, LOW);
// delay(400);
// digitalWrite(WATER_PUMP_PIN, HIGH);
// delay(400);
// digitalWrite(WATER_PUMP_PIN, LOW);
// } else {
// Serial.println("Not enough water or lid is open.");
// digitalWrite(LED_PIN, HIGH);
// return;
// }
// Perform the dry cycle
// Start the slow spin
if (digitalRead(LID_SENSOR_PIN) == LOW) {
esc.write(DRUM_SLOW);
// if (digitalRead(LID_SENSOR_PIN) == LOW) {
// esc.write(DRUM_SLOW);
delay(200);
// delay(200);
// Start the fast spin
esc.write(DRUM_FAST);
// esc.write(DRUM_FAST);
delay(200);
esc.write(DRUM_STOP);
delay(200);
esc.write(DRUM_FAST);
// delay(200);
// esc.write(DRUM_STOP);
// delay(200);
// esc.write(DRUM_FAST);
delay(100);
esc.write(DRUM_STOP);
// delay(100);
// esc.write(DRUM_STOP);
} else {
Serial.println("Not enough water or lid is open.");
digitalWrite(LED_PIN, HIGH);
return;
}
// } else {
// Serial.println("Not enough water or lid is open.");
// digitalWrite(LED_PIN, HIGH);
// return;
// }
}}
docs/projects/Plate/waterskirt.jpg

70.5 KiB

docs/projects/Plate/waterskirt2.jpg

29.1 KiB

docs/projects/Plate/waterskirt3.jpg

66.6 KiB

docs/projects/Plate/waterskirt4.jpg

43.5 KiB

docs/projects/Plate/waterskirt5.jpg

417 KiB

docs/projects/Plate/waterskirt6.jpg

53.4 KiB

docs/projects/Plate/waterskirt61.jpg

60.4 KiB

......@@ -280,6 +280,48 @@ and now to test
<iframe width="560" height="315" src=../../images/Finalproject/Bowlfly.mp4 frameborder="0" allowfullscreen></iframe>
## Water skirt and drainage
My plan for water profing the motor and providing a gravity based drainage is to create a sloped rubber base for box with a rasied skirt.
The skirt will go between the motor and the plate lip thus stopping any water for getting into the motor.
I started with a fusion design
![](../projects/Plate/waterskirt.jpg)
Added the drainage slopes
![](../projects/Plate/waterskirt2.jpg)
Unfortuntaly my prusa is too small to print the whole things at one so I had to cut it to be printed in parts
![](../projects/Plate/waterskirt3.jpg)
![](../projects/Plate/waterskirt4.jpg)
Printing in TPU is slow if you do not want stringing It is a 23 hour print !!
![](../projects/Plate/waterskirt5.jpg)
Here it is in progress
![](../projects/Plate/waterskirt6.jpg)
Fully printed
![](../projects/Plate/waterskirt61.jpg)
Printing went well but remove the print from the plate was nearly impossible and ended up destrying the plate.
This did not happen to me in smaller prints I did but after going back and reviewing the Prusa [materials guide](https://help.prusa3d.com/materials#_ga=2.250429327.883239654.1684193727-1420350994.1684193726) as well as reading some user form it seems that I missed the need to either
1) Add a layer of glue stick
2) Put down blue tape the print on
## Spinning Motor set up
For my vegetable washing machine I initially purchased 3 parts:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment