Welcome to MRDVS Hub
Camera Hardware
Industrial Solutions
User Cases
Frequently Asked Questions
Ecological Partners
🛠️Deployment Guide for 3D Vision-Based Obstacle Avoidance Solution
type
status
date
slug
summary
tags
category
icon
password
1. Application Overview
The S series obstacle avoidance camera is an RGB-D camera developed by MRDVS based on the TOF principle. It integrates deep learning and traditional 3D vision algorithms to create an obstacle avoidance system suitable for rich scenes, accurate, real-time, configurable on a single machine, collaborative with multiple machines, and has certain initiative and predictability.
The system has the following advantages: real-time dynamic detection, self-adaptation detection of ground, dynamic tracking of detection targets, support for multiple signal outputs, support for multiple mode switching, support for 5 modes, and support for multi-machine collaborative work.
2. Camera installation and selection
2.1 Latent Mobile Robot
As shown in the figure below, the camera installation of the latent mobile robot is relatively low. It is recommended to use the camera S2/S2 Max camera, installed on the front surface of the moving direction of the latent mobile robot, and pay attention to avoiding visual interference during structural design.

Figure 2.1 Latent mobile robot
2.2 Forklift
As shown in Figure 2.2, the installation height of the intelligent forklift camera is relatively high. It is recommended to use the S2 Max camera, which should be installed at an angle of 30°~55° below the forklift door frame so that the camera's field of view edge is just on the front surface of the forklift. The camera installation height should not exceed 2m. If the installation height is higher than 2m, please contact the technical support personnel of MRDVS for assistance in camera selection and evaluation.

Figure 2.2 Forklift
3. Camera connection settings
- Before connecting the camera, the following settings need to be operated. The camera's factory IP is 192.268.100.82. Before connecting, the local network port IP needs to be set to the same network segment, as shown in Figure 3.1.

Figure 3.1 IP settings turned off
- The firewall is set to the off state, as shown in Figure 3.2.

Figure 3.2 Firewall shutdown
- If you need to modify the camera IP, you can open the " LxCameraViewer " PC software, click " Other Tools ", Network Related → IP Configuration Tool → Click IP Address to modify, press Enter, and then click Confirm Modification. After the modification is completed, the camera will automatically restart and reconnect.

- You can observe whether the IP has been successfully modified through the status bar in the lower left corner. When different network segments are used, you need to modify the local IP before reconnecting to the camera.

- Open the pre-installed upper computer software LxCameraViewer, and the upper computer software automatically retrieves the camera under the current network segment. Clicking to open the camera will automatically open the depth map and point cloud map, as shown in Figure 3.3.

Figure 3.3 Upper computer software
- After opening the camera, expand the 3d settings and filter settings for camera parameter adjustment, the recommended configuration parameters for obstacle avoidance applications, are high integration 650, low integration 200, filter settings low signal threshold recommended to be set to 10-20, installation and parameter configuration of different models, It is recommended to communicate with the technical support personnel of MRDVS.

4. Obstacle avoidance parameter configuration
- After completing the above camera parameter settings, click the "Apply Algorithm" button. The algorithm settings will pop up in the right status bar. Set it to always-on mode or close it when disconnected according to the application settings. For the S2 camera application algorithm, select "Obstacle Avoidance Algorithm". For other cameras, select "Obstacle Avoidance Algorithm 2.0", and the algorithm version number will be displayed below. The S2 camera does not recommend using a fan-shaped obstacle avoidance area type, which will cause deviation in obstacle avoidance results.

- The rectangular obstacle avoidance area and the fan-shaped obstacle avoidance area are shown in Figure 4.1.


Figure 4.1 Rectangular obstacle avoidance area and fan-shaped obstacle avoidance area
- As shown in Figure 4.2, the obstacle avoidance parameters are divided into the configuration parameters of the obstacle avoidance area outside the camera installation. After clicking the Settings button to complete the configuration of the camera's external parameters, the other four configuration areas are automatically updated to the current external parameters.
- Among them, the S2/S2 Max 2.0 camera can switch four groups of obstacle avoidance area configurations through IO: 0, 1, 2, and 3.
- Up to 20 sets of obstacle avoidance areas can be switched through SDK/UDP/RS485, which can be switched according to the running scenario of the robot. For example, when the robot moves to a narrow channel, it can be switched to a narrow channel configuration, and when the robot moves to a wide channel, it can be switched to a wide channel configuration.

