 
 boolean errorstate = false;
 
-SoftwareServo servo;
+SoftwareServo servodump;
+SoftwareServo servoopen;
 
 void setup() {
 	pinMode(pinled, OUTPUT);		
-	pinMode(pinservo, OUTPUT);		
+	pinMode(pinservodump, OUTPUT);		
+	pinMode(pinservoopen, OUTPUT);		
 	pinMode(pinmotor, OUTPUT);		
 	pinMode(pinmotorspeed, OUTPUT);		
 	pinMode(pinred, OUTPUT);		

	
	Serial.begin(9600);
	
	servo.attach(pinservo);
	servo.write(servoup);
	
	if (EEPROM.read(address_calibrated) == 1) {
		calibrated = true;
		position = (float)EEPROM.read(address_position) * (float)containers / (float)fullrotation;


void flush() {
	setcolor(128,0,200);

	servoopen.write(servoopenopen);
	delayandrefresh(500);	

	servodump.write(servodumpdown);
	delayandrefresh(600);
	servodump.write(servodumpup);

	delayandrefresh(800);
	servodump.write(servodumpdown);
	delayandrefresh(600);
	servodump.write(servodumpup);

	delayandrefresh(600);
	setcolor(0,0,0);
	servoopen.write(servoopenclosed);
	delayandrefresh(500);
}

void checkserial() {
