copl-labomc / fabconcept

to update: Making, modeling and simulating materials doped with nanosemiconductors
MIT License
1 stars 0 forks source link

Calibrate the diameter sensor analog reading #43

Closed alexmomo1212 closed 3 months ago

alexmomo1212 commented 3 months ago

The laser sensor sends an analog signal to the arduino but both devices currently show a different reading. We need to test multiple diamaters and do the appropriate conversions in code

alexmomo1212 commented 3 months ago

Fixed the problem. The solution was to connect the power supply's ground with the Arduino's ground. Since the two didn't have the same ground reference, the reading was off and unstable.

The offset is now adjusted to 0.02 mm and the reading on the GUI is now stable and identical to the reading on the sensor itself with a difference of 0.01 mm max.