distance sensor with rs485

Hi everyone :slight_smile:

Nowadays, i'm fall in serious trouble.

i bought the lazer distance sensor. But in the box, there are only sensor and rs485 cable.
I wanted to watching the values, and finally i can see the value through terminal program(Herculars, using USB to RS485 cable)

[image1.]
01W010;0;E9C3 : sensor start command
01R021;09F4 : command of reading values

  • 61.973 is value.

Now, i want to make the value reding program.

  1. When 3.3V voltage viase(i will use adc or analog input or swtich),
  2. send the start and reading command to sensor
  3. receive value
  4. 5 seconds wating
  5. 4 times repeats.

It is my first time using rs485, so i hope to get the examples.
I believe your ability !

No link to the used hardware and it's manual. Without the necessary information from you we cannot help.

Post also information about what Arduino you're using, what RS-485 adapter you're using/planning to use, etc.