5. External parameter settings
5.1 Parameter description
Parameter term | Parameter value | Explanation |
Obstacle avoidance function | ㅤ | Switch different obstacle avoidance parameters by setting different modes |
Camera Angle Roll (x-axis) | 180 | Camera external parameter, pitch angle roll, default camera installation, 180 |
Camera Angle Pitch (y-axis) | 90 | Camera external parameter, roll angle pitch, default vertical installation, 90 |
Camera Angle Yaw (z-axis) | 90 | Camera external parameter, heading angle yaw, default is 90 |
Camera position (distance x) | 430 | The distance between the front and rear of the camera in the X direction in the view of AMR. Unit: millimeters. |
Camera position (width y) | 0 | The distance between the camera and the AMR in the y-direction view is 0 if installed in the middle. Unit: millimeters. |
Camera position (height z) | 120 | The camera installation height parameter refers to the height of the camera from the ground. Unit: millimeters. |
5.2 Parameter settings
If the camera is installed on the front of the AGV, turn off other images and only use the point cloud diagram to debug the camera parameters. Prioritize the camera installation height. After fine-tuning the roll angle RX, adjust the roll angle to the horizontal level, and then adjust the pitch angle of view RY. After adjusting the settings to the settings shown in the figure below, click " Issue Parameters ", and the external parameters of the camera installation will be synchronized to other configurations.





6. Obstacle avoidance area settings
6.1 Regional parameter description

Parameter name | Numerical value | Parameter definition |
Warning distance (x distance) | 2000 | Avoidance range is the distance from the center of the car in the x direction. Obstacles beyond this distance are considered safe.The distance between the warning distance x (far distance) and the alarm distance x (middle distance) is considered a warning deceleration, and the interface displays a yellow area. Unit: millimeters |
Alarm distance (x) | 1500 | Obstacle avoidance range is the distance from the center of the vehicle in the x direction. Obstacles below this distance are considered alarm stops, and the interface displays a red area. The warning distance between x (middle distance) and x (short distance) is considered a warning deceleration, and the interface displays a red area. Unit: millimeters. |
Shielding distance (x near) | 600 | Shielding range, x direction is lower than the shielding distance x (short distance) is a blind spot, and this area cannot avoid obstacles. Unit: millimeters. |
Obstacle avoidance range left (y left) | -810 | Avoidance range, distance from the center of the robot to the left in the y direction. Unit: millimeters. |
Obstacle avoidance range right (y right) | 1270 | Avoidance range is the distance from the center of the robot to the right in the y direction. Unit: millimeters. |
Obstacle avoidance range (under z) | 10 | Obstacle avoidance range, height from the ground, no processing below this height. If set too small, it may cause false alarms due to ranging errors; if set too large, it may filter out larger obstacles on the ground and cause missed alarms. Unit: millimeters. |
Obstacle avoidance height (z) | 1500 | Obstacle avoidance range, height from the ground, will not be dealt with if it is higher than this height. Unit: millimeters. |
6.2 Obstacle avoidance area settings
- The current obstacle avoidance application has 20 built-in obstacle avoidance areas. After the user completes the camera parameter configuration, the obstacle avoidance area can be configured. When the AMR moves to different obstacle avoidance ranges, the configuration area can be switched to control the obstacle avoidance range (IO: three groups of obstacle avoidance areas can be switched, UDP, 485, API, and CAN can be switched to 20 groups).
- Warning distance (X far distance): Indicates that the camera warning (deceleration) obstacle avoidance range is 2300, that is, the warning distance is 2300-camera position 430 = 1870mm, as shown in Figure 6.1.
- Alarm Distance (X medium distance): Indicates the camera alarm (stopping) obstacle avoidance range of 1200, that is, the alarm distance of 1200-camera position 430 = 770mm, as shown in Figure 6.1.
- Shielding distance (X short distance): Indicates the camera shielding range, that is, shielding distance 450-camera position 430 = 20mm, as shown in Figure 6.1.

