The whole machine used the following hardware:
The Laser power in controlled by the Arduino Pin11, in order to control the on/off of the laser, we use a transistor. And in order to control the strength power of the laser, we connect serial connect a resistor to the circuit.