Reference
Communication Protocol Description
UART Communication
| UART | Data Bit | Stop Bit | Parity Check | Baud Rate |
|---|---|---|---|---|
| TTL level | 8 | 1 | None | 9600bps |
UART Output
| Frame Data | Description | Byte |
|---|---|---|
| Frame Header | Fixed 0xFF | 1 |
| DATA_H | High eight bits of distance data | 1 |
| DATA_L | Low eight bits of distance data | 1 |
| SUM | Communication check sum | 1 |
UART Output Example
| Frame Header | DATA_H | DATA_L | SUM |
|---|---|---|---|
| 0xFF | 0x07 | 0xA1 | 0xA7 |
Note: the check sum only reserves the low eight bits of the accumulated value.
SUM =(Frame header + Data_H+ Data_L)&0x00FF
=(0XFF + 0X07 + 0XA1)&0x00FF
=0XA7;
Distance value=Data_H*256+ Data_L=0X07A1;
It will be 1953 when converted to decimal; The currently measured distance is 1953mm.
Principle
Based on the principle of ultrasonic detection, this liquid level sensor can accurately measure the liquid level of various toxic substances, strong acid/alkali or pure liquid in high-temperature and high-pressure closed containers without contacting with the solution.
Other Supplementary Information
NOTE
- At room temperature, the blind zone and detection limit height of the sensor vary with the material of containers, such as metal, glass, ceramics, non foaming plastic, etc.
2.The blind zone and detection limit height of the sensor also will be different for the same material container with different thickness at room temperature.
3.When liquid level to be detected exceeds the detection range of the sensor, or the liquid level fluctuates greatly, the sensor could not give stable performance.
4.You may have to apply Couplant or AB glue on the surface of the sensor in actual use. The couplant can be used for testing. If you need to fix your sensor at a position for a long time, AB glue is highly recommended (A glue and B glue should be mixed before using).
LED Indicator Description
- LED Keeping On: the module is powered but no objects are detected.
- LED Slowly Blinking: liquid detected, and the LED flashes per second.
Was this article helpful?
