Need some help assembling a roller blinds automation project

What do you mean by that?

Count based on turning time in some direction.