Page16
the same as Dist. That is why a proper zone value is needed to help avoid this situation by having a
hysteretic interval.
Delay is also supported to avoid inaccurate jumping output. Pin 6 changes its output depends on
the Dist value condition and the time it lasts. Delay1(ms) and Delay2(ms) determine how long that
approaching changes and leaving changes should wait after Dist value is already over the line.
Note: Since the Dist value is set to 0 under factory setting when no object is detected and Amp is
too low, then pin 6 may have false output in the on/off mode. Please follow the instructions in 6.8 Amp
to set the over-threshold value greater than Dist + Zone to avoid false output.
6.8 Amp Threshold
The distance calculation may get false result if the Amp value is too low, so TF-Luna set the Dist
value to dummy_dist(Default 0) when Amp is lower than amp_threshold (Default 100). If a user needs
to change the Amp threshold value, please follow instructions in “Amp threshold setting
ID_AMP_THRESHOLD=0x22”. Note that the final Amp threshold in TF-Luna is 10 times the value you
send to it.
6.9 Distance Limit
TF-Luna has a default maximum and minimum distance output: [min, max] = [0cm, 900cm].
User can change the output limits using “Distance limit setting ID_DIST_LIMIT=0x3A”.
Note: Any distance value lower than 20cm or greater than 800cm may be unreliable.
6.10 Power Saving Mode
The power consumption of TF-Luna is determined by two factors: the light source driving current
and the light-emitting duty cycle.
TF-Luna adjusts the driving current of the light source adaptively to achieve the purpose of large
dynamic range adapting to different distances and different reflectivity targets. When the signal
strength is too high, it will automatically switch to low gear current work. On the contrary, when the
signal strength is too low, it will automatically switch to high gear current work. The higher the current
gear is, the greater the power consumption will be.
Refer to "6.5 Continuous Ranging ". In continuous ranging mode, TF-Luna always emits light with
the highest duty cycle, which does not change with the output frequency. Therefore, when TF-Luna is in
continuous working mode and the current gear is at the highest gear, the power consumption is the
largest. When the power is supplied with 5V, the power consumption is about 350mW.