SEN0646 I/O Output
This article sheds light on I/O output configurations, focusing on signal level settings, single and double threshold setups, and UART mode configurations for efficient module communication.
I/O Output
In I/O output mode, it can only be used in single module, the module cannot output ranging value, TX/CAN_L and RX/CAN_H output complementary level, the level state of the two signal lines is opposite, high level is 3.3V, low level is 0V, in addition, it should be noted that the output current is small, when driving other devices, it should be noted whether it can drive, if it cannot drive directly, it can be driven by relays and other ways.
When the module is in UART mode (note that the host machine cannot recognize the module in I/O mode), connect the TOFSense series products to the host machine software through the USB to TTL module (refer to the data manual for line sequence and power supply voltage), after successful identification, click
to enter the setting page, configure the parameters and click the write parameter button to save the parameters. Note: After switching to I/O mode, if you need to change Band_Start, Bandwidth and other parameters, you can refer to the way in the FAQ section to change back to UART mode for configuration.
[!WARNING]
Please remember your baud rate (Baudeate) before modifying the configuration, so that you can switch back to UART mode later.
Single Threshold
The interface type is set to IO, Band Start is set to 1000, Band Width is set to 0, IO single threshold configuration is as shown in the figure, after writing the parameters, the module will restart and no longer output ranging value but output high and low level.
According to the above settings, the threshold=Band Start=1000(mm), in this mode, when the ranging value<1m, RX is high level, TX is low level, when the ranging value>1m, RX is low level, TX is high level.
Example: When the ranging value is 0.3 meters, RX is high level, TX is low level, when the ranging value increases to 1.2 meters, RX is high level, TX is low level.
Double Threshold
The interface type is set to IO, the hysteresis start point Band Start is set to 1000, the hysteresis width Band Width is set to 500, the IO double threshold configuration is as shown in the figure, after writing the parameters, the module will restart and no longer output ranging value but output high and low level.
According to the above settings, this mode converts the distance value into high and low level output through hysteresis comparison. When the distance changes from small to large and exceeds the high threshold, or from large to small and is lower than the low threshold, the I/O port level is reversed.
For example, based on the above settings, the low threshold is 1 meter, the high threshold is 1.5 meters. (Low threshold=hysteresis start point Band Start, high threshold=hysteresis start point Band Start+hysteresis width Band Width)
When the ranging value is 0.3 meters, RX is high level, TX is low level,
When the ranging value increases to 1.2 meters, RX is high level, TX is low level,
When the ranging value continues to increase to more than 1.5 meters, the level is reversed, RX is low level, TX is high level.
When the ranging value drops from more than 1.5 meters to 1.2 meters, RX is low level, TX is high level,
When the ranging value continues to drop to less than 1 meter, the level is reversed, RX is high level, TX is low level.
Hysteresis comparison schematic diagram is as shown in the figure

Was this article helpful?
