BulldogLowell:
2: use the const keyword for variables that won't change:
//**********************Customize***********************
int norLiquidON = 5400; //NORMAL SERVING: The time that the pump with Liquid is on. (miliseconds)
long norPulseGoal = 400; //NORMAL SERVING: The pulse from the flowmeter.
int strLiquidON = 6800; //STRONG SERVING: The time that the pump with Liquid is on. (miliseconds)
long strPulseGoal = 400; //STRONG SERVING: The pulse from the flowmeter.
long maxTimeWater = 20000; //WATER ON TIME: the max time the water can stay on.
long almostBOX = 2147483640; //WARNING: when the BOX almost empty. Counts the 'TimeOnS' from normal and strong. (miliseconds)
long emptyBOX = 2147483640; //WARNING: when the BOX is empty. Counts the 'TimeOnS' from normal and strong. (miliseconds)
int delayWaterValveO = 20; //OPEN: !!DO NOT MAKE SMALLER THEN 20!! The delay between the push on the button and opening the water valve. (miliseconds)
int delayAntiDripO = 200; //OPEN: The delay between the opening of the water valve and the opening of the anti drip. (miliseconds)
int delayWaterValveC = 1000; //CLOSE: The delay beteen closing the anti drip and closing the water valve. (miliseconds)
int intervalPanic = 50; //LED WARNING: interval at which to blink, when panic button is pushed. (miliseconds)
int intervalAlmost = 1000; //LED WARNING: interval at which to blink, when BOX is almost empty. (miliseconds)
int intervalEmpty = 20; //LED WARNING: interval at which to blink, when BOX is empty. (miliseconds)
int minFading = 30; //LED FADING: The minimum strength of te led while fading
int maxFading = 255; //LED FADING: The maximum strength of te led while fading
int upTimeFading = 500; //LED FADING: The time that the LED needs to fade up. (miliseconds)
int downTimeFading = 1500; //LED FADING: The time that the LED needs to fade down. (miliseconds)
int waitServLed = 175; //LED FADING: The strength of the LED between fading
int ledReset = 0; //LED FADING: The led in error
int saftyReset = 3000; //SAFETY TIME: The time de reset button needs to be pushed. (miliseconds)
boolean dirSet = HIGH; //BOX MOTOR: direction motor, HIGH is counterclockwise, LOW is clockwise
long timerSet = 60000; //BOX MOTOR: The interval between every motor movement. (miliseconds)
int rpm = 80; //BOX MOTOR: the rpm from the motor.
float MStep = 400; //BOX MOTOR: !!ONLY CHANGE IF THIS IS CHANGED ON THE DRIVER!! pulse/rev, adjustable on driver.
int rotations = 3; //BOX MOTOR: After the 'timerSet' is over, the moter turns x times.
//---------------------------------------------------------------------------------------------------------------------------
@BulldogLowell, What do you mean whit 'const keyword'??