[YN5002]  Liquid Turbidity Sensor


YN5002

Technical Parameters

Technical parameterParameter value
measuring range0~1000UNT
Allow deviation±5%
Repeatability test±3%
response time<500ms
Communication InterfaceRS485
Default baud rate9600 8 n 1
Running temperature-30~80℃
Working humidity5%RH~90%RH

Product Size

YN5002

Wiring instructions

Why choose this product?

YN5002

How to use?

YN5002

Application solution

YN5002 YN5002

Product List

YN5002

Pictures

YN5002 YN5002 YN5002

Communication Protocol

    The product uses the RS485 MODBUS-RTU standard protocol format, and all operation or reply commands are in hexadecimal data. When the device leaves the factory, the default device address is 1, and the default baud rate is: for modules and non-recording instruments: 9600, 8, n, 1 (for the recorder series products, the default is: 115200, 8, n, 1).
1. Read data (Function code 0x03)
    The inquiry frame (in hexadecimal). Example of sending: To query 1 piece of data of device No. 1, the host computer sends the command: 01 03 00 00 00 01 84 0A .
Address Function code Starting address Data length Checksum
010300 0000 0184 0A
    For a correct inquiry frame, the device will respond with data: 01 03 02 02 18 B9 2E , and the response format is:
Address Function code LengthData 1 Checksum
0103 0202 18 B9 2E
    Data description: The data in the command is in hexadecimal. Taking Data 1 as an example, 02 18 converted to decimal value is 536. Assuming the data magnification factor is 100, then the true value is 536/100 = 5.36, and the others can be deduced by analogy.
2. Common Data Address Table
Configuration Address Register Address Register Description Data Type Value Range
4000100 00浊度Read Only0~65535
4010100 64 Model Code Read-only 0~59999
4010200 65 Total Number of Measuring Points Read-only 1~1600
4010300 66 Device Address Read/Write 1~249
4010400 67 Baud Rate Read/Write 0~6
4010500 68 Communication Mode Read/Write 1 Query
2 Active Upload4010600 69 Protocol Type Read/Write
1 MODBUS-RTU Others Unused

Setup Software
Development File

 Online shop 

 Contact Online 

Email: sale@sonbest.com

TYPE: YN5002

WeChat: 13918126020

SKYPE: SOOBUU

Phone: 021-51083595

QQ1: 71182854 QQ2:613035997