Quantity detection device and lamp

By designing a quantity detection device including Bluetooth circuit, detection circuit and processing circuit, the voltage of the sampling resistor is used to automatically detect the number of light emitting units in the lamp string, the problem of poor manual detection is solved and efficient and convenient automatic detection is achieved.

CN222812924UActive Publication Date: 2025-04-29SHENZHEN INTELLIROCKS TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421034656.0
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2025-04-29
Estimated Expiration
2034-05-13

AI Technical Summary

Technical Problem

In the prior art, the number of work of the detection light emitting unit requires manual close-range operation, resulting in poor detection convenience.

Method used

A quantity detection device is designed, including a Bluetooth circuit, a detection circuit and a processing circuit, and the operating number of light emitting units in the lamp string is determined by the voltage of the sampling resistor, so as to realize automatic detection.

Benefits of technology

It improves the accuracy, operational convenience and efficiency of detection, avoids the shortcomings of manual detection, realizes the control of long-distance quantity detection, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222812924U_ABST
    Figure CN222812924U_ABST
Patent Text Reader

Abstract

The number detection device comprises a Bluetooth circuit, a detection circuit and a processing circuit, the detection circuit comprises a sampling resistor, the output end of the Bluetooth circuit is connected with the first end of the detection circuit, the second end of the detection circuit is connected with the processing circuit, and the third end of the detection circuit is connected with a lamp string. The input end of the Bluetooth circuit is the input end of the quantity detection device; the Bluetooth circuit is used for sending a first signal to the detection circuit; the detection circuit is used for detecting the voltage of the sampling resistor according to the first signal; and the processing circuit is used for determining the working number of the light-emitting units in the lamp string according to the voltage of the sampling resistor. According to the embodiment of the invention, the convenience of detection operation can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic circuits, and in particular to a quantity detection device and a lamp. Background Art

[0002] In applications related to performance monitoring of electronic devices, the accuracy and ease of operation of the detection device are crucial. Especially in smart home systems, knowing the working number of light-emitting units in a light string can achieve more accurate brightness control and adjustment when designing and operating the lighting system. However, in actual applications, detecting the working number of light-emitting units often relies on manual detection, requiring users to operate the light string at close range to complete the detection of the working number of light-emitting units, which is less convenient. Utility Model Content

[0003] The embodiments of the present application disclose a quantity detection device and a lamp, which are used to determine the working number of light-emitting units in a light string according to the voltage of a sampling resistor, and can realize automatic detection of the working number of light-emitting units in the light string.

[0004] In a first aspect, an embodiment of the present application discloses a quantity detection device, including a Bluetooth circuit, a detection circuit and a processing circuit, wherein the detection circuit includes a sampling resistor, wherein:

[0005] The output end of the Bluetooth circuit is connected to the first end of the detection circuit, the second end of the detection circuit is connected to the processing circuit, the third end of the detection circuit is connected to the light string, and the input end of the Bluetooth circuit is the input end of the quantity detection device;

[0006] A Bluetooth circuit, used for sending a first signal to the detection circuit;

[0007] A detection circuit, used for detecting a voltage of the sampling resistor according to the first signal;

[0008] The processing circuit is used to determine the working number of the light-emitting units in the light string according to the voltage of the sampling resistor.

[0009] In a second aspect, an embodiment of the present application discloses a lamp, including a lamp string and the quantity detection device disclosed in the first aspect, wherein the lamp string includes at least one light-emitting unit.

