Read rotational speed of shaft
Simulink Support Package for Arduino Hardware / Sensors
The Tachometer block reads the rotational speed of the shaft from the
tachometer connected to the hardware. The block outputs the speed of rotation as a
uint32 value.
If you simulate a model that contains the Tachometer block without connecting the hardware, the block outputs zeros. For more information, see Block Produces Zeros or Does Nothing in Simulation.