Figure 6.1 Warning distance image
- Obstacle avoidance range left (y left): Indicates that the camera detects obstacles in the range of 500mm to the left of the obstacle avoidance camera, as shown in Figure 6.2.
- Obstacle avoidance range left (y right): Indicates that the camera detects obstacles within a 500mm range to the right of the obstacle avoidance camera, as shown in Figure 6.2.

Figure 6.2 Obstacle avoidance range image
- Obstacle avoidance height (bottom Z): Indicates the detection of obstacles within a range of 10mm below the ground, as shown in Figure 6.3.
- Obstacle avoidance height (upper Z): Indicates that the camera detects obstacles within a range of 500mm above the ground, as shown in Figure 6.3.

Figure 6.3 Obstacle avoidance height picture
- Obstacle avoidance output:
- 0: Indicates normal without obstacles
- 1: Indicates that obstacles have been detected in the warning area (within the yellow box)
- 2: Indicates that an obstacle has been detected in the alarm area (within the red box)
- After configuring the parameters according to the above process using the host computer, you can go to the software Installation path\ Tools\ params\ current camera ID\ avoidation.json Backup the avoidation.json file and then quickly synchronize the avoidance parameters for different cameras: After turning on the camera, execute "Load configuration from file", select the backed-up avoidation.json file and wait for the setting to complete.

7. Communication methods
- Before understanding or using various communication methods, we must use the upper computer to configure the content of obstacle avoidance parameters one by one, in order to use non-API communication methods to switch different obstacle avoidance parameters.
Note: Some communication protocols are specific to certain models, such as RS485 communication is unique to M4Pro.
- All obstacle avoidance parameters of S2 Max can be set through the host computer and API provided by us, but for other communication methods (IO/UDP/CAN/485), it is limited to modifying the obstacle avoidance parameter index. The obstacle avoidance parameters of S2 can be set through the host computer provided by us, but for all communication methods, it is limited to modifying the obstacle avoidance parameter index.
Camera type | Supported obstacle avoidance module communication methods |
S2 | API、UDP、IO |
S2Max | API、UDP、CAN |
S2Max V2.0 | API、UDP、IO、CAN |
M4Pro | API、UDP、RS485 |
M4 | API、UDP、CAN |
M4 Mega | API、UDP、IO、CAN |
Camera type | Obstacle avoidance parameter index modification | Detailed parameter settings for obstacle avoidance can be modified. |
S2 | All communication methods can be modified | Only use the upper computer we provide for modification |
S2 Max、S2 Max2.0、M4、M4Pro、M4 Mega | All communication methods can be modified | Upper computer only, API can be modified |
Note: Obstacle avoidance parameter index refers to the configuration 0, 1, 2, and other parameter group index; Obstacle avoidance detailed parameters refer to all parameters except obstacle avoidance parameters, such as camera angle, warning distance, etc.
Priority | Communication method | Active object |
1 | IO communication | Parameters take effect immediately and cannot be interfered with in other ways. Use default parameters or temporary parameters when hanging or not supporting IO communication. |
2 | Upper computer, API settings | The settings are default parameters and are not affected by power outages. |
2 | Others (such as 485, etc.) | The setting is a temporary parameter, which will be modified by power failure or other communication. It can be saved as a default parameter through instructions. |
- Regarding the modification of obstacle avoidance parameters, the camera strictly follows the logic of priority internally.
- The biggest difference between temporary parameters and default parameters is whether to save them when power is turned off. Which parameter to use depends on the last communication method used.
- When using IO communication (IO is not suspended), using the communication method with priority 2 cannot modify the current parameters, but can modify the default parameters and temporary parameters. When IO communication is disconnected (IO is suspended), the specific use of default parameters or temporary parameters depends on the last setting method. When using 485 or UDP settings for the last time, temporary parameters are used. When using API calls or upper computer settings for the last time, default parameters are used. The logic is as follows

