FAQ

How to Convert AD Data from UART Non-contact Optical Turbidity Sensor to Dirty Data?

userHead Tonny12138 2024-11-26 11:05:34 88 Views1 Replies

How to calculate the conversion of AD data from sensors into dirty data for UART Non-contact Optical Turbidity Sensor?

2024-12-31 11:07:17

There are two formats for reading data from the host. One is dirty data, which ranges from 0 to 255, and the other is AD data, which ranges from 0 to 4095. For example, if the AD data is 0X64, which is equivalent to 100 in decimal, it needs to be mapped to the range of 0 to 255. The calculation would be 255 * 100 / 4095 = 6, so the dirty data would be 6. The corresponding voltage is calculated as 5V / 255 * 6 = 0.1V.

userHeadPic Tonny12138