DC motor regulator
Control DC motor through PWM. Motor works in two modes switched by simultaneous click A and B. 1st mode is motor rotation in different RPM changed with A and instant stop with B. 2nd mode is partial turning and stopping on fraction of rotation. Fraction is changing with A and B makes stepping this fraction. Fraction is measured with optical sensor and windowed wheel connected to leg 2.