- For the S2 camera, it takes 200~300ms to switch parameters until loading is completed. Therefore, S2 filters the switching parameter operation, and the last setting within 250ms will be ignored. It is not recommended to switch parameters too frequently for both S2 and S2Max, as it will increase the camera's resource usage and reduce the image frame rate. Because the refresh rate of obstacle avoidance results is related to the frame rate, it will also cause a decrease in the refresh rate of obstacle avoidance results. The refresh rate of obstacle avoidance results is equal to the image frame rate.
7.1 API calling method
- The API calling method can support C++, C #, JAVA, ROS1, ROS2, and other environments such as Windows, Linux, and Arm. After installing the upper computer software, the SDK file and sample program code of the Windows environment are all under the installation path (such as D:\ Program Files\ Lanxin-MRDVS). Linux environment SDK can be provided by contacting MRDVS-related technical support or downloaded from the official website. It is not recommended to use this method to switch parameters for S2 cameras. It is recommended to use UDP or IO to switch parameters.
- Document folder for the SDK and PC use documentation.
- The FirmWare folder is the directory where the camera firmware packages are stored.
- Sample folder for example code source code storage directory, you can choose according to the Development Environment.
- The SDK folder is the directory where the SDK library files are stored, and environment variables can be configured according to the Development Environment.
- Obstacle avoidance applications can parameter Sampl directory C/application_obstacled obstacle avoidance API source code program.
7.2 485 Communication Methods
- 485 communication only supports the M4 Pro camera, using Modbus RTU transmission protocol. The following is the definition of the camera wiring harness.
Port | Pin | Signal | Explanation | Remarks |
Socket definition | 1 | GND | Signal ground | Blue |
ㅤ | 2 | 485_A | RS485_A | Gray |
ㅤ | 3 | 485_B | RS485_B | White |
ㅤ | 4 | VIN + | 24V power input positive terminal | Brown |
ㅤ | 5 | VIN - | 24V power input negative terminal | Black |
- The debugging method for 485 is as follows:
- When connecting via RS485, the baud rate is set to 9600 in the debugging assistant.
- Use the host computer to view the current Modbus address, read the two register addresses starting from address 108 (0x6C) in the input register (0x04), and the feedback register value is the current obstacle avoidance result.


- If you need to modify the obstacle avoidance parameters, you can write the 106 (0x6A) address of a single save register (0x06).

7.3 UDP communication method
Meaning of obstacle avoidance function type field:
Number | Transmission direction | Message | Obstacle avoidance result |
1 | Camera - > Body | ACED0410XX000000 | Accessible, XX represents the current obstacle avoidance parameters |
2 | ㅤ | ACED0410XX000001 | Warning deceleration |
3 | ㅤ | ACED0410XX000002 | Alarm stop |
4 | Body - > Camera | ACED040000000000 | Establish UDP connection |
5 | ㅤ | ACED041A00000000 | Obstacle avoidance parameter 0 |
6 | ㅤ | ACED041A00000001 | Obstacle avoidance parameter 1 |
7 | ㅤ | ACED041A00000002 | Obstacle avoidance parameter 2 |
8 | ㅤ | ACED041A00000003 | Obstacle avoidance parameter 3 |
9 | ㅤ | ... | (And so on until parameter 19) |
10 | Body - > Camera | ACED041B00000000 | Set the current parameter as the default parameter |
11 | Camera - > Body | ACED041B00000001 | Default parameters set successfully |
- When connecting via UDP, use the network debugging assistant to test the communication connection with the camera, and select hexadecimal to receive and send data. For the first communication, it is recommended to use instruction number 4. After establishing the UDP connection, the obstacle avoidance result will be automatically sent, and the sending frequency is related to the current image frame rate. After modifying the parameters, you can confirm whether the modification is successful in the message information sent by the camera to the body. XX is the current parameter in message number 1.
- The parameters set by DP remain in effect until the camera restarts, unless modified by power outage or other communication methods. If you want them to remain in effect after a power outage, you can use message number 10 to save them as default parameters. The function of saving as default parameters is UDP communication-specific function, CAN, 485.
- Set the local host address and local host port, and click to open; the remote host is the camera, fill in the camera IP port: 192.168.100.12: 6688, if the camera IP has changed, it is: camera IP: 6688; take the current as parameter 19 and modify it to parameter 0 as an example, click to send data number 5, and the flag of successful setting is that the 5th byte is changed from 0x13 (parameter 19) to 0x00 (parameter 0), as shown in the figure below.

