Pirat-Bilens tachometer

The Pirate cars PID-regulator get’s goal-value from a tachometer inside the gearbox. A IR-reflex-sensor (ITR8307) is located on the shell off the gearbox and is pointed to one of the gears inside. That gear is painted half black. The tachometer can pick up 6 pulses per revolution of the wheel.