Browse Source

Initial commit

master
Sebastian 4 months ago
parent
commit
bd5645c459
4 changed files with 901070 additions and 1 deletions
  1. +6
    -1
      README.md
  2. BIN
      Slush-Refiller.stl
  3. +901012
    -0
      UM3_Slush-Refiller.gcode
  4. +52
    -0
      slush_pump.ino

+ 6
- 1
README.md View File

@ -1,3 +1,8 @@
# Slush-Refiller
Automatic refiller for the slushice machine basing on a peristaltic pump.
Automatic refiller for the slushice machine basing on a peristaltic pump.
It uses an input pin to detect the fill level of the Elmeco slush ice machine. The elmeco machine has two metal pins to measure the fill level. We re-utilise these pins.
The Slushice-Refiller is a modified cap of a 10l DIN tank, such that it can be placed on top of the tank instead of the original cap. It runs on 5V DC, so that it can be powered with a standard USB charger or power bank.

BIN
Slush-Refiller.stl View File


+ 901012
- 0
UM3_Slush-Refiller.gcode
File diff suppressed because it is too large
View File


+ 52
- 0
slush_pump.ino View File

@ -0,0 +1,52 @@
#include <FastLED.h>
#define LED_TYPE WS2811
#define COLOR_ORDER RGB
#define BRIGHTNESS 200
#define SOURCE_PIN 4
#define SENSOR_PIN A7
#define RELAY_PIN 5
#define LED_PIN 6
int sensorValue = 0;
CRGB leds[1];
// Slush-Ice Refiller
// Consists of 1 WS2811 status LED, 1 sensor pin and 1 relay for the peristaltic pump
void setup() {
pinMode(SOURCE_PIN, OUTPUT);
pinMode(RELAY_PIN, OUTPUT);
Serial.begin(115200);
FastLED.addLeds<LED_TYPE, LED_PIN, COLOR_ORDER>(leds, 1);
FastLED.setBrightness(BRIGHTNESS);
FastLED.clear();
}
void loop() {
digitalWrite(SOURCE_PIN, HIGH);
digitalWrite(RELAY_PIN, HIGH);
delay(100);
sensorValue = analogRead(SENSOR_PIN);
if (sensorValue < 50) {
Serial.println(sensorValue);
digitalWrite(RELAY_PIN, LOW);
fill_solid( leds, 1, CRGB::Green);
FastLED.show();
delay(12000);
}
digitalWrite(SOURCE_PIN, LOW);
digitalWrite(RELAY_PIN, HIGH);
fill_solid( leds, 1, CRGB::Blue);
FastLED.show();
delay(1900);
}

Loading…
Cancel
Save