Incremental encoder for small and tiny motors