7.4 CAN communication method
- The communication protocol adopts CanOpen, which is an application layer protocol running on the standard CAN bus, and its communication mode is also the “master-slave” mode commonly used in industrial communication protocols, that is to say, there will be a master + multiple slaves in the network, and the slaves will not communicate with each other directly, and all the communication is between the master and the slaves. All communication is between the master and the slaves. The master is also called the “client” and the slaves are also called “servers”.
- The underlying communication method uses the CAN standard frame format, which means the CAN ID is 11 bits (0x000~ 7FF) and the data is 8 bytes.
- Regarding the usage convention of CAN ID: divide the 11-bit ID into a 4-bit function code and a 7-bit node ID, and CAN ID is also known as COB ID.
CAN Frame ID | ㅤ | ㅤ | ㅤ | ㅤ | ㅤ | ㅤ | ㅤ | ㅤ | ㅤ | ㅤ |
10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Function code | ㅤ | ㅤ | ㅤ | Node number | ㅤ | ㅤ | ㅤ | ㅤ | ㅤ | ㅤ |
- Can baud rate: default is 250K, can be configured according to the application.
- Node number: Default 0x212, can be configured according to the application.
- SDO's communication message is a basic protocol format in CanOpen. The 8-byte data in the CAN message is defined by the Communication Protocol as follows:
Data | ㅤ | ㅤ | ㅤ | ㅤ | ㅤ | ㅤ | ㅤ |
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
Command code | Index | ㅤ | Sub-index | Data | ㅤ | ㅤ | ㅤ |
Obstacle Avoidance Module Communication Protocol:
- Message format sent by the ontology to the device.
Data | ㅤ | ㅤ | ㅤ | ㅤ | ㅤ | ㅤ | ㅤ |
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
0x40 | 0x0000 | ㅤ | 0x00 | MODE CTRL | ㅤ | ㅤ | ㅤ |
- Reference message: 40 00 00 00 0B 00 00 00 00, 0B: i.e. MODECTRL, indicates that the obstacle avoidance parameter is set to area 11.
- The format of the message sent by the device to the principal.
Data | ㅤ | ㅤ | ㅤ | ㅤ | ㅤ | ㅤ | ㅤ |
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
0x43 | 0x0000 | ㅤ | 0x00 | MODECTRL | result | ㅤ | ㅤ |
- Reference character: 43 00 00 00 0B 00 00 02, 0B: i.e. MODECTRL, indicating that the current obstacle avoidance parameter is region 11; 02: i.e. RESULT, indicating the current obstacle avoidance result.
- Note: Setting the obstacle avoidance parameters does not take effect immediately, as shown below.

7.5 IO communication method
7.5.1 Corresponding Table of IO Input States and Obstacle Avoidance Parameters
Input1状态 | Input2状态 | 备注 |
high-level electronics | high-level electronics | Barrier Avoidance Parameters 2 |
high-level electronics | low-level electronics | Barrier Avoidance Parameters 1 |
low-level electronics | high-level electronics | Barrier Avoidance Parameters 0 |
low-level electronics | low-level electronics | Barrier Avoidance Parameters |
- Note: The input IO is low when it is suspended, and the recommended voltage for a high level is 5~25V. - Note: The logic of using the default or temporary parameters refers to the preamble of Chapter 7 (Communication Methods), in short, when the camera is powered on and no other (except API) communication methods are used to configure the obstacle avoidance parameters, default parameters are used, and vice versa. In short, the default parameters are used when the camera is powered up and no other communication method (except API) is used to configure the obstacle avoidance parameters, and vice versa.
7.5.2Corresponding Table of IO Output States and Obstacle Avoidance Parameters
Output1 Status | Output2 state | note |
circuit breaker | circuit breaker | barrier-free |
circuit breaker | conduction | Deceleration signal |
conduction | circuit breaker | emergency stop |
conduction | conduction | Obstacle avoidance not turned on, initialization, exception |
- Note: When the obstacle avoidance is turned on but the output IOs are all grounded, please make sure that the current obstacle avoidance parameters have been set by the host computer.
7.5.3S2 Max2.0 camera I/O wiring method
Function interface crystal head corresponding to the wiring instructions:
color | causality | note |
orangish-white | Can_L | Can signal low potential |
orange | Can_H | Can signal high potential |
greenish white | Can GND | Can signal Grounding |
green | Out_1 | I/O Function Output Signal |
blue and white | COM | I/O Function Common COM, Ground, Common Ground |
blue | Out_2 | I/O Function Output Signal |
Brown and white | In_1 | I/O Function Output Signal |
brown | In_2 | I/O Function Output Signal |
7.5.4S2 Camera I/O Wiring Method
The external wiring details with the power label are shown in the table below:
label name | color | causality | note |
24V+ | brown | Power+ | S2 Camera Power Supply, Positive |
24V- | black | Power- | S2 Camera Power Supply, Negative |
IN_1 | red | Input | I/O function input signal, highly effective, supports 24V/on access |
IN_2 | white | Input | I/O function input signal, highly effective, supports 24V/on access |
IN_G | blue | GND_in | I/O function input signal common point (connected to OUT_G) |
OUT_1 | green | Output | I/O function output signal, ground/open signal, supports 24V pull-ups |
OUT_2 | purple | Output | I/O function output signal, ground/open signal, supports 24V pull-ups |
OUT_G | yellow | GND_out | I/O function output signal common point (connected to IN_G) |
The input and output terminal circuits are shown below:

