A distance sensor for focusing the head of a galvo laser.
Go to file
2023-07-23 21:29:19 +02:00
.vscode Updated VSCode project files 2023-07-23 21:29:19 +02:00
cad Updated solution image 2023-07-23 21:27:20 +02:00
code Updated VSCode project files 2023-07-23 21:29:19 +02:00
doc Initial import 2023-06-29 22:14:17 +02:00
img Updated solution image 2023-07-23 21:27:20 +02:00
pcb Initial import 2023-06-29 22:14:17 +02:00
production Initial import 2023-06-29 22:14:17 +02:00
.gitignore Updated .gitignore to exlude PlatformIO 2023-06-30 20:42:09 +02:00
LICENSE Initial commit 2023-06-29 20:12:38 +00:00
README.md Updated documentation in README.md 2023-07-22 22:34:24 +02:00

laserhead-distance-sensor

The problem

On my fiber laser, I have to manually set the focus of the laser by adjusting the height of the laser head which houses the focussing lens.
That means I have to accurately set the distance between the lens and the object with a ruler. This is very inprecise and requires a lot of fiddling with said ruler, the object and the calibration line on the laserhead.

A solution

I can create some sort of stick that has the exact height of the lens being in focus on the bed.
When I have to focus the laser, I try to fit this stick between the lens and the object and adjust the height accordingly.

drawing of a solution with a stick

The solution

A digital distance sensor that helps to set the correct height for the galvo laser head of my fiber laser.

a drawing of a control loop

Because everything worth doing is worth overdoing!

Installation

Installation is done by sticking the sensor to the side of the laser arm. The location is not important, but the sensor must be pointing down towards the bed. The height is not important, as the sensor will be calibrated to its current location.
The display can be attached wherever is most convenient and readable when adjusting the height of the laser arm.

drawing of the sensor and display installation

After installation, connect the USB-C power source and verify the display is showing two numbers.

^ 127 |   0

Press the knob and the calibration menu will appear.

Calibrate
YES / NO

Rotate the knob so YES is highlighted and press the knob. The sensor will now take a measurement and store this in EEPROM. This measurement will be retrieved from EEPROM every time the sensor is started, so it starts in a calibrated way.

     0 |   0

Note


If you change your lens, you have to recalibrate the sensor.

Operation

There are two ways of operating the sensor.

Option 1: Set object height

Rotate the knob till the right number displays the height of the object.

^   8 |  13

The sensor will now calculate the difference between the measured height and the set height. (In the above example, the head must be raised by 8 mm to have the object of 13 mm in focus.)
Change the height of the laser arm till the left number displays "0" and no arrow is visible. The laser is now in focus.

Option 2: Measure object height

Rotate the knob till the right number displays "0".

v   5 |   0

Place the object under the sensor. (In the above example, the head must be lowered by 5 mm to have the object in focus.)
Change the height of the laser arm till the left number displays "0" and no arrow is visible. The laser is now in focus.

Note


I prefer option 2, because this is a quick and easy way of working. The set height of the object is lost after the power is turned off.

Build

To be documented.