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.
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...
Control Graph Display: Toggle the drawing of 2D and 3D graphs with a checkbox.
Before you begin, ensure you have met the following requirements:
git clone https://github.com/0015/Python_Serial_Range_Finder.git
cd Python_Serial_Range_Finder
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
pip install -r requirements.txt
Connect Your Serial Device
Run the Application
python serial_gui.py
Select the Serial Port and Baud Rate
Start Data Collection
Toggle Graph Display
Close the Application
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.
This project is licensed under the MIT License. See the LICENSE file for more details.