Figure 1. Incremental encoder.