Input Internal Circuit Diagram

Internal Circuit Diagram of Outputs
Explanation of how it works:
- Input: When the external input is high group state, low level, the LED in the optocoupler does not emit light, the photosensitive transistor in the optocoupler is not the same, the camera internal MCU receive level is high; when the external input is high, the LED in the optocoupler emits light, the photosensitive transistor in the optocoupler is conductive, and the camera insider MCU receive level is low.
- Output: When the S2 camera MCU outputs a high level, the optocoupler LED does not emit light, the optocoupler phototransistor does not conduct, and OUT_* and OUT_G are open; when the S2 camera MCU outputs a low level, the optocoupler LED emits light, the optocoupler phototransistor conducts, and OUT_* and OUT_G are short-circuited, i.e., grounded (because the IN_G and OUT_G are connected). connected to the ground plane).
7.5.5 S2/S2 Max2.0 camera and I/O wiring method of industrial control machine
Note that the camera 24V- should be connected to the power ground of the industrial control machine, and IN_G and OUT_G should be connected to the signal ground of the industrial control machine, and the customer can modify the common ground connection according to the actual situation. If there is no power ground and signal ground for the ICPC, the camera 24V-, IN_G, and OUT_G can be connected to the GND of the ICPC.
7.5.5.1Input IN_* wiring method
- The following diagram shows how to wire the PNP-type output of the industrial controller to the input of the S2 camera (hereinafter abbreviated as IN_*, * stands for 1 and 2):

- The following diagram shows how to wire the NPN-type output of the industrial controller to the input of the S2 camera:

- Due to the different manufacturers of industrial control machines output circuit design is different, it needs to be based on the actual situation to determine whether the need to add pull resistance and the size of the resistance value.
- It needs to be tested as follows:
- Use a multimeter to measure the impedance of the ICPC output to 24V, if <50kΩ, no pull-up resistor is needed; if ≥50kΩ, the additional pull-up resistor is needed, and it is recommended to prioritize the use of: plug-in metal film resistor (resistance value of 10kΩ, power ≥1W). Other resistors can be used for temporary testing, but long-term use affects reliability, and the resistance value can not be less than 3k ohms, not directly connected to the 24V.
- After the connection is confirmed correct, the output of the industrial computer will be pulled up and then use a multimeter to measure the voltage of the output to the ground, if the voltage is ≤ 2V, then disconnect the camera circuit connection and then check whether the industrial computer can be pulled up to the high level. If the voltage > 2V, then pull down the output to check whether there is a change in the S2 camera input, if there is a change, it means that it can be used normally; if there is no change, then pull down the output of the industrial computer and then measure the voltage of the output to the ground, if the voltage is greater than 1V, then it means that the pull-up strength is larger than that of the pull-down, and it is difficult to pull down, so it is necessary to increase the value of the pull-up resistor, and then measure the pull-down after the change in the input of the S2 camera; if the voltage is less than 1V, then it is necessary to increase the pull-up resistance. If the voltage is less than 1V, then disconnect the ICPC cable, connect the camera IN_* to 24V and GND through the resistor, and check whether there is any change in the camera input, and if there is any change, then check whether there is a correct connection between the ICPC and the camera; if there is no change, then contact the technical support to troubleshoot the problem.
- The logic tree is shown below:

