EasyManua.ls Logo

AS TFmini Plus - User Manual

AS TFmini Plus
6 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Loading...
Switch Value Output of TFmini Plus v1.0
A10,Keshi Building, No.28, Xinxi Rd, Haidian district, Beijing, China. 100084 Page1
Switch Value Output of TFmini Plus
1 Introduction
For the performance and considerations of TFmini Plus, please refer to the corresponding
specifications and manual. This manual is only a reference for modifying the TFmini Plus to a
switch value signal output. The switch value here is the active signal (step signal) 0 or 1. The
corresponding voltage of 0 is 0V and that of 1 is 3.3V.
2 Line Sequence
The TFmini Plus has four connection lines, which are 5V power line, GND, receive line (RXD),
and transmit line (TXD). The switch value signal is given by the transmit line (TXD) and forms a
reference voltage with GND.
Table5: The Function and Connection Description of each pin
No.
Color
PIN
Funciton
Comment
1
red
+5V
Power supply
Positive
2
blue
TXD
Transmitting
High and low level detection
3
White
RXD
Receiving
4
Black
GND
Ground
Ground
TFmini Plus has a 30cm long connecting wire with a GH1.25-4P (Molex51021-0400)
connector. The connecting wire can be extended as needs. To ensure effective data transmission, the
length of connecting wire should be short than 1m.
Question and Answer IconNeed help?

Do you have a question about the AS TFmini Plus and is the answer not in the manual?

Summary

Introduction

Line Sequence

Judgment Logic and Signal Output

Modification of Switch Value Threshold

Required Tools for Product Test

Lists the necessary hardware for testing and modifying the TFmini Plus.

Test Procedures

Outlines the steps for connecting and preparing the TFmini Plus for testing.

Commands Configuration and Description

Disable Data Output Command

Command to turn off input/output to prevent conflicts during configuration.

Setting Output Mode of Switch Value

Configures switch value mode, critical value, and hysteresis for output. Includes examples.

Enable Data Output Command

Command to enable output and start measurements after configuration.

Restore Factory Settings

Command to reset the device to its original factory configuration.

Overview

The TFmini Plus is a device designed to provide a switch value signal output, which can be configured for various detection scenarios. This manual serves as a guide for modifying the TFmini Plus to achieve this specific output, where the switch value represents an active signal (step signal) of either 0V or 3.3V.

Function Description

The core function of the TFmini Plus, when configured for switch value output, is to detect objects within a specified range and output a corresponding high (3.3V) or low (0V) level signal. This makes it suitable for applications requiring simple presence detection or threshold-based triggering.

The device operates based on a configurable detection threshold. For instance, if the threshold is set to 2 meters, the TFmini Plus will output a high level (3.3V) when an object is detected within 2 meters, and a low level (0V) when no object is detected within that range, or when an object is beyond 2 meters. The output level is relative to GND, emphasizing the importance of a common ground connection for accurate measurements.

The switch value output is provided by the transmit line (TXD) of the TFmini Plus, forming a reference voltage with GND. This setup allows for straightforward integration into systems that require a simple binary input based on distance detection.

The TFmini Plus offers flexibility in its switch value mode, allowing users to define how the output level responds to the detected distance relative to the threshold. There are three main switch value modes:

  • Close switch value mode (00): This mode's specific behavior needs to be defined based on the application.
  • Near-high-far-low level switch value mode (01): In this mode, if the measurement value is below the threshold, the output level is high (3.3V). If the measurement value is above the threshold, the output level is low (0V).
  • Near-low-far-high level switch value mode (02): Conversely, in this mode, if the measurement value is below the threshold, the output level is low (0V). If the measurement value is above the threshold, the output level is high (3.3V).