[0010] In the embodiment of the present application, the quantity detection device includes a Bluetooth circuit, a detection circuit and a processing circuit, wherein the detection circuit includes a sampling resistor, wherein: the output end of the Bluetooth circuit is connected to the first end of the detection circuit, the second end of the detection circuit is connected to the processing circuit, the third end of the detection circuit is connected to the light string, and the input end of the Bluetooth circuit is the input end of the quantity detection device; the Bluetooth circuit is used to send a first signal to the detection circuit; the detection circuit is used to detect the voltage of the sampling resistor according to the first signal; the processing circuit is used to determine the working number of the light-emitting units in the light string according to the voltage of the sampling resistor. It can be seen that the Bluetooth circuit can send a first signal to the detection circuit through the output end, the detection circuit can detect the voltage of the sampling resistor according to the first signal received from the Bluetooth circuit, and the processing circuit can determine the working number of the light-emitting units in the light string connected to the detection circuit according to the resistance of the sampling circuit. By using the detection voltage change to determine the working number of the light-emitting units in the light string, the traditional manual detection method can be avoided, and the accuracy, convenience and efficiency of the detection can be improved. In addition, since the signal can be sent to the detection circuit through the Bluetooth circuit, long-distance data transmission can be realized, and the light string does not need to be operated at close range, so that the control of long-distance quantity detection can be realized, and the user experience can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0012] Figure 1 It is a structural schematic diagram of a quantity detection device disclosed in an embodiment of the present application;

[0013] Figure 2 It is a structural schematic diagram of another quantity detection device disclosed in an embodiment of the present application;

[0014] Figure 3 is a structural schematic diagram of a detection circuit disclosed in an embodiment of the present application;

[0015] Figure 4 is a structural schematic diagram of another detection circuit disclosed in an embodiment of the present application;

[0016] Figure 5 is a structural schematic diagram of another detection circuit disclosed in an embodiment of the present application;

[0017] Figure 6 is a structural schematic diagram of another detection circuit disclosed in an embodiment of the present application;

[0018] Figure 7It is a structural schematic diagram of a power supply circuit disclosed in an embodiment of the present application;

[0019] Figure 8 It is a structural schematic diagram of another power supply circuit disclosed in an embodiment of the present application;

[0020] Fig. 9 It is a structural schematic diagram of another power supply circuit disclosed in an embodiment of the present application;

[0021] Fig.10 is a structural schematic diagram of a lamp disclosed in an embodiment of the present application;

[0022] Fig.11 It is a structural schematic diagram of a light string disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0024] The present application discloses a control device and a lamp, which can automatically detect the number of working light-emitting units in a light string according to the voltage of a sampling resistor. Detailed descriptions are given below.

[0025] See also Figure 1 , Figure 1 Schematic diagram of the structure of a quantity detection device disclosed in the embodiment of the present application. Figure 1 As shown, the quantity detection device may include a Bluetooth circuit, a detection circuit and a processing circuit, and the detection circuit may include a sampling resistor R3.

[0026] The output end of the Bluetooth circuit is connected to the first end of the detection circuit, the second end of the detection circuit is connected to the processing circuit, the third end of the detection circuit is connected to the light string, and the input end of the Bluetooth circuit is the input end of the quantity detection device.

[0027] The Bluetooth circuit can send a first signal to the detection circuit through the output terminal. The first signal is a control signal for detecting the voltage of the sampling resistor R3. The detection circuit can detect the voltage of the sampling resistor R3 according to the received first signal. The processing circuit can determine the working number of light-emitting units in the light string according to the voltage of the sampling resistor R3. The working number of light-emitting units in the light string can be understood as the number of light-emitting units in the light string that are working, that is, the number of light-emitting units in the light string that are emitting light.

[0028] The processing circuit can calculate the current flowing through the sampling resistor R3 according to the voltage of the sampling resistor R3. The current of the sampling resistor R3 can be expressed as follows:

[0029]

[0030] Wherein, I represents the current flowing through the sampling resistor R3, U represents the voltage on the sampling resistor R3, and R represents the resistance value of the sampling resistor R3.

[0031] It can be seen that when the resistance value of the sampling resistor R3 is known, the current flowing through the sampling resistor R3 can be calculated by measuring the voltage across the sampling resistor R3. Since the resistance value of the sampling resistor R3 is fixed, the change in the voltage of the sampling resistor R3 can directly reflect the change in the current flowing through the sampling resistor R3.

