DC motor control using single bit motor encoder