Home > Projects > Sensor – Transducer – Detector Projects > RS485 – ARDUINO AND INDUSTRIAL DISTANCE SENSOR

RS485 – ARDUINO AND INDUSTRIAL DISTANCE SENSOR

Summary of RS485 – ARDUINO AND INDUSTRIAL DISTANCE SENSOR


This article details a project connecting an industrial RS485 distance laser sensor to an Arduino for real-time distance measurement. The author successfully configured the communication protocol and displayed readings on a custom LoL Shield Matrix screen, demonstrating a cost-effective solution for industrial object detection using accessible hardware.

Parts used in the Distance Laser Sensor Project:

  • Arduino Uno R3
  • Arduino Mega 2560
  • Module RS-485
  • LoL Shield Matrix
  • Distance Laser Sensor
  • 40 pin male header (4 pcs)
  • 40 pin female header (4 pcs)
  • Double Side Prototype PCB
  • Ribbon Cable
  • Power Supply 5VDC and 24VDC

I have in my hand a distance laser sensor with high precision and speed. It is used in industrial environments for object positioning or detection applications. According to technical documents, I found it can communicate with other devices via RS485. I spent the weekend to learn it and find ways to communicate with cheap CPU – Arduino. And finally, I succeeded in reading data from it and displaying the distance value on the led screen.

And I’m willing to share this test with you. Let’s start with the video below:

Step 1: B.O.M

Main components include:

Step 2: CIRCUIT DIAGRAM AND ASSEMBLY

The circuit schematic is shown on picture above.

My idea is to read distance data and display this value on LoLShield. To do this, I had to turn the RS-485 module into a Shield to plug it on the Arduino and then Lolshield matrix will be plugged on the top.

  • Soldering RS-485 Shield:

RS-485 Shield after soldering with male header at bottom and female header on the top.

Read more: RS485 – ARDUINO AND INDUSTRIAL DISTANCE SENSOR

Quick Solutions to Questions related to Distance Laser Sensor Project:

  • How can I communicate with a cheap CPU like Arduino?
    You can use an RS485 module to enable the Arduino to read data from the sensor.
  • What is the best way to debug the program?
    Use an Arduino Mega 2560 because it has multiple serial ports to print values in the Arduino IDE.
  • Can I build my own LoL Shield Matrix?
    Yes, you can refer to the provided GitHub link to design and make one yourself.
  • How do I connect the RS-485 module to the Arduino?
    Solder male headers at the bottom and female headers on top to turn the module into a shield.
  • What power supplies are required for this setup?
    The project requires both 5VDC and 24VDC power supplies.
  • Does the sensor support industrial environments?
    Yes, the distance laser sensor is designed for industrial environments for object positioning or detection.
  • Where can I find the PCB design for the LoL Shield?
    The design is available at the GitHub repository linked in the article.
  • What is the approximate cost of the RS-485 module?
    The module costs about $0.4 on AliExpress.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top