Software and hardware for a stepper motor-controlled downpipe opening