Laser driving method, laser, computer storage medium and electronic device
By introducing multiple light sources and working mode switching mechanisms with different powers into the laser, the existing laser engraving machines have solved the problem of insufficient power and excessive light spot in cutting scenes, achieving better engraving and cutting effects.
Patent Information
- Application Number
- CN202211651995.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2042-12-21
AI Technical Summary
The existing laser engraving machines lack power in cutting scenes and cannot meet user needs. Moreover, due to the series drive design, the light spot greatly affects the thickness of the engraving lines, resulting in poor engraving effect.
A laser driving method is provided, by responding to mode selection information, determining the working mode of the laser, and selecting the corresponding light output power according to the working mode, selecting a light source matching the light power from a plurality of light sources of different powers as the working light source, and driving the light source out of the working light source.
The best engraving and cutting effect of the laser in different working scenarios is achieved, and the practicality and engraving accuracy of the laser are improved.
Smart Images

Figure CN115958315B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of laser engraving, and in particular to a laser driving method, a laser, a computer storage medium and an electronic device. Background Art
[0002] At present, users have strong expectations for laser engraving machines to achieve stronger cutting capabilities. Low-power laser modules are only suitable for engraving scenarios but not for a wide range of cutting scenarios. They cannot meet user needs and are gradually being eliminated by the market.
[0003] In order to meet the user's demand for cutting capabilities, the current civilian laser engraving machines are designed with increasingly higher power LD light source modules. Since the power of a single semiconductor laser is limited, the incoherent spatial combination method is often used to accumulate the power of the LD light source to achieve the power required by the module. The laser modules currently on the market use a series design of LD light sources with the same power to achieve power superposition. Although the power meets the cutting requirements, due to its series drive design, the LD light source must work at the same time, and the light spot is the effect of the superposition of the light spots of several light sources. Therefore, its light spot is larger and affects the thickness of the engraving lines, which ultimately leads to poor engraving effects. Summary of the invention
[0004] In view of this, the present application provides a laser driving method, a laser, a computer storage medium and an electronic device, which can switch between different working modes, so that the laser can be suitable for different usage scenarios.
[0005] The first aspect of the present application provides a method for driving a laser, wherein the laser includes a plurality of light sources with different powers, and the method includes: determining an operating mode of the laser in response to mode selection information; determining an output light power corresponding to the operating mode, and selecting a light source with the same output light power as a working light source from the plurality of light sources with different powers; and driving the working light source to emit light.
[0006] Compared with the related art, the embodiments of the present application have at least the following advantages: the laser is formed by a combination of multiple light sources of different powers, and the working mode of the laser is determined to determine the light output power corresponding to the working mode, so that the laser machine can set different light output powers by switching different working modes, so that the laser can be suitable for different working scenes, such as engraving, cutting, etc., to achieve the best engraving and cutting effects in the working scene, thereby improving the practicality of the laser.
[0007] In some possible implementations, the operating mode includes: a low-power operating mode, a high-power operating mode and a maximum-power operating mode; determining the optical output power corresponding to the operating mode includes: when the operating mode is the low-power operating mode, determining the optical output power to be a first power; when the operating mode is the high-power operating mode, determining the optical output power to be a second power; when the operating mode is the maximum-power operating mode, determining the optical output power to be a third power, wherein the first power is less than the second power, and the third power is equal to the sum of the first power and the second power.
[0008] By adopting this technical solution, a feasible type of laser working mode is achieved.
[0009] In some possible implementations, the multiple light sources of different powers include a first light source having the first power and a second light source having the second power; driving the working light source to emit light includes: when the working mode is the low-power working mode, driving the first light source to emit light; when the working mode is the high-power working mode, driving the second light source to emit light; when the working mode is the maximum-power working mode, driving the first light source and the second light source to emit light at the same time.
[0010] By adopting this technical solution, a feasible way of driving a light source corresponding to the type of working mode to emit light is realized.
[0011] In some possible implementations, the laser further includes a first drive circuit and a second drive circuit, wherein the first drive circuit drives the first light source to emit light when receiving a high-level light output signal, and the second drive circuit drives the second light source to emit light when receiving a high-level light output signal; when the operating mode is the low-power operating mode, driving the first light source to emit light comprises: when the operating mode is the low-power operating mode, sending the high-level light output signal to the first drive circuit and the second drive circuit; and controlling the light output signal sent to the second drive circuit to be converted from a high level to a low level.
[0012] By adopting this technical solution, a specific light source driving method in a low-power working mode is realized.
[0013] In some possible implementations, when the operating mode is the high-power operating mode, driving the second light source to emit light includes: when the operating mode is the high-power operating mode, sending the high-level light-emitting signal to the first drive circuit and the second drive circuit; controlling the light-emitting signal sent to the first drive circuit to be converted from a high level to a low level.
[0014] By adopting this technical solution, a specific light source driving method in a high-power working mode is realized.
[0015] In some possible implementations, when the operating mode is the maximum power operating mode, driving the first light source and the second light source to emit light simultaneously includes: when the operating mode is the maximum power operating mode, sending the high-level light emitting signal to the first drive circuit and the second drive circuit.
[0016] By adopting this technical solution, a specific light source driving method under the maximum power working mode is realized.
[0017] In some possible implementations, determining the operating mode of the laser in response to the mode selection information includes: responding to key operation information of a user, determining the operating mode corresponding to the key operation information.
[0018] The second aspect of the present application discloses a laser, comprising: a light source module, a microcontroller module, and an operating mode determination module; the light source module comprises a plurality of light sources with different powers; the operating mode determination module is used to determine the operating mode of the laser in response to mode selection information; the microcontroller module is used to determine the light output power corresponding to the operating mode, select a light source with the same light output power from the light source module as a working light source, and drive the working light source to emit light.
[0019] The third aspect of the present application discloses a computer storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned laser driving method.
[0020] The fourth aspect of the present application discloses an electronic device, which includes a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the electronic device executes the above-mentioned laser driving method.
[0021] It can be understood that the laser of the second aspect, the computer-readable storage medium of the third aspect, and the electronic device of the fourth aspect provided above all correspond to the method of the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A flowchart of a method for driving a laser provided in one embodiment of the present application;
[0023] Figure 2 A schematic diagram of switching the laser working mode provided in an embodiment of the present application;
[0024] Figure 3 A schematic diagram of the working spot size of a laser in three working modes provided in one embodiment of the present application;
[0025] Figure 4 A schematic diagram of the spatial combination structure of a laser provided in one embodiment of the present application;
[0026] Figure 5 A flowchart of a method for driving a laser provided in one embodiment of the present application;
[0027] Figure 6 A schematic diagram of a driving method of a laser in a low-power working mode provided by an embodiment of the present application;
[0028] Figure 7 A schematic diagram of a driving method of a laser in a high-power working mode provided by an embodiment of the present application;
[0029] Figure 8 A schematic diagram of a driving method of a laser in a maximum power working mode provided by an embodiment of the present application;
[0030] Fig. 9 A schematic diagram of a module of a laser provided in one embodiment of the present application;
[0031] Fig.10 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that the implementation methods of the present application and the features in the implementation methods can be combined with each other without conflict.
[0033] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described implementations are only part of the implementations of the present application, rather than all the implementations.
[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0035] It should be further noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0036] In this application, "at least one" means one or more, and "more than one" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.
[0037] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0038] To facilitate understanding, some illustrations of concepts related to the embodiments of the present application are given by way of example for reference.
[0039] Laser is a device that can emit laser light. According to the working medium, lasers can be divided into four categories: gas lasers, solid lasers, semiconductor lasers and dye lasers. The light source is LD (Laser Diode) light source. The physical structure of the laser diode is to place a layer of photoactive semiconductor between the junctions of the light-emitting diode. After polishing, the end face has a partial reflection function to form an optical resonant cavity.
[0040] Please refer to Figure 1 , is a flow chart of the working method of the laser provided in the embodiment of the present application. This embodiment is applied to the laser side, and the laser includes a plurality of light sources with different powers, such as Figure 1 As shown, the following steps are included:
[0041] Step S101: In response to the mode selection information, determine the operating mode of the laser.
[0042] In some embodiments, the working mode of the laser can be determined in the following manner: in response to key operation information of the user, the working mode corresponding to the key operation information is determined.
[0043] For ease of understanding, the following Figure 2 Explain how the user can switch the working mode of the laser through key operation:
[0044] like Figure 2 The figure shows the laser working mode switching diagram. The user selects the laser working mode through the button on the laser. The dedicated microcontroller equipped with the laser switches the laser working mode according to the user's button selection. Every time the microcontroller detects a 3-second long press of the button, it switches the current working mode of the laser; the switching order is 10W engraving mode -> 20W cutting mode -> 30W cutting mode; the LED mode indicator equipped with the laser indicates the current working mode.
[0045] It is understandable that how to switch the working mode of the laser is not limited to this. Multiple buttons can also be set, and different buttons correspond to different working modes. This embodiment does not specifically limit how to determine the working mode of the laser, and it can be set according to actual needs.
[0046] Step S102: determining the light output power corresponding to the working mode, and selecting a light source with the same light output power from a plurality of light sources with different powers as the working light source.
[0047] Step S103: driving the working light source to emit light.
[0048] In some embodiments, the working modes include: a low-power working mode, a high-power working mode and a maximum-power working mode; the determining of the light output power corresponding to the working mode includes: when the working mode is the low-power working mode, determining the light output power to be a first power; when the working mode is the high-power working mode, determining the light output power to be a second power; when the working mode is the maximum-power working mode, determining the light output power to be a third power, wherein the first power is less than the second power, and the third power is equal to the sum of the first power and the second power.
[0049] In some embodiments, a plurality of light sources of different powers include a first light source having the first power and a second light source having the second power; driving the working light source to emit light includes: when the working mode is the low-power working mode, driving the first light source to emit light; when the working mode is the high-power working mode, driving the second light source to emit light; when the working mode is the maximum-power working mode, driving the first light source and the second light source to emit light at the same time.
[0050] In some embodiments, the first power is 10 watts. At this power, the laser is suitable for picture engraving and printing scenarios. The laser selects the first light source from a plurality of light sources with different powers as the working light source to perform light emitting work, which can achieve the best engraving effect.
[0051] In some embodiments, the second power is 20 watts. At this power, the laser is suitable for fast cutting of thin plates and precision cutting of medium-thickness plates. The laser selects a second light source from a plurality of light sources of different powers as the working light source to perform light emitting work, thereby achieving the desired cutting effect.
[0052] In some embodiments, the third power is 30 watts. At this power, the laser is suitable for thick plate cutting scenarios. All light sources of the laser are working to emit light, and the desired cutting effect can be achieved.
[0053] It can be understood that the powers of the first light source and the second light source listed above are all feasible implementation methods. In actual applications, there is no limitation on the power of each light source and it can be set according to the actual needs of the working scene.
[0054] For ease of understanding, the following takes as an example a light source group in which the first light source is composed of two 5-watt laser diodes and a light source group in which the second light source is composed of four 5-watt laser diodes. Figure 3 For an explanation of the laser spot size in each operating mode: please refer to Figure 3 , is a schematic diagram of the working spot size of the laser in three working modes.
[0055] The first light source and the second light source are connected in parallel and can be driven independently. In the 10-watt engraving and cutting mode, since only the two laser diodes of the first light source emit light, the light spot is fine, the image engraving imaging effect is the best, the thin plate cutting slit is small, and the precision is high. In the 20-watt cutting mode, the four laser diodes of the second light source emit light, the light spot size is moderate, and the light output power meets the cutting of medium-thick materials and fast cutting of thin materials. The slit is moderate to ensure the precision of the finished cutting product; in the 30-watt cutting mode, the first light source and the second light source have a total of six laser diodes that emit light at the same time, and the laser outputs the maximum cutting power.
[0056] For ease of understanding, the following takes the example that the first light source includes light source a1 and light source a2; the second light source includes light source b1, light source b2, light source b3 and light source b4. Figure 4 The working mode of the laser machine in this embodiment is described in detail. Figure 4 , which is a schematic diagram of the spatial combination structure of the laser.
[0057] (1) The LD laser light source is screened and the beam shape is adjusted through a special lens group a1, a2, b1, b2, b3, and b4. Only the light of the specific wavelength required by the module can be reflected by the lens group into the vertical downward optical channel.
[0058] (2) After the laser passes through lens group c, it is focused onto the work material.
[0059] (3) Lens group d is a dustproof flat window to protect the lens, preventing dust from entering the light channel and contaminating the lens.
[0060] (4) The light source module (i.e., the first light source and the second light source) generates noticeable heat when in operation. To ensure sufficient heat dissipation capacity, the module light source bracket is designed to be made of metal material and is usually equipped with a heat dissipation fin structure and a heat dissipation fan to assist in heat dissipation.
[0061] (5) The maximum light output power of the laser is when light sources a1, a2, b1, b2, b3, and b4 are working simultaneously.
[0062] (6) a1, a2 and b1, b2, b3, b4 light sources can be driven to emit light individually.
[0063] (7) In the 10-watt engraving and cutting mode, the laser drives the 10-watt light source group composed of a1 and a2 to work. The light spot is small, which is suitable for fine line printing and engraving and thin plate cutting. The engraving effect is fine and the cutting seam is small.
[0064] (8) In the 20-watt cutting mode, the module drives the 20-watt light source group consisting of b1, b2, b3, and b4 to produce light. The light spot size is moderate, which is suitable for cutting medium-thickness plates with high cutting accuracy requirements and fast cutting of thin plates.
[0065] (9) In the 30-watt cutting mode, the a1, a2, b1, b2, b3, and b4 light sources are controlled to emit light simultaneously, outputting the maximum cutting capacity of the module.
[0066] Compared with the related art, the embodiments of the present application have at least the following advantages: the laser is formed by a combination of multiple light sources of different powers, and the working mode of the laser is determined to determine the light output power corresponding to the working mode, so that the laser machine can set different light output powers by switching different working modes, so that the laser can be suitable for different working scenes, such as engraving, cutting, etc., to achieve the best engraving and cutting effects in the working scene, thereby improving the practicality of the laser.
[0067] Please refer to Figure 5, which is a flow chart of a driving method of a laser provided in an embodiment of the present application. This embodiment is an explanation of the above-mentioned embodiment, and specifically explains how to drive different light sources to emit light. The laser also includes a first driving circuit and a second driving circuit. The first driving circuit drives the first light source to emit light when receiving a high-level light-emitting signal, and the second driving circuit drives the second light source to emit light when receiving a high-level light-emitting signal.
[0068] This embodiment is applied to the laser side, such as Figure 5 As shown, the following steps are included:
[0069] Step S201: In response to the mode selection information, determine the operating mode of the laser.
[0070] Step S202: When the working mode is the low-power working mode, a high-level optical output signal is sent to the first driving circuit and the second driving circuit, and the optical output signal sent to the second driving circuit is controlled to be converted from a high level to a low level.
[0071] In some embodiments, the high and low levels of the light output signal sent to the driving circuit can be controlled by controlling whether the transistor is turned on.
[0072] For ease of understanding, the following example uses a 10-watt light source group as the first light source and a 20-watt light source group as the second light source. Figure 6 How to implement the driving method in the low power working mode in this embodiment is described by example: Figure 6 As shown, it is a schematic diagram of the driving method of the laser in the low-power working mode.
[0073] (1) The laser engraving machine host sends a light-emitting instruction and a light-emitting signal to the laser module (i.e., the first light source and the second light source). The laser module will work only after receiving the light-emitting instruction, otherwise it will not work.
[0074] (2) The output light signal is a pulse width modulation (PWM) signal, and the duty cycle of the PWM signal is proportional to the output light power currently required by the laser.
[0075] (3) The transistor is of NPN type. After the module microcontroller raises its base voltage, the transistor is turned on, pulling down the optical output signal of the line.
[0076] (4) The constant current driving circuits a and b will only drive the corresponding light source group to emit light when they receive a high-level light-emitting signal.
[0077] (5) In the 10-watt engraving mode, the module microcontroller raises the base voltage of transistor b, transistor b is turned on, signal b is converted from high level to low level, and the 20-watt light source group does not work; the base of transistor a is pulled down and does not conduct, signal a is normally input into the constant current drive circuit a, driving the 10-watt light source group to emit light and work.
[0078] In some embodiments, it is not limited to triodes, and other structures can be used to control the high-low level conversion of the light output signal sent to the driving circuit, such as a switch, etc. This embodiment does not specifically limit the structure for controlling the high-low level conversion of the light output signal sent to the driving circuit.
[0079] Step S203: when the working mode is the high-power working mode, a high-level optical output signal is sent to the first driving circuit and the second driving circuit; and the optical output signal sent to the first driving circuit is controlled to be converted from a high level to a low level.
[0080] For ease of understanding, the following example uses a 10-watt light source group as the first light source and a 20-watt light source group as the second light source. Figure 7 How to implement the driving method in the high power working mode in this embodiment is described by example: Figure 7 As shown, it is a schematic diagram of the driving method of the laser in the high-power working mode.
[0081] In the 20-watt cutting mode, the module microcontroller raises the base voltage of transistor a, transistor a is turned on, signal a is converted from high level to low level, and the 10-watt light source group does not work; the base of transistor b is pulled down and not turned on, and signal b is normally input into the constant current drive circuit b, driving the 20-watt light source group to emit light and work.
[0082] Step S204: When the working mode is the maximum power working mode, a high-level light output signal is sent to the first driving circuit and the second driving circuit.
[0083] For ease of understanding, the following example uses a 10-watt light source group as the first light source and a 20-watt light source group as the second light source. Figure 8 How to implement the driving method in the maximum power working mode in this embodiment is described by example: Figure 8 As shown, it is a schematic diagram of the driving method of the laser in the maximum power working mode.
[0084] In 30W cutting mode, the module microcontroller pulls down the base voltage of transistors a and b, transistors a and b are not conducting, and signals a and b are normally input into constant current drive circuits a and b, driving the 10W light source group and the 20W light source group to work simultaneously.
[0085] Compared with the related art, the embodiments of the present application have at least the following advantages: the laser is formed by a combination of multiple light sources of different powers, and the working mode of the laser is determined to determine the light output power corresponding to the working mode, so that the laser machine can set different light output powers by switching different working modes, so that the laser can be suitable for different working scenes, such as engraving, cutting, etc., to achieve the best engraving and cutting effects in the working scene, thereby improving the practicality of the laser.
[0086] Please refer to Fig. 9 , is a schematic diagram of the hardware structure of the laser provided in the embodiment of the present application. Fig. 9 As shown, the laser includes: a light source module 1, a microcontroller module 2, and a working mode determination module 3; the light source module 1 includes a plurality of light sources with different powers; the working mode determination module 3 is used to determine the working mode of the laser in response to the mode selection information; the microcontroller module 2 is used to determine the light output power corresponding to the working mode, select a light source with the same light output power from the light source module 1 as the working light source, and drive the working light source to emit light.
[0087] Please refer to Fig.10 , is a schematic diagram of the hardware structure of the electronic device 1000 provided in the embodiment of the present application. Fig.10 As shown, the electronic device 1000 may include a processor 1001 and a memory 1002. The memory 1002 is used to store one or more computer programs 1003. The one or more computer programs 1003 are configured to be executed by the processor 1001. The one or more computer programs 1003 include instructions, and the above instructions can be used to implement the above-mentioned laser working method in the electronic device 1000.
[0088] It is understandable that the structure shown in this embodiment does not constitute a specific limitation on the electronic device 1000. In other embodiments, the electronic device 1000 may include more or fewer components than shown, or combine or separate some components, or arrange the components differently.
[0089] The processor 1001 may include one or more processing units, for example, the processor 1001 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0090] The processor 1001 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 1001 is a cache memory. The memory may store instructions or data that the processor 1001 has just used or circulated. If the processor 1001 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 1001, and thus improves the efficiency of the system.
[0091] In some embodiments, the processor 1001 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.
[0092] In some embodiments, memory 1002 may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0093] This embodiment further provides a computer-readable storage medium, in which computer instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the content sharing method in the above-mentioned embodiment.
[0094] Among them, the electronic device and computer storage medium provided in this embodiment are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0095] In practical applications, the above functions can be distributed to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0096] In several embodiments provided in the present application, the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are schematic. For example, the division of the modules or units is a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0097] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
[0098] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0099] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0100] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A method for driving a laser, characterized in that: The laser comprises a plurality of light sources of different powers and a lens group, wherein the lens group is configured to perform light source screening and beam shape adjustment, and light of a specific wavelength required by the laser is reflected to a vertically downward optical channel via the lens group, wherein the light of the specific wavelength is light emitted by the light source; the method comprises: In response to the mode selection information, determining an operating mode of the laser; Determine the light output power corresponding to the working mode, and select a light source with the same light output power as the working light source from the multiple light sources with different powers; The working light source is driven to emit light; the working mode includes: a low power working mode, a high power working mode and a maximum power working mode; the determining of the light output power corresponding to the working mode includes: When the working mode is the low-power working mode, determining that the optical output power is a first power; When the working mode is the high-power working mode, determining that the optical output power is a second power; When the working mode is the maximum power working mode, the optical output power is determined to be a third power, wherein the first power is less than the second power, and the third power is equal to the sum of the first power and the second power.
2. The laser driving method according to claim 1, characterized in that: The plurality of light sources of different powers include a first light source having the first power and a second light source having the second power; The step of driving the working light source to emit light comprises: When the working mode is the low-power working mode, driving the first light source to emit light; When the working mode is the high-power working mode, driving the second light source to emit light; When the working mode is the maximum power working mode, the first light source and the second light source are driven to emit light simultaneously.
3. The laser driving method according to claim 2, characterized in that: The laser further comprises a first driving circuit and a second driving circuit, wherein the first driving circuit drives the first light source to emit light when receiving a high-level light-emitting signal, and the second driving circuit drives the second light source to emit light when receiving a high-level light-emitting signal; When the working mode is the low-power working mode, driving the first light source to emit light includes: When the working mode is the low-power working mode, sending the high-level light output signal to the first driving circuit and the second driving circuit; The light output signal sent to the second driving circuit is controlled to be converted from a high level to a low level.
4. The laser driving method according to claim 3, characterized in that: When the working mode is the high-power working mode, driving the second light source to emit light includes: When the working mode is the high-power working mode, sending the high-level light output signal to the first driving circuit and the second driving circuit; The light output signal sent to the first driving circuit is controlled to be converted from a high level to a low level.
5. The laser driving method according to claim 3, characterized in that: When the working mode is the maximum power working mode, driving the first light source and the second light source to emit light simultaneously includes: When the working mode is the maximum power working mode, the high-level optical output signal is sent to the first driving circuit and the second driving circuit.
6. The laser driving method according to any one of claims 1 to 5, characterized in that: Determining the operating mode of the laser in response to the mode selection information includes: In response to the key operation information of the user, the working mode corresponding to the key operation information is determined.
7. A laser, characterized in that: include: A light source module, a microcontroller module, a working mode determination module and a lens group; The light source module includes a plurality of light sources with different powers, and the lens group is configured to perform light source screening and beam shape adjustment. The light of a specific wavelength required by the laser is reflected to a vertically downward optical channel via the lens group, wherein the light of the specific wavelength is the light emitted by the light source; The working mode determination module is used to determine the working mode of the laser in response to the mode selection information; The microcontroller module is used to determine the light output power corresponding to the working mode, select a light source with the same light output power as the working light source from the light source module, and drive the working light source to emit light; The working modes include: low power working mode, high power working mode and maximum power working mode; The determining of the optical output power corresponding to the working mode includes: When the working mode is the low-power working mode, determining that the optical output power is a first power; When the working mode is the high-power working mode, determining that the optical output power is a second power; When the working mode is the maximum power working mode, the optical output power is determined to be a third power, wherein the first power is less than the second power, and the third power is equal to the sum of the first power and the second power.
8. A computer storage medium, characterized in that: The invention comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the driving method of the laser according to any one of claims 1 to 6.
9. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the laser driving method according to any one of claims 1 to 6.
Citation Information
Patent Citations
High-frequency driving circuit, laser projection module and depth camera
CN218003913U
An apparatus of laser-processing and corresponding method of laser-processing
US20220314366A1