WB DEV
WOJCIECH BLACHA
EN
Projects

Brake Disc Laser Positioning Server

A brake disc positioning server connecting Keyence LK-H150 lasers with FANUC robots over SRTP. It processes measurement profiles with a library of 49 algorithms and provides the operator with live views, history and result comparisons.

Client
Undisclosed client
Technologies
PythonReact 19TypeScriptuPlotSQLitePostgreSQLPyInstallerSRTPFANUCKeyence LK-H150
Brake Disc Laser Positioning Server

Challenge

FANUC robots pick up raw brake disc castings and place them in CNC machines. Ribs, ventilation openings and asymmetries must be oriented correctly relative to the chuck. The task required deriving a rotation angle from a laser profile rather than relying only on manual alignment or a single measurement point.

The Keyence LK-H150 collects distance profiles at 200 Hz. Raw readings contain noise, artefacts and out-of-range values, including -500, so processing needed to account for data preparation and the rejection of unusable profiles.

Solution

I developed the positioning server in Python and packaged it with PyInstaller as a single .exe. Clean Architecture separates the domain, application and infrastructure layers.

Its core is a library of 49 algorithms in seven categories, including rib detection, derivative analysis, Savitzky-Golay filtering, Gaussian fitting and pattern correlation. Algorithms return an angle and confidence assessment. Their results are compared using profile contrast, signal-to-noise ratio and feature prominence. Flat-profile detection and edge trimming help reject false detections.

Communication with the FANUC robot uses SRTP and registers R[40]-R[66]. The server reads scanning parameters and returns the positioning result. R[66] supports dynamic selection of the active laser from several sensors on the station.

The React 19 + TypeScript interface provides live measurements, filterable history, a uPlot profile chart, algorithm comparisons and replay of historical measurements. It supports PDF and CSV exports. Local SQLite supports autonomous station operation, while optional PostgreSQL stores a central history.

Result

The solution combines profile analysis, algorithm selection and delivery of an angle to the robot with operator monitoring tools. A measurement can be replayed, algorithm results compared and a report exported. Local and central database options separate autonomous station operation from shared measurement history.

Describe your project

Contact

Describe your project

Tell me what you want to build or improve. Start with the problem; we can agree on the technology and scope together.

wblacha@wbdev.eu
+48 573 415 785Bytów and remote

When we can talk

Every day
08:00-22:00

The contact form is available 24/7.

What is not working today? What result do you need? Mention any deadline or existing system.

You can add up to 3 files, totalling 10 MB. PDF, JPG, PNG, WebP.

I use the information you provide to respond to your enquiry. Privacy