create function for translating active pins into motor activations