[0032] There is a correlation between the number of working light-emitting units in the light string and the magnitude of the current flowing through the sampling resistor R3. The correlation can be a positive correlation or an inverse correlation. For example, when the sampling resistor R3 is connected in series with the light string, and different light-emitting units in the light string are connected in parallel, the more light-emitting units are working in the light string, the smaller the resistance of the light string, and the greater the current in the loop.

[0033] The processing circuit may be a microcontroller unit (MCU). The processing circuit may store the corresponding relationship between the current and the number of working light-emitting units. The processing circuit may calculate the current flowing through the sampling resistor R3 through the voltage of the sampling resistor R3 and the resistance value of the sampling resistor R3, and then determine the number of light-emitting power sources corresponding to the current according to the corresponding relationship between the current and the number of working light-emitting units, so as to obtain the number of working light-emitting units included in the light string.

[0034] It should be understood that the connection in the present application may be an electrical connection.

[0035] exist Figure 1The described quantity detection device includes a Bluetooth circuit, a detection circuit and a processing circuit, wherein the detection circuit includes a sampling resistor R3, wherein: the output end of the Bluetooth circuit is connected to the first end of the detection circuit, the second end of the detection circuit is connected to the processing circuit, the third end of the detection circuit is connected to the light string, and the input end of the Bluetooth circuit is the input end of the quantity detection device; the Bluetooth circuit is used to send a first signal to the detection circuit; the detection circuit is used to detect the voltage of the sampling resistor R3 according to the first signal; the processing circuit is used to determine the working number of the light-emitting units in the light string according to the voltage of the sampling resistor R3. It can be seen that the Bluetooth circuit can send a first signal to the detection circuit through the output end, the detection circuit can detect the voltage of the sampling resistor R3 according to the first signal received from the Bluetooth circuit, and the processing circuit can determine the working number of the light-emitting units in the light string connected to the detection circuit according to the resistance of the sampling circuit. By using the detection voltage change to determine the working number of the light-emitting units in the light string, the traditional manual detection method can be avoided, and the accuracy, convenience and efficiency of the detection can be improved. In addition, since the signal can be sent to the detection circuit through the Bluetooth circuit, long-distance data transmission can be realized, and the light string does not need to be operated at close range, so that the control of long-distance quantity detection can be realized, thereby improving the user experience.

[0036] It should be understood that the detection circuit can be one detection circuit or multiple detection circuits. In the case where the detection circuit is multiple detection circuits, the multiple detection circuits can be connected in parallel, and each detection circuit can be connected to a light string respectively. The Bluetooth circuit can generate multiple independent first signals and send the multiple first signals to different detection circuits respectively. Each detection circuit can receive an independent first signal and detect the voltage of each sampling resistor R3 according to the first signal. The processing circuit can determine the number of working light-emitting units in the light string connected to each sampling circuit according to the voltage of each sampling resistor R3 in the multiple detection circuits.

[0037] See also Figure 2 , Figure 2 Schematic diagram of another quantity detection device disclosed in the embodiment of the present application. Figure 2 As shown, the quantity detection device may further include a power supply circuit.

[0038] The first end of the power supply circuit is connected to the output end of the Bluetooth circuit, the second end of the power supply circuit is connected to the power source, and the third end of the power supply circuit is connected to the light string.

[0039] The Bluetooth circuit can also send a second signal to the power supply circuit through the output terminal. The second signal is a control signal for supplying power to the light string. The power supply circuit can control the power supply to supply power to the light string according to the received second signal.

