Initial commit

master
Sebastian 1 year ago
parent 47f0182aa5
commit bd5645c459
  1. 7
      README.md
  2. BIN
      Slush-Refiller.stl
  3. 901012
      UM3_Slush-Refiller.gcode
  4. 52
      slush_pump.ino

@ -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.

Binary file not shown.

File diff suppressed because it is too large Load Diff

@ -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