GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 0015/Python_Serial_Range_Finder: Application for Single-point TOF Laser Ranging Sensor

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
Demo
Demo
 
 
LICENSE
LICENSE
 
 
ReadMe.md
ReadMe.md
 
 
requirements.txt
requirements.txt
 
 
serial_gui.py
serial_gui.py
 
 

Repository files navigation

Serial Communication GUI Project for Laser Range Sensor

This project provides a Python-based graphical user interface (GUI) for real-time serial communication. The GUI displays incoming distance data on both 2D and 3D plots, with an option to toggle the display of these graphs. The distance is shown in both millimeters and inches.

Device

Single-point TOF Laser Ranging Sensor

The innovative pulse TOF principle enables this sensor measuring distance to be realised at 20 meters. This ensures that the accuracy of the measurement remains consistent regardless of distance. The accuracy is controlled at +/-5 cm, with measurement fluctuations of <3 cm. This approach ensures the continued stability of the distance measurement and accurate measurement , which made this sensor suitable for use in a variety of scenarios, Robot obstacle avoidance, intelligent transportation, car collision avoidance, security monitoring, material level meter etc...

Serial Application Features

  • Real-time Serial Data Visualization: Displays distance data from a serial port in 2D and 3D plots.

  • Dynamic Graph Updates: The GUI updates the graphs in real-time as new data is received.

  • Distance Conversion: Converts and displays distance in both millimeters (mm) and inches.

  • Customizable Serial Settings: Easily select the serial port and set the baud rate.

  • Control Graph Display: Toggle the drawing of 2D and 3D graphs with a checkbox.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.x installed on your system. You can download it from the official Python website.
  • Pip package installer for Python (usually included with Python installations).

Installation

  1. Clone the Repository

    git clone https://github.com/0015/Python_Serial_Range_Finder.git
    cd Python_Serial_Range_Finder
  2. Set Up a Virtual Environment (Optional but Recommended)

    python -m venv serial_venv

    Activate the virtual environment

    On Windows:

    serial_venv\Scripts\activate

    On macOS/Linux:

    source serial_venv/bin/activate
  3. Install Dependencies

    pip install -r requirements.txt

Usage

  1. Connect Your Serial Device

    • Ensure your device is connected to the computer and is sending data over a serial port.
  2. Run the Application

    python serial_gui.py
  3. Select the Serial Port and Baud Rate

    • In the GUI, select the appropriate serial port from the dropdown menu.
    • Enter the baud rate (default is 115200).
  4. Start Data Collection

    • Click the "Start" button to begin reading and displaying data.
  5. Toggle Graph Display

    • Use the "Draw 2D & 3D Graphs" checkbox to enable or disable the plotting of the data.
  6. Close the Application

    • Click the "Close" button to stop the data collection and disconnect from the serial port.

Contributing

If you'd like to contribute to this project, feel free to fork the repository and submit a pull request. Issues and suggestions are also welcome.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

Application for Single-point TOF Laser Ranging Sensor

youtu.be/pvFoVO1LAiQ

Topics

laser-ranging-sensormicrocontrollerpython-serialthatprojecttof

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.