[0040] In one case, the Bluetooth circuit can send a first signal to the detection circuit and the power supply circuit at the same time. When the detection circuit receives the first signal, the detection circuit can detect the voltage of the sampling resistor R3 according to the first signal. When the power supply circuit receives the first signal, the power supply circuit does not work, or the power supply circuit controls the power supply not to power the light string. So that the detection circuit can perform accurate voltage measurement without power supply interference. Similarly, the Bluetooth circuit can send a second signal to the detection circuit and the power supply circuit at the same time. When the detection circuit receives the second signal, the detection circuit does not work, or the detection circuit does not detect the voltage of the sampling resistor R3. When the power supply circuit receives the second signal, the power supply circuit controls the power supply to power the light string. It can be ensured that the power supply circuit can normally power the light string when the detection circuit is not working.

[0041] In another case, the Bluetooth circuit can send a first signal and a second signal to the detection circuit and the power supply circuit respectively. When the detection circuit receives the first signal, it detects the voltage of the sampling resistor R3 according to the first signal. When the power supply circuit receives the second signal, it supplies power to the light string according to the second signal. The two circuits operate independently, and the working state of the circuit can be flexibly configured as needed, for example, when it is necessary to accurately control the power supply time or the detection time.

[0042] See also Figure 3 , Figure 3 Schematic diagram of a detection circuit disclosed in an embodiment of the present application. Figure 3 As shown, the detection circuit may further include a first switch device Q1, a first resistor R1 and a second resistor R2.

[0043] The first end of the first switch device Q1 is respectively connected to the output end of the Bluetooth circuit and one end of the first resistor R1, the second end of the first switch device Q1 is respectively connected to one end of the sampling resistor R3 and one end of the second resistor R2, the other end of the second resistor R2 is connected to the processing circuit, the other end of the sampling resistor R3 and the other end of the first resistor R1 are respectively connected to the ground, and the third end of the first switch device Q1 is connected to the light string.

[0044] The first switch device Q1 may be a metal oxide semiconductor (MOS) tube, or other switch devices with equivalent functions. Figure 3 The description is made by taking the first switch device Q1 as a MOS tube as an example.

[0045] When the first switch device Q1 is a MOS tube, the gate of the MOS tube is the first end of the first switch device Q1, the source of the MOS tube is the second end of the first switch device Q1, and the drain of the MOS tube is the third end of the first switch device Q1.

[0046] The first switch device Q1 can be turned on after receiving the first signal. After the first switch device Q1 is turned on, a small current can be allowed to flow through the light string, so that the light-emitting units in the light string light up in sequence. The detection circuit can detect the voltage of the sampling resistor in the detection circuit connected to the light string, and feed it back to the processing circuit. The processing circuit can calculate the current flowing through the sampling resistor through the voltage of the sampling resistor and the resistance value of the sampling resistor, and then calculate how many light-emitting units are included in the light string connected to the detection circuit.

[0047] The first resistor R1 serves as a pull-down resistor and can provide a default level for the first switch device Q1 , thereby ensuring that the first switch device Q1 can be maintained at a default level when there is no first signal.

[0048] The second resistor R2 serves as a current limiting protection resistor, which can limit the current flowing to the processing circuit and protect the processing circuit from being damaged by excessive current.

[0049] In some embodiments, the Bluetooth circuit can send a first signal to the detection circuit and the power supply circuit at the same time. The first signal can be a high-level signal. The first switch device Q1 is turned on when receiving the high-level signal, allowing a small current to flow through the light string, so that the light-emitting units in the light string light up in sequence. The second switch device Q2 is turned off when receiving the high-level signal.

[0050] See also Figure 4 , Figure 4 is a schematic diagram of another detection circuit disclosed in an embodiment of the present application. Figure 4 The detection circuit shown consists of Figure 3 The detection circuit shown is optimized. Figure 4 As shown, the detection circuit may further include a first capacitor C1.

[0051] One end of the first capacitor C1 is connected to the other end of the second resistor R2 , and the other end of the first capacitor C1 is connected to the other end of the sampling resistor.

[0052] The first capacitor C1 is used as a filter capacitor to smooth voltage fluctuations and improve the stability and accuracy of voltage detection of the detection circuit.

