Section 11.4 Before Class: Counting Pulses to Measure Speed
On Wednesday we set the motor’s speed, but we could not yet measure it. At the end of class we looked at the sensor that will let us: an optical incremental sensor, a slotted wheel on the motor’s shaft and a photointerrupter whose beam is interrupted once per slot (Figure 11.3.32). It is already mounted on the motor in your kit. What comes out of it is a train of pulses, and the rate those pulses arrive at is proportional to how fast the shaft is turning. In this reading we’ll work out how to turn that rate into the speed of the shaft in revolutions per minute (rpm), the number we’ll count out, convert, and put on the seven-segment display in class.