7.5.5.2 Output Out_* wiring method
- As the S2 camera output for the ground/open signal, the S2 camera output and industrial computer input connection method need not distinguish between the industrial computer PNP, and NPN-type inputs, the main distinction for the normal high level or low level, that is, the industrial computer internal pull-up or not, and then determine whether the wiring needs to be added to the pull-up resistor.
- The following figure shows the wiring method between the input of the industrial controller and the output of the S2 camera (hereinafter abbreviated as OUT_*, * stands for 1 and 2):

- Whether to connect the pull-up resistor R judgment criteria for the industrial control machine power, the input side of the suspension (not connected to the camera), direct measurement of the input side of the voltage to ground, if the voltage to ground ≥ 5V, then do not need to add the pull-up resistor R; if the voltage to ground ≈ 0V, then you need to add the pull-up resistor R. Recommended priority to use: plug-in metal film resistor (resistance value of 10kΩ, power ≥ 1W). Other resistors can be used for temporary testing but long-term use affects the reliability, and the resistance value should not be less than 3k ohms, not directly connected to 24V.
Notes: For individual industrial computer input there is a large series of current-limiting resistors, the main fault manifested itself in the S2 camera OUT pulled down after the industrial computer input no change, at this time the multimeter to measure the industrial computer input voltage to ground is large, you need to adjust the pull-up resistor according to the situation, increase the resistance value until the voltage into the industrial computer to determine the low range can be.
8. Handling of common problems
8.1 black object
Due to the TOF principle, the S series camera is affected by the reflectivity of the black pallet, if it is a black pallet and the reflectivity is 5%, you can use the S2max camera to achieve 2m range of imaging, debugging can also be optimized through the host computer software high integration time and low signal threshold for the imaging effect of the black pallet. Suppose there is a black fork arm in the obstacle avoidance scene. In that case, it is recommended that the user increase the reflectivity in the fork tip part of the higher auxiliary obstacle avoidance, such as a small section of the fork tip before the spray paint other colors of paint.
8.2 low lying object
Objects on the ground can not avoid obstacles, in the application of obstacle avoidance in general we take the ground as the basis for the configuration of the external reference, such as in the case of the ground's low obstacles can not be realized when the obstacle avoidance can refer to the following solutions to deal with.
- The point cloud map of the upper computer shows that the obstacles are not selected, you need to confirm that the height of obstacle avoidance (below) is a positive value, if it is positive, it is recommended to temporarily set it to 0 to determine whether the obstacles can be detected in the frame, and if it is still not recommended to adjust the height of the camera mounting.
- The point cloud map of the upper computer can select the obstacle objects but the output of obstacle avoidance results is 0. This phenomenon may be caused by the incorrect configuration of the camera installation height, and it is recommended that the user adjust the camera installation height.
8.3 Obstacle avoidance parameter does not take effect
- Configuration parameters were configured without clicking Setup Complete.
- Illegal parameters were modified, causing the setup to fail.
- An unstable camera connection appears disconnected, causing the downlink parameter to fail.
8.4 Mounting structure interference
- The presence of structures around the camera that block the camera's field of view at the time of installation results in abnormal camera data.
- The structural design of the camera was designed to interfere with the rear field of view resulting in abnormal camera data.
- The camera mirror protective film was not removed, resulting in abnormal camera data.
- The camera mirror is fitted with other protective glass causing data anomalies.
9. Others
S series cameras are visual obstacle avoidance application cameras. S2 Max2.0 and S2 cameras can support the IO method. Users can choose the camera type according to the project. Users are recommended to use the latest version of the uplink firmware and the latest version of the uplink software, which can be obtained from Git.
📧 Service E-mail:
📱 Whatsapp:
(+86)13370882355
🌍 Website:
🎥 YouTube Channel:
💼 LinkedIn:
Loading...