[0053] See also Figure 5 , Figure 5 is a schematic diagram of the structure of another detection circuit disclosed in the embodiment of the present application. Figure 5 The detection circuit shown consists of Figure 4 The detection circuit shown is optimized. Figure 5 As shown, the detection circuit may further include a fourth resistor R4.

[0054] The first end of the first switch device Q1 is connected to the output end of the Bluetooth circuit through the fourth resistor R4.

[0055] The fourth resistor R4 serves as a current limiting protection resistor, which can protect the first end of the first switching device Q1 and prevent an excessively high current from flowing into the first end of the first switching device Q1.

[0056] See also Figure 6 , Figure 6 is a schematic diagram of the structure of another detection circuit disclosed in the embodiment of the present application. Figure 6 The detection circuit shown consists of Figure 5 The detection circuit shown is optimized. Figure 6 As shown, the detection circuit may further include a fifth resistor R5.

[0057] Two ends of the fifth resistor R5 are respectively connected to the second end and the third end of the first switch device Q1.

[0058] The fifth resistor R5 can be used as a protection element to prevent the first switch device Q1 from overcurrent in the event of a fault. If the first switch device Q1 is short-circuited, the fifth resistor R5 can limit the current flowing therethrough, thereby protecting other parts of the circuit.

[0059] See also Figure 7 , Figure 7 Schematic diagram of a power supply circuit disclosed in an embodiment of the present application. Figure 7 As shown, the power supply circuit may include a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a tenth resistor R10, a second switching device Q2 and a third switching device Q3.

[0060] The first end of the second switch device Q2 is connected to the output end of the Bluetooth circuit through the sixth resistor R6, the first end of the second switch device Q2 is connected to the ground end through the seventh resistor R7, the second end of the second switch device Q2 is connected to the ground end, the third end of the second switch device Q2 is connected to one end of the eighth resistor R8, the other end of the eighth resistor R8 is respectively connected to one end of the ninth resistor R9, one end of the tenth resistor R10 and the first end of the third switch device Q3, the other end of the ninth resistor R9 is connected to the power supply, the other end of the tenth resistor R10 is grounded, the second end of the third switch device Q3 is connected to the ground end, and the third end of the third switch device Q3 is connected to the light string.

[0061] The second switch device Q2 may be a MOS tube, or other switch devices with equivalent functions. Figure 7 The description is made by taking the first switch device Q1 as a MOS tube as an example.

[0062] When the second switch device Q2 is a MOS tube, the gate of the MOS tube is the first end of the second switch device Q2, the source of the MOS tube is the second end of the second switch device Q2, and the drain of the MOS tube is the third end of the second switch device Q2.

[0063] The third switch device Q3 may be a MOS tube, or other switch devices with equivalent functions. Figure 7 The description is made by taking the third switch device Q3 as a MOS tube as an example.

[0064] When the third switch device Q3 is a MOS tube, the gate of the MOS tube is the first end of the third switch device Q3, the source of the MOS tube is the second end of the third switch device Q3, and the drain of the MOS tube is the third end of the third switch device Q3.

[0065] The sixth resistor R6 serves as a current limiting protection resistor, which can protect the first end of the second switch device Q2 and prevent an excessively high current from flowing into the first end of the second switch device Q2.

[0066] The seventh resistor R7 serves as a pull-down resistor and can provide a default level for the second switch device Q2 , thereby ensuring that the second switch device Q2 can be maintained at a default level in the absence of the second signal.

[0067] The eighth resistor R8, the ninth resistor R9 and the tenth resistor R10 serve as voltage-dividing resistors of the third switch device Q3, which can adjust the voltage flowing to the first end of the third switch device Q3 so that it turns on after the second switch device Q2 is turned on, thereby controlling the power supply to supply power to the light string.

