Proculus Technologies Co., Ltd.
Proculus Technologies Co., Ltd.
TY_EMAIL_US

Distance Sensor Application

The Distance Sensor Project is a practical demonstration showcasing the use of an ultrasonic sensor to measure distances, integrated with a smart display and an Arduino. This project highlights real-time monitoring, visual alerts, and efficient communication between hardware and software, making it ideal for control and safety applications.

How Does the Project Work?

The system continuously measures the distance of an object using an ultrasonic sensor. The distance values are sent to the display and shown in real time. If the measured distance falls outside the defined limits (maximum and minimum), the display background color changes to red, indicating an alert state. If within the limits, the background color is green. The distance limits can be configured directly through the display interface.

Summary of Features:

  • Precise Distance Measurement: Uses an ultrasonic sensor to provide readings in centimeters.
  • Dynamic Visual Alerts: Background color changes on the display and indicator LEDs signal alert states.
  • Configurable Settings: Adjust maximum and minimum distance limits directly on the graphical interface.
  • Efficient Communication: The Lumen Protocol library ensures fast data transmission between the Arduino and the display.

Components and Materials

Hardware:

  • Arduino UNO
  • Ultrasonic Sensor (HC-SR04 or similar)
  • LEDs (Red and Green)
  • Resistors for LEDs
  • Smart Display
  • Jumper Wires

Software:

  • UnicView Studio: For creating the graphical interface.
  • Arduino IDE: For programming the Arduino.

How to Set Up the Project?

  1. Download the Project Files:
    All code and schematics are available in the official GitHub repository.
  2. Configure the Display:
    • Use UnicView Studio to upload the project files to the display.
    • The interface includes fields to display the measured distance and adjust maximum and minimum limits.
  3. Set Up the Arduino:
    • Open the code in the Arduino IDE, configure the serial port, and upload it to the Arduino UNO.
  4. Assemble the Circuit:
    • Connect the ultrasonic sensor to the specified pins in the schematic (TRIG and ECHO).
    • Install the red and green LEDs to the designated pins in the schematic to indicate alert states.

Why Use This Project?

The Distance Sensor Project is ideal for learning and demonstrating fundamental concepts of sensors, simple visual alerts, and hardware-software integration. It can also be expanded for practical applications, such as security systems, proximity control, and monitoring in automated environments.

Downloads and Resources

  • Project on GitHub