Beyond the switch value mode, users can also configure a "critical value" and a "hysteretic range." The critical value defines the primary threshold for switching between high and low levels. The hysteretic range introduces a buffer around the critical value to prevent rapid, unstable switching when the detected distance hovers near the threshold. For example, if the critical value is 100 cm and the hysteretic range is 2 cm, the output state will not change within the 100-102 cm range. If the original state was "close-distance," the output would only change to "long-distance" when the measurement exceeds 102 cm. If the original state was "long-distance," it would only change to "close-distance" when the measurement falls below 100 cm. This hysteresis ensures stable operation in dynamic environments.

Usage Features

The TFmini Plus is designed for ease of modification and configuration through serial commands, making it adaptable to various application requirements.

Connectivity: The device features four connection lines:

  1. Red (+5V): Power supply positive.
  2. Blue (TXD): Transmitting line, used for high and low level detection output.
  3. White (RXD): Receiving line.
  4. Black (GND): Ground.

The TFmini Plus comes with a 30cm long connecting wire terminated with a GH1.25-4P (Molex51021-0400) connector. While this wire can be extended, it is recommended to keep the total length under 1m to ensure effective data transmission.

Configuration Process: To modify the switch value threshold and other parameters, users will need a few tools:

  • TFmini Plus device
  • Connecting wires
  • TTL - USB board
  • USB cable
  • Computer
  • Serial assistant software (e.g., "serial assistant sscom5.12.exe")

The configuration process involves connecting the TFmini Plus to a computer via a TTL-USB board and USB cable, ensuring a secure connection. Once connected, the serial assistant software is used to send commands to the device.

Command-Based Configuration: The modification of the switch value threshold and other settings is achieved through specific serial commands. The general steps are:

  1. Disable data output: Before modifying any configuration, it is crucial to send a command (e.g., 5A 05 07 00) to turn off the input and output enable of the TFmini Plus. This stops the measurement program and prevents conflicts during configuration changes.
  2. Set output mode of switch value: This is the primary step for defining the detection behavior. A command like 5A 09 3B EE FF GG HH KK 00 is used, where EE, FF GG, and HH KK are placeholders for the switch value mode, critical value, and hysteretic range, respectively.
    • EE determines the switch value mode (00 for close, 01 for near-high-far-low, 02 for near-low-far-high).
    • FF GG represents the critical value in centimeters, with FF being the low 8 bits and GG the high 8 bits of the hexadecimal representation. For example, 500 cm (01F4 HEX) would be F4 01.
    • HH KK represents the hysteretic range in centimeters, with HH being the low 8 bits and KK the high 8 bits of the hexadecimal representation. For example, 10 cm (000A HEX) would be 0A 00. Several examples are provided in the manual to illustrate how to construct these commands for different thresholds and hysteresis ranges (e.g., 100cm threshold with 2cm hysteresis, 300cm threshold with 5cm hysteresis, 350cm threshold with 5cm hysteresis, and 400cm threshold with 10cm hysteresis).
  3. Enable data output: After all desired switch value mode settings are configured, a command (e.g., 5A 05 07 01 00) is sent to re-enable the output and start the measurement program with the new settings.

Maintenance Features

The TFmini Plus includes a feature to restore factory settings, which can be useful for troubleshooting or resetting the device to its default state.

Restore Factory Settings: If necessary, users can send a command (e.g., 5A 04 10 00) to restore the TFmini Plus to its original factory settings. This can help resolve configuration issues or prepare the device for a new application from a clean slate.

The overall design emphasizes a user-friendly approach to configuration through a serial interface, allowing for precise control over the device's detection behavior. The clear definition of connection lines and the step-by-step guide for command-based modification contribute to its maintainability and adaptability in various projects.

AS TFmini Plus Specifications

General IconGeneral
Distance Resolution1 cm
Enclosure RatingIP65
Measurement Range0.1m - 12m
Frame Rate1 to 100 Hz
Operating Voltage5 V
Power Consumption0.5W (typical)
Communication InterfaceUART
Operating Temperature-10 to 60 °C
Storage Temperature-20 to 70 °C
Ambient Light Immunity100K Lux
Current Consumption100mA (typical)