[0068] In some embodiments, the Bluetooth circuit can send a second signal to the detection circuit and the power supply circuit at the same time. The second signal can be a low-level signal. The first switch device Q1 is turned off when receiving the low-level signal. The second switch device Q2 is turned on when receiving the low-level signal, thereby turning on the third switch device Q3 and controlling the power supply to power the light string.

[0069] like Figure 7 As shown, the third switch device Q3 may further include an electrostatic discharge (ESD) protection component, the two ends of the ESD are respectively connected to the first end and the second end of the third switch device Q3, and the ESD may prevent electrostatic loss at the first end of the third switch device Q3.

[0070] See also Figure 8 , Figure 8 is a schematic diagram of another power supply circuit disclosed in an embodiment of the present application. Figure 8 The power supply circuit shown consists of Figure 7 The power supply circuit shown is optimized. Figure 8 As shown, the power supply circuit may further include a second capacitor C2.

[0071] The second capacitor C2 is connected in parallel with the ninth resistor R9.

[0072] The second capacitor C2 serves as a delayed turn-on capacitor of the third switch device Q3, which can delay the turn-on time of the third switch device Q3, so that the delayed gradual turn-on can achieve soft start-up of the light, reduce current impact, and extend the service life of the lamp.

[0073] See also Fig. 9 , Fig. 9 is a schematic diagram of another power supply circuit disclosed in the embodiment of the present application. Fig. 9 The power supply circuit shown consists of Figure 8 The power supply circuit shown is optimized. Fig. 9 As shown, the power supply circuit further includes an eleventh resistor R11.

[0074] Two ends of the eleventh resistor R11 are respectively connected to the second end and the third end of the third switch device Q3.

[0075] The eleventh resistor R11 can be used as a protection element to prevent the third switch device Q3 from overcurrent in the event of a fault. If the third switch device Q3 is short-circuited, the eleventh resistor R11 can limit the current flowing therethrough, thereby protecting other parts of the circuit.

[0076] In some embodiments, the quantity detection device may further include a WIFI circuit connected to the Bluetooth circuit.

[0077] The WIFI circuit can receive the first signal and send the first signal to the Bluetooth circuit. The WIFI circuit can also receive the second signal and send the second signal to the Bluetooth circuit.

[0078] In some embodiments, the quantity detection device may further include a power conversion circuit, which is connected to the Bluetooth circuit.

[0079] The power conversion circuit can convert a first DC signal provided by the power supply into a second DC signal, wherein the voltage of the second DC signal is lower than the voltage of the first DC signal. The second DC signal can power the Bluetooth circuit.

[0080] Since the voltage output by most power supplies does not meet the voltage requirements of the Bluetooth circuit, for example, the power supply output is 36V, while the Bluetooth circuit usually operates at 3.3V or lower. Therefore, a power conversion circuit is required to convert the higher input voltage into the lower voltage required by the Bluetooth circuit to ensure that the Bluetooth circuit can operate safely at the correct voltage.

[0081] The present application embodiment discloses a lamp, please refer to Fig.10 , Fig.10 Schematic diagram of the structure of a lamp disclosed in the embodiment of the present application. Fig.10 As shown, the lamp may include a lamp string and a quantity detection device, and the lamp string includes at least one light-emitting unit.

[0082] In some embodiments, the lamp may further include a driving module, which is respectively connected to the detection circuit, the power supply circuit and the light string.

[0083] The driving module can drive and control the light string according to the control signal sent by the Bluetooth circuit.

[0084] The driving module may be a low voltage linear driving chip, and the model of the low voltage linear driving chip may be SM16825E, or other models with equivalent functions.

[0085] See also Fig.11 , Fig.11 Schematic diagram of the structure of a light string disclosed in the embodiment of the present application. Fig.11 As shown, the light string may include different types of light emitting units. The light emitting units may be different types of lamp beads.

