Pyrometer device compatible with arduino
The easiest way to go about solving this is to have information about the material to be melted pre-loaded within Arduino code so that you can calculate exactly when to shut the laser off by also knowing the specifications of the laser. In other words, if you know how the thermal characteristics of the laser from the datasheet, you can use thermodynamics equations to calculate precisely how much time the laser needs to be turned on. The equations can be implemented within Arduino code and can directly turn the laser on and off. Again, I suggest creating a class within your code to organize the different materials that you will be melting so that all of the important parameters are included. Finally, create an interface for the user to input the type of material to be melted so that the systems knows exactly which formulas to use within code and control the laser's operation.