Skip to main content
Version: 4.3.x {testing}

TACHOPAS - speed sensor reading

Description

The purpose of this block is to convert impulses from the speed sensor to speed. Or it can convert pulses from PAS to pedaling speed.

Settings

The input signal is processed by a majority filter, which eliminates the misdetection of a pulse. A parameter belonging to this filter is inflt. The value of the inflt is equal to a time for which is the detection in force (in ms). Minpls is another settable parameter, the parameter has two functions. Firstly, an integer value of this parameter determines how many pulses must be present for activation of an output. Secondly, the sign of the parameter selects from two modes. If the value is negative, a detection of direction is disabled (suitable for a speedometer). If the value of the minpls is positive the detection of direction is enabled (suitable for PAS), the sign of the output is dependent on a duty cycle of the input pulse.

Parameter maxperiod. If there are no pulses for this amount of time, the output of the block is set to zero.

Parameter ppr. Set a number of pulses per one wheel rotation. This means, the number of magnets on the wheel, or PAS.

info

Setting GPIO input for Tachopas (only SL, SC and SX controller)

  • For PAS, set ioconf to 88 or 89 (with pull-up)
  • For speed input, set ioconf to 72 or 73 (with pull-up) Other controllers, use default. More info here: Common block variables More info here: Common block variables

Tachopas parameters

NameDescription
infilt[ms] Input filter.
minplsMinimum pulses to activate the output.
maxperiod[ms] No pulses fot this amount of time, the outpus is set to 0
pprPulses per rotation. (Number of magnets)

Tachopas states

NameDescription
speed[RPS]