[0086] Exemplarily, D1, D3, and D5 are warm white temperature lamp beads, D2, D4, and D6 are cold white temperature lamp beads, and D7 is a color system (Red, Green, Blue, RGB) light-emitting diode lamp bead. The two ends of the above lamp beads are respectively connected to the power supply circuit and the drive module. RWW, RCW, RB, RR, and RG are current limiting protection resistors that can protect the drive module from overcurrent damage. C1, C2, and C3 are filter capacitors that can make the voltage more stable.

[0087] For a detailed description of the quantity detection device, reference may be made to the above description.

[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A quantity detection device, characterized in that: It includes a Bluetooth circuit, a detection circuit and a processing circuit, wherein the detection circuit includes a sampling resistor, wherein: The output end of the Bluetooth circuit is connected to the first end of the detection circuit, the second end of the detection circuit is connected to the processing circuit, the third end of the detection circuit is connected to the light string, and the input end of the Bluetooth circuit is the input end of the quantity detection device; The Bluetooth circuit is used to send a first signal to the detection circuit; The detection circuit is used to detect the voltage of the sampling resistor according to the first signal; The processing circuit is used to determine the working number of the light-emitting units in the light string according to the voltage of the sampling resistor.

2. The quantity detection device according to claim 1, characterized in that: The quantity detection device also includes a power supply circuit, wherein: The first end of the power supply circuit is connected to the output end of the Bluetooth circuit, the second end of the power supply circuit is connected to a power source, and the third end of the power supply circuit is connected to the light string; The Bluetooth circuit is further used to send a second signal to the power supply circuit; The power supply circuit is used to supply power to the light string according to the second signal.

3. The quantity detection device according to claim 1, characterized in that: The detection circuit further includes a first switch device, a first resistor and a second resistor, wherein: The first end of the first switch device is respectively connected to the output end of the Bluetooth circuit and one end of the first resistor, the second end of the first switch device is respectively connected to one end of the sampling resistor and one end of the second resistor, the other end of the second resistor is connected to the processing circuit, the other end of the sampling resistor and the other end of the first resistor are respectively connected to the ground, and the third end of the first switch device is connected to the light string.

4. The quantity detection device according to claim 3, characterized in that: The detection circuit further includes a first capacitor, wherein: One end of the first capacitor is connected to the other end of the second resistor, and the other end of the first capacitor is connected to the other end of the sampling resistor.

5. The quantity detection device according to claim 4, characterized in that: The detection circuit further includes a fourth resistor, wherein: The first end of the first switch device is connected to the output end of the Bluetooth circuit through the fourth resistor.

6. The quantity detection device according to claim 4, characterized in that: The detection circuit further includes a fifth resistor, wherein: Two ends of the fifth resistor are connected to the second end and the third end of the first switch device respectively.

7. The quantity detection device according to claim 2, characterized in that: The power supply circuit includes a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a tenth resistor, a second switch device and a third switch device, wherein: The first end of the second switch device is connected to the output end of the Bluetooth circuit through the sixth resistor, the first end of the second switch device is connected to the ground end through the seventh resistor, the second end of the second switch device is connected to the ground end, the third end of the second switch device is connected to one end of the eighth resistor, the other end of the eighth resistor is respectively connected to one end of the ninth resistor, one end of the tenth resistor and the first end of the third switch device, the other end of the ninth resistor is connected to the power supply, the other end of the tenth resistor is grounded, the second end of the third switch device is connected to the ground end, and the third end of the third switch device is connected to the light string.

8. The quantity detection device according to claim 7, characterized in that: The power supply circuit further includes a second capacitor, wherein: The second capacitor is connected in parallel with the ninth resistor.

9. The quantity detection device according to claim 7, characterized in that: The power supply circuit further includes an eleventh resistor, wherein: Two ends of the eleventh resistor are respectively connected to the second end and the third end of the third switch device.

10. A lamp, characterized in that: It comprises a light string and a quantity detection device as claimed in any one of claims 1 to 9, wherein the light string comprises at least one light-emitting unit.