Control circuit and method of smart home atmosphere lamp

By combining the circuit design of a microprocessor, an envelope detection and signal shaping module, a scanning timing and driving module, an LED dot matrix module, and a single-line return-to-zero code current source module, the problems of high cost and low integration of integrated circuits for ambient light are solved, microprocessor resource optimization and flexible expansion of the LED matrix are achieved, and image processing compatibility is improved.

CN120673702APending Publication Date: 2025-09-19NANJING PANDA ELECTRONICS MFG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511018841.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-23
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

Existing dot-matrix scanning controlled ambient light ASIC products have the problems of high cost, limited selection categories and low integration. In particular, high-resolution dot-matrix scanning display control dedicated circuits are almost blank in the market.

Method used

A combined circuit design of a microprocessor, envelope detection and signal shaping module, scanning timing and driving module, LED dot matrix module and single-line return-to-zero code current source module is adopted. The microprocessor outputs a specific signal sequence, and the external circuit is used to automatically complete the scanning and display of the LED dot matrix, reducing the resource consumption of the microprocessor and expanding the scale of the LED matrix through cascading.

Benefits of technology

It optimizes microprocessor resources, reduces pin resource consumption and costs, simplifies peripheral signal circuit processing, supports flexible expansion of LED matrices, has strong image processing compatibility, and is suitable for existing computer systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120673702A_ABST
    Figure CN120673702A_ABST
Patent Text Reader

Abstract

The invention discloses a control circuit and method for a smart home atmosphere lamp. The control circuit comprises a microprocessor, an envelope detection and signal shaping module, a scanning time sequence and driving module, an LED dot matrix module and a single-line return-to-zero code current source module. The microprocessor outputs an atmosphere lamp control signal to the envelope detection and signal shaping module and the single-line return-to-zero code current source module, the envelope detection and signal shaping module comprises a signal buffer circuit, an envelope detection circuit and a driving circuit, after receiving the microprocessor control signal, the envelope detection and signal shaping module is used for realizing signal conversion to form an envelope signal, and the single-line return-to-zero code current source module outputs the envelope signal to the single-line return-to-zero code current source module. The envelope signal is output to a scanning time sequence and a driving module; compared with the prior art, an existing image processing method is improved, and the method can be easily integrated into an existing computer system or circuit; a specific signal time sequence is adopted, so that the microprocessor only pays attention to generation of image data, and control resources of the microprocessor are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of photoelectric control of household appliances, and in particular to a control circuit and method for a smart home atmosphere lamp. Background Art

[0002] With the rapid advancement of electronic technology, home appliances have achieved significant leaps in functionality and user experience. To attract consumers and improve user satisfaction, many appliance manufacturers have incorporated display effects ranging from simple to complex into their products. Smart homes, in particular, adhere to the design principles of ease of use and user-friendliness, and require the integration of interactive lighting control functions into their functional designs. From small features such as status indicators, illuminated buttons, ambient light strips, and ambient screens on the device itself, to large features such as adjustable brightness and color in lamps and interactive color touchscreens on large smart appliances, the interactive lighting functions of smart homes offer a wide range of flexibility.

[0003] However, faced with the increasing complexity of smart home product functions, rising material costs, and increasingly tight product development cycles, effectively controlling costs while ensuring functionality and user experience has become a top priority for smart home product manufacturers. Ambient lighting not only significantly enhances the user experience, but also costs far less than expensive and fragile display devices like LCD screens. In contrast, dot-matrix scanning-controlled ambient lighting has a shorter development and debugging cycle, is less complex, and offers greater flexibility in scalability and form factor design. By increasing dot matrix density and scale, it can even replace LCD screens as display screens or large lamps in certain scenarios, leading to its increasing adoption in the home appliance sector.

[0004] However, currently, ASICs for ambient lighting controlled by dot-matrix scanning face challenges such as high cost, limited product options, and low integration. In particular, there is a near-absence of high-resolution dot-matrix scanning display control circuits in the market. Summary of the Invention

[0005] The purpose of the present invention is to address the problems of high cost, limited optional categories, low integration and other problems of existing dot matrix scanning controlled atmosphere lamp special integrated circuit products. To address these shortcomings, a control circuit and method for smart home atmosphere lamp are proposed.

[0006] In order to achieve the above objectives, the present invention adopts the following technical solutions: A control circuit for a smart home atmosphere lamp comprises: a microprocessor, an envelope detection and signal shaping module, a scanning timing and driving module, an LED dot matrix module, and a single-line return-to-zero code current source module; Among them, the microprocessor outputs the atmosphere light control signal to the envelope detection and signal shaping module and the single-line return-to-zero code current source module. The envelope detection and signal shaping module includes a signal buffer circuit, an envelope detection circuit and a driving circuit. After receiving the microprocessor control signal, it is used to realize signal conversion, form an envelope signal, and output the envelope signal to the scanning timing and driving module; The scanning timing and driving module includes a Johnson counter (twisted ring counter) or a digital logic circuit and amplifier with equivalent logic; it receives the envelope signal, converts it into a channel scanning signal enabled in sequence by channel, amplifies it, and outputs it to the LED dot matrix module; The single-line return-to-zero code current source module includes a current conversion circuit and an amplification circuit. After receiving a microprocessor control signal, it is used to convert the effective current value in the control signal into a channel current signal according to the channel order. The channel current signal is the current output or input of the channel; The LED dot matrix module receives a channel scanning signal and a channel current signal, and lights up the LED lamp beads according to the channel scanning signal and the channel current signal.

[0007] As a further preferred embodiment of the present invention, the envelope detection circuit includes a first diode D1, a third capacitor C3, and a fourth resistor R4; the buffer circuit includes a first integrated circuit U1 and a second integrated circuit U2; the drive circuit includes a first capacitor C1, a second resistor R2, a first transistor Q1, a first resistor R1, a third resistor R3, a second capacitor C2, and a second transistor Q2; The output end of the microprocessor is connected to the input end of the first integrated circuit U1, the input end of the first integrated circuit U1 is connected to the gate of the first transistor Q1 and one end of the first resistor R1, the other end of the first resistor R1 and the source of the first transistor Q1 are both grounded, the drain of the first transistor Q1 is connected to one end of the second resistor R2 and the gate of the second transistor Q2, the source of the second transistor is connected to one end of the third resistor R3, the drain of the second transistor is connected to the anode of the diode D1, the other end of the second resistor R2 and one end of the first capacitor C1 are connected to the power supply, and the other end of the first capacitor C1 is grounded; the other end of the third resistor R3 and one end of the second capacitor C2 are connected to the power supply, and the other end of the second capacitor C2 is grounded; the cathode of the diode D1 is connected to one end of the third capacitor C3, one end of the fourth resistor R4, and the input end of the second integrated circuit U2, and the other end of the third capacitor C3 and the other end of the fourth resistor R4 are grounded; the output end of the second integrated circuit U2 is connected to the input end of the scan timing and drive module.

[0008] As a further preferred embodiment of the present invention, the single-line return-to-zero code current source module includes a third integrated circuit U3, the VCC pin of the third integrated circuit U3 is connected to the power supply and one end of the fourth capacitor C4, and the other end of the fourth capacitor C4 is grounded; the DIN pin of the third integrated circuit U3 is the input end of the single-line return-to-zero code current source module, and is connected to the output end of the microprocessor; the DOUT pin of the third integrated circuit U3 is connected to the output end of the single-line return-to-zero code current source module, the VSS pin of the third integrated circuit U3 is grounded, the CH0 pin to the CHn-1 pin of the third integrated circuit U3 are connected to n channels in sequence, and the other end of the n channels is connected to the output end of the single-line return-to-zero code current source module; the third integrated circuit U3 is a Johnson counter or a digital logic circuit with equivalent logic; the single-line return-to-zero code current source module determines the current type according to the third integrated circuit U3, and the current type includes a current source mode circuit or a current sink mode circuit.

[0009] As a further preferred embodiment of the present invention, the scanning timing and driving module includes a current conversion circuit and an amplifying circuit; the amplifying circuit is set to a current sourcing driving mode circuit or a current sinking driving mode circuit; the current conversion circuit includes a fourth integrated circuit U4, the VCC pin of the fourth integrated circuit U4 is connected to the power supply and one end of the fifth capacitor C5, and the other end of the fifth capacitor C5 is grounded; the CLK pin of the fourth integrated circuit U4 is the input end of the scanning timing and driving module, and is connected to the output end of the envelope detection and signal shaping module; the VSS pin of the fourth integrated circuit U4 is grounded; the Q0 pin to the Qm-1 pin of the fourth integrated circuit U4 are respectively connected to the input end of the amplifying circuit; the Qm pin of the fourth integrated circuit U4 is connected to the RST pin of the fourth integrated circuit U4, and the output ends of the several amplifying circuits are respectively connected to m channels, and the other ends of the m channels are connected to the output end of the scanning timing and driving module.

[0010] As a further preferred embodiment of the present invention, the current source drive mode circuit includes a fifth integrated circuit U5, a sixth capacitor C6 and a third transistor Q3; the input ends of several fifth integrated circuits U5 are respectively connected to the Q0 pin of the fourth integrated circuit U4 and the Qm-1 pin of the fourth integrated circuit U4, the output end of the fifth integrated circuit U5 is connected to the gate of the third transistor Q3, the source of the third transistor Q3 is connected to the power supply and one end of the sixth capacitor C6, the drain of the third transistor Q3 is connected to one end of the channel, the other end of the sixth capacitor C6 is grounded, and the third transistor Q3 is configured as a bipolar junction transistor or a field effect transistor.

[0011] As a further preferred embodiment of the present invention, the current injection drive mode circuit includes a sixth integrated circuit U6, a seventh capacitor C7 and a fourth transistor Q4; the input ends of several sixth integrated circuits U6 are respectively connected to the Q0 pin of the fourth integrated circuit U4 and the Qm-1 pin of the fourth integrated circuit U4, the output end of the sixth integrated circuit U6 is connected to the gate of the fourth transistor Q4, the source of the fourth transistor Q4 is connected to the power supply and one end of the sixth capacitor C6, the drain of the fourth transistor Q4 is connected to one end of the channel, and the other end of the sixth capacitor C6 is grounded; the fourth transistor Q4 is configured as a bipolar junction transistor or a field effect transistor.

[0012] As a further preference of the present invention, the LED dot matrix module is composed of an x-row and y-column LED lamp bead matrix; each row of LED lamp beads is connected to the output end of the scanning timing and driving module or the output end of the single-line return-to-zero code current source module, and each column of LED lamp beads is connected to the output end of the single-line return-to-zero code current source module or the output end of the scanning timing and driving module.

[0013] As a further preferred embodiment of the present invention, when the single-line return-to-zero code current source module is in a current sinking drive mode and the scanning timing and driving module is in a current sourcing drive mode, each row of LED lamp beads is connected to the output end of the scanning timing and driving module to receive the channel scanning signal output by the scanning timing and driving module, and each column of LED lamp beads is connected to the output end of the single-line return-to-zero code current source module to receive the channel current signal output by the single-line return-to-zero code current source module; When the single-line return-to-zero code current source module is in the current sourcing drive mode and the scanning timing and driving module is in the current sinking drive mode, each column of LED lamp beads is connected to the output end of the scanning timing and driving module to receive the channel scanning signal output by the scanning timing and driving module, and each row of LED lamp beads is connected to the output end of the single-line return-to-zero code current source module to receive the channel current signal output by the single-line return-to-zero code current source module.

[0014] A method for controlling a smart home atmosphere light comprises the following steps: S1, the microprocessor generates the atmosphere light control signal according to the LED dot matrix image resolution and color processing method; S2, envelope detection and signal shaping module and single-line return-to-zero code current source module respectively analyze the ambient light control signal; S3, the single-line return-to-zero code current source module identifies the effective current value sequence and reset sequence in the ambient light control signal; converts the effective current value sequence into a channel current value, i.e., a channel current signal, which is used to control the lighting of each row of LED dot matrix beads in sequence; S4, the envelope detection and signal shaping module identifies the effective current value sequence state and the reset sequence state in the ambient light control signal; S5, the envelope detection and signal shaping module controls the scanning timing and the driving module switches the next column enable channel signal in channel sequence until it switches to the last enable channel; S6. When the envelope detection and signal shaping module recognizes the reset sequence state, it controls the scanning timing and resets the driving module, enables the first channel again, and provides current control to the next row of the LED dot matrix in column order until the last row of the LED dot matrix.

[0015] As a further preferred embodiment of the present invention, S1 comprises the following steps: S11, determining the resolution and color processing method of the image to be displayed based on the number of rows and columns of the preset LED dot matrix image; S12, based on the single-line return-to-zero code timing of each row of the LED dot matrix preset by the circuit, generating an effective current value sequence and a reset sequence for a row of pixels of the image to be displayed; S13, splicing the effective current value sequence and reset sequence of each row of the LED dot matrix to form a circuit signal for each row; S14. Splicing the circuit signals of each row according to the column order of the LED dot matrix to form an overall circuit signal of the LED dot matrix, that is, the atmosphere light control signal.

[0016] The control circuit and method of a smart home atmosphere lamp proposed in the present invention have the following beneficial effects compared with the prior art: 1. Optimization of microprocessor resources: The microprocessor can automatically complete the scanning and display of the LED dot matrix with the help of external circuits by simply outputting specific signal timings. When using the DMA method to output image signals, the microprocessor can focus only on generating image data. The image data generation and image data output processes are completely independent of the scanning circuit workflow. This design significantly saves the microprocessor's control resources.

[0017] 2. Pin resource and cost savings: The microprocessor requires only one pin to output image signals, which not only reduces the microprocessor's pin resource consumption but also simplifies the processing complexity of the microprocessor's peripheral signal circuits. In long-distance transmission scenarios, this design can also save wiring harness costs.

[0018] 3. Image processing compatibility: The control method of the present invention involves image processing methods, including image pixelation and color separation representation methods (such as representing color images through the RGB color space model and representing black and white images through grayscale). These image processing methods are widely used in the field of image processing and can be easily integrated into existing computer systems or circuits.

[0019] 4. Flexibility in Scale Expansion of Ambient Lighting: The number of output channels of the scan timing and driver module and the single-line return-to-zero current source module determines the number of rows and columns in the LED matrix. Both modules support cascading to increase the number of output channels, allowing for flexible expansion of the LED matrix. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 This is a functional block diagram of a driving device for a smart home atmosphere lamp according to the present invention; Figure 2 A circuit structure block diagram of an embodiment of an envelope detection and signal shaping module; Figure 3 A circuit structure block diagram of an embodiment of a scanning timing and driving module; Figure 4 A circuit structure block diagram of an embodiment of a single-line return-to-zero code current source module; Figure 5 A circuit structure block diagram of an embodiment of an LED dot matrix module; Figure 6 An image signal generation process of an embodiment of a microprocessor; Figure 7 The present invention provides a logic flow for row and column scanning of an LED matrix according to an embodiment involving an envelope detection and signal shaping module, a scanning timing and driving module, and a single-line return-to-zero code current source module. DETAILED DESCRIPTION

[0021] The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0022] Example 1: Combination Figure 1-5 A control circuit for a smart home atmosphere lamp includes: a microprocessor, an envelope detection and signal shaping module, a scanning timing and driving module, an LED dot matrix module, and a single-line return-to-zero code current source module.

[0023] Among them, the microprocessor outputs the atmosphere light control signal to the envelope detection and signal shaping module and the single-line return-to-zero code current source module.

[0024] like Figure 2 As shown, the envelope detection and signal shaping module includes a signal buffer circuit, an envelope detection circuit and a driving circuit. After receiving the microprocessor control signal, it is used to realize signal conversion, form an envelope signal, and output the envelope signal to the scanning timing and driving module.

[0025] The envelope detection circuit includes a first diode D1, a third capacitor C3, and a fourth resistor R4; the buffer circuit includes a first integrated circuit U1 and a second integrated circuit U2; the drive circuit includes a first capacitor C1, a second resistor R2, a first transistor Q1, a first resistor R1, a third resistor R3, a second capacitor C2, and a second transistor Q2.

[0026] The output end of the microprocessor is connected to the input end of the first integrated circuit U1, the input end of the first integrated circuit U1 is connected to the gate of the first transistor Q1 and one end of the first resistor R1, the other end of the first resistor R1 and the source of the first transistor Q1 are both grounded, the drain of the first transistor Q1 is connected to one end of the second resistor R2 and the gate of the second transistor Q2, the source of the second transistor is connected to one end of the third resistor R3, the drain of the second transistor is connected to the anode of the diode D1, the other end of the second resistor R2 and one end of the first capacitor C1 are connected to the power supply, and the other end of the first capacitor C1 is grounded; the other end of the third resistor R3 and one end of the second capacitor C2 are connected to the power supply, and the other end of the second capacitor C2 is grounded; the cathode of the diode D1 is connected to one end of the third capacitor C3, one end of the fourth resistor R4, and the input end of the second integrated circuit U2, and the other end of the third capacitor C3 and the other end of the fourth resistor R4 are grounded; the output end of the second integrated circuit U2 is connected to the input end of the scan timing and drive module.

[0027] When the anode of the first diode D1 is at a high level sufficient to turn on the first diode D1, the cathode of the first diode D1 is also at a high level and charges the third capacitor C3; when the anode of the first diode D1 is at a low level that cannot turn on the first diode D1, the third capacitor C3 can still maintain the high level of the cathode when the first diode D1 is turned on.

[0028] The capacitance value of the third capacitor C3 determines the charging speed of the third capacitor C3, and the resistance value of the fourth resistor R4 determines the discharging speed of the third capacitor C3. The charging and discharging speeds of the third capacitor C3 determine the sensitivity of the envelope detection circuit. The charging speed of the third capacitor C3 needs to be much faster than the discharging speed.

[0029] The envelope detection output signal is buffered by the second integrated circuit U2 and output to the next module.

[0030] like Figure 3 As shown, the scanning timing and driving module includes a Johnson counter (twisted ring counter) or a digital logic circuit and amplifier with equivalent logic. When the input signal level changes, the output channels are enabled one by one in sequence, and the levels of the disabled channels and the enabled channels are different and consistent; the envelope signal is received, converted into a channel scanning signal that is enabled in sequence, amplified, and output to the LED dot matrix module.

[0031] The scanning timing and driving module includes a current conversion circuit and an amplifying circuit; the amplifying circuit is configured as a current sourcing driving mode circuit or a current sinking driving mode circuit; the current conversion circuit includes a fourth integrated circuit U4, the VCC pin of the fourth integrated circuit U4 is connected to the power supply and one end of the fifth capacitor C5, and the other end of the fifth capacitor C5 is grounded; the CLK pin of the fourth integrated circuit U4 is the input end of the scanning timing and driving module, and is connected to the output end of the envelope detection and signal shaping module; the VSS pin of the fourth integrated circuit U4 is grounded; the Q0 pin to the Qm-1 pin of the fourth integrated circuit U4 are respectively connected to the input end of the amplifying circuit; the Qm pin of the fourth integrated circuit U4 is connected to the RST pin of the fourth integrated circuit U4, the output ends of the several amplifying circuits are respectively connected to m channels, and the other ends of the m channels are connected to the output end of the scanning timing and driving module.

[0032] The current source drive mode circuit includes a fifth integrated circuit U5, a sixth capacitor C6 and a third transistor Q3; the input ends of several fifth integrated circuits U5 are respectively connected to the Q0 pin of the fourth integrated circuit U4 and the Qm-1 pin of the fourth integrated circuit U4, the output end of the fifth integrated circuit U5 is connected to the gate of the third transistor Q3, the source of the third transistor Q3 is connected to the power supply and one end of the sixth capacitor C6, the drain of the third transistor Q3 is connected to one end of the channel, and the other end of the sixth capacitor C6 is grounded. The third transistor Q3 is configured as a bipolar junction transistor or a field effect transistor.

[0033] The current sink drive mode circuit includes a sixth integrated circuit U6, a seventh capacitor C7 and a fourth transistor Q4; the input ends of several sixth integrated circuits U6 are respectively connected to the Q0 pin of the fourth integrated circuit U4 and the Qm-1 pin of the fourth integrated circuit U4, the output end of the sixth integrated circuit U6 is connected to the gate of the fourth transistor Q4, the source of the fourth transistor Q4 is connected to the power supply and one end of the sixth capacitor C6, the drain of the fourth transistor Q4 is connected to one end of the channel, and the other end of the sixth capacitor C6 is grounded; the fourth transistor Q4 is configured as a bipolar junction transistor or a field effect transistor.

[0034] like Figure 4 As shown, the single-line return-to-zero code current source module includes a current conversion circuit and an amplification circuit. After receiving the microprocessor control signal, it is used to convert the effective current value in the control signal into a channel current signal according to the channel order. The channel current signal is the current output or input of the channel.

[0035] The single-line return-to-zero code current source module includes a third integrated circuit U3, the VCC pin of the third integrated circuit U3 is connected to the power supply and one end of the fourth capacitor C4, and the other end of the fourth capacitor C4 is grounded; the DIN pin of the third integrated circuit U3 is the input end of the single-line return-to-zero code current source module and is connected to the output end of the microprocessor; the DOUT pin of the third integrated circuit U3 is connected to the output end of the single-line return-to-zero code current source module, the VSS pin of the third integrated circuit U3 is grounded, the CH0 pin to the CHn-1 pin of the third integrated circuit U3 are connected to n channels in sequence, and the other ends of the n channels are connected to the output end of the single-line return-to-zero code current source module; the third integrated circuit U3 is a Johnson counter or a digital logic circuit with equivalent logic; the single-line return-to-zero code current source module determines the current type according to the third integrated circuit U3, and the current type includes a current source drive mode circuit or a current sink drive mode circuit.

[0036] The third integrated circuit U3 is a single-channel or multi-channel adjustable current source circuit controlled by a single-line return-to-zero code signal format. When receiving a serial single-line return-to-zero code signal, it analyzes the signal according to a preset timing sequence within the internal circuit and sequentially converts it into a current value at the output port. Excess data beyond the output channel's capacity is forwarded through the single-line return-to-zero code output channel. The output port can operate in either a current source or current sink drive mode. The output channel current signal and the output signal forwarded by the single-line return-to-zero code are jointly output to the next-level module. The input signal of the next-level module can be connected to the single-line return-to-zero code forwarding output signal to achieve a cascade connection of return-to-zero code current source modules.

[0037] like Figure 5 As shown, the LED dot matrix module receives a channel scanning signal and a channel current signal, and lights up the LED lamp beads according to the channel scanning signal and the channel current signal.

[0038] The LED dot matrix module consists of an x-row, y-column matrix of LED lamp beads; each row shares a common anode and each column shares a common cathode. Each row of LED lamp beads is connected to the output of the scanning timing and driver module or the output of the single-line return-to-zero code current source module, while each column of LED lamp beads is connected to the output of the single-line return-to-zero code current source module or the output of the scanning timing and driver module.

[0039] When the single-line return-to-zero code current source module is in the current sinking driving mode and the scanning timing and driving module is in the current sourcing driving mode, each row of LED lamp beads is connected to the output end of the scanning timing and driving module to receive the channel scanning signal output by the scanning timing and driving module, and each column of LED lamp beads is connected to the output end of the single-line return-to-zero code current source module to receive the channel current signal output by the single-line return-to-zero code current source module; When the single-line return-to-zero code current source module is in the current sourcing drive mode and the scanning timing and driving module is in the current sinking drive mode, each column of LED lamp beads is connected to the output end of the scanning timing and driving module to receive the channel scanning signal output by the scanning timing and driving module, and each row of LED lamp beads is connected to the output end of the single-line return-to-zero code current source module to receive the channel current signal output by the single-line return-to-zero code current source module.

[0040] Example 2: Combination Figure 6-7 For the convenience of explanation, Figure 6 and Figure 7 The example image shown in the figure is a 3*3 pixel color image. The RGB color space model is used to separate a single pixel into red, green, and blue colors. The color value is represented by a binary number with a color bit depth of 1 bit. The reset sequence duration is set to the same sequence time as the effective current value sequence of the 6 matrix points.

[0041] A method for controlling a smart home atmosphere light comprises the following steps: S1. The microprocessor generates an ambient light control signal according to the LED dot matrix image resolution and color processing method.

[0042] S11 . Determine the resolution and color processing method of the image to be displayed based on the preset number of rows and columns of the matrix of the LED dot matrix image.

[0043] S12. Based on the single-line return-to-zero code timing of each row of the LED dot matrix preset by the circuit, generate an effective current value sequence and a reset sequence for one row of pixels of the image to be displayed.

[0044] S13, splicing the effective current value sequence and reset sequence of each row of the LED dot matrix to form a circuit signal for each row.

[0045] S14. Splicing the circuit signals of each row according to the column order of the LED dot matrix to form an overall circuit signal of the LED dot matrix, that is, the atmosphere light control signal.

[0046] S2, the envelope detection and signal shaping module and the single-line return-to-zero code current source module respectively analyze the ambient light control signal.

[0047] S3, the single-line return-to-zero code current source module identifies the effective current value sequence and reset sequence in the ambient light control signal; converts the effective current value sequence into a channel current value, i.e., a channel current signal, which is used to control the lighting of each row of LED dot matrix lamps in turn.

[0048] S4. The envelope detection and signal shaping module identifies the effective current value sequence state and the reset sequence state in the ambient light control signal.

[0049] S5. The envelope detection and signal shaping module controls the scanning timing and the driving module switches the next column enable channel signal in channel sequence until the last enable channel is switched.

[0050] S6. When the envelope detection and signal shaping module recognizes the reset sequence state, it controls the scanning timing and resets the driving module, enables the first channel again, and provides current control to the next row of the LED dot matrix in column order until the last row of the LED dot matrix.

[0051] Under the control of the single-line return-to-zero code current source module and the scanning timing and driving module, each light in the LED matrix can be individually controlled according to the matrix row and column order; after the entire matrix scanning process is completed, the scanning process is repeated to achieve continuous animation display.

[0052] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the above embodiments do not limit the present invention in any form, and any technical solutions obtained by equivalent replacement or equivalent transformation fall within the scope of protection of the present invention.

Claims

1. A control circuit for a smart home atmosphere light, characterized in that: include: Microprocessor, envelope detection and signal shaping module, scanning timing and driving module, LED dot matrix module and single-line return-to-zero code current source module; Among them, the microprocessor outputs the atmosphere light control signal to the envelope detection and signal shaping module and the single-line return-to-zero code current source module. The envelope detection and signal shaping module includes a signal buffer circuit, an envelope detection circuit and a driving circuit. After receiving the microprocessor control signal, it is used to realize signal conversion, form an envelope signal, and output the envelope signal to the scanning timing and driving module; The scanning timing and driving module includes a Johnson counter or a digital logic circuit with equivalent logic and an amplifier; receives the envelope signal, converts it into a channel scanning signal enabled in sequence by channel, amplifies it, and outputs it to the LED dot matrix module; The single-line return-to-zero code current source module includes a current conversion circuit and an amplification circuit. After receiving a microprocessor control signal, it is used to convert the effective current value in the control signal into a channel current signal according to the channel order. The channel current signal is the current output or input of the channel; The LED dot matrix module receives a channel scanning signal and a channel current signal, and lights up the LED lamp beads according to the channel scanning signal and the channel current signal.

2. The control circuit of a smart home atmosphere lamp according to claim 1, characterized in that: The envelope detection circuit includes a first diode D1, a third capacitor C3, and a fourth resistor R4; the buffer circuit includes a first integrated circuit U1 and a second integrated circuit U2; the drive circuit includes a first capacitor C1, a second resistor R2, a first transistor Q1, a first resistor R1, a third resistor R3, a second capacitor C2, and a second transistor Q2; The output end of the microprocessor is connected to the input end of the first integrated circuit U1, the input end of the first integrated circuit U1 is connected to the gate of the first transistor Q1 and one end of the first resistor R1, the other end of the first resistor R1 and the source of the first transistor Q1 are both grounded, the drain of the first transistor Q1 is connected to one end of the second resistor R2 and the gate of the second transistor Q2, the source of the second transistor is connected to one end of the third resistor R3, the drain of the second transistor is connected to the anode of the diode D1, the other end of the second resistor R2 and one end of the first capacitor C1 are connected to the power supply, and the other end of the first capacitor C1 is grounded; the other end of the third resistor R3 and one end of the second capacitor C2 are connected to the power supply, and the other end of the second capacitor C2 is grounded; the cathode of the diode D1 is connected to one end of the third capacitor C3, one end of the fourth resistor R4, and the input end of the second integrated circuit U2, and the other end of the third capacitor C3 and the other end of the fourth resistor R4 are grounded; the output end of the second integrated circuit U2 is connected to the input end of the scan timing and drive module.

3. The control circuit of a smart home atmosphere lamp according to claim 1, characterized in that: The single-line return-to-zero code current source module includes a third integrated circuit U3, the VCC pin of the third integrated circuit U3 is connected to the power supply and one end of the fourth capacitor C4, and the other end of the fourth capacitor C4 is grounded; the DIN pin of the third integrated circuit U3 is the input end of the single-line return-to-zero code current source module and is connected to the output end of the microprocessor; the DOUT pin of the third integrated circuit U3 is connected to the output end of the single-line return-to-zero code current source module, the VSS pin of the third integrated circuit U3 is grounded, the CH0 pin to the CHn-1 pin of the third integrated circuit U3 are connected to n channels in sequence, and the other ends of the n channels are connected to the output end of the single-line return-to-zero code current source module; the third integrated circuit U3 is a Johnson counter or a digital logic circuit with equivalent logic; the single-line return-to-zero code current source module determines the current type according to the third integrated circuit U3, and the current type includes a current source drive mode circuit or a current sink drive mode circuit.

4. The control circuit of a smart home atmosphere lamp according to claim 1, characterized in that: The scanning timing and driving module includes a current conversion circuit and an amplifying circuit; the amplifying circuit is configured as a current sourcing driving mode circuit or a current sinking driving mode circuit; the current conversion circuit includes a fourth integrated circuit U4, the VCC pin of the fourth integrated circuit U4 is connected to the power supply and one end of the fifth capacitor C5, and the other end of the fifth capacitor C5 is grounded; the CLK pin of the fourth integrated circuit U4 is the input end of the scanning timing and driving module, and is connected to the output end of the envelope detection and signal shaping module; the VSS pin of the fourth integrated circuit U4 is grounded; the Q0 pin to the Qm-1 pin of the fourth integrated circuit U4 are respectively connected to the input end of the amplifying circuit; the Qm pin of the fourth integrated circuit U4 is connected to the RST pin of the fourth integrated circuit U4, the output ends of the several amplifying circuits are respectively connected to m channels, and the other ends of the m channels are connected to the output end of the scanning timing and driving module.

5. The control circuit of a smart home atmosphere lamp according to claim 4, characterized in that: The current source drive mode circuit includes a fifth integrated circuit U5, a sixth capacitor C6 and a third transistor Q3; the input ends of several fifth integrated circuits U5 are respectively connected to the Q0 pin of the fourth integrated circuit U4 and the Qm-1 pin of the fourth integrated circuit U4, the output end of the fifth integrated circuit U5 is connected to the gate of the third transistor Q3, the source of the third transistor Q3 is connected to the power supply and one end of the sixth capacitor C6, the drain of the third transistor Q3 is connected to one end of the channel, and the other end of the sixth capacitor C6 is grounded. The third transistor Q3 is configured as a bipolar junction transistor or a field effect transistor.

6. The control circuit of a smart home atmosphere lamp according to claim 4, characterized in that: The current sink drive mode circuit includes a sixth integrated circuit U6, a seventh capacitor C7 and a fourth transistor Q4; the input ends of several sixth integrated circuits U6 are respectively connected to the Q0 pin of the fourth integrated circuit U4 and the Qm-1 pin of the fourth integrated circuit U4, the output end of the sixth integrated circuit U6 is connected to the gate of the fourth transistor Q4, the source of the fourth transistor Q4 is connected to the power supply and one end of the sixth capacitor C6, the drain of the fourth transistor Q4 is connected to one end of the channel, and the other end of the sixth capacitor C6 is grounded; the fourth transistor Q4 is configured as a bipolar junction transistor or a field effect transistor.

7. The control circuit of a smart home atmosphere lamp according to claim 1, characterized in that: The LED dot matrix module consists of an x-row and y-column LED lamp bead matrix; each row of LED lamp beads is connected to the output end of the scanning timing and driving module or the output end of the single-line return-to-zero code current source module, and each column of LED lamp beads is connected to the output end of the single-line return-to-zero code current source module or the output end of the scanning timing and driving module.

8. The control circuit of a smart home atmosphere lamp according to claim 7, characterized in that: When the single-line return-to-zero code current source module is in the current sinking driving mode and the scanning timing and driving module is in the current sourcing driving mode, each row of LED lamp beads is connected to the output end of the scanning timing and driving module to receive the channel scanning signal output by the scanning timing and driving module, and each column of LED lamp beads is connected to the output end of the single-line return-to-zero code current source module to receive the channel current signal output by the single-line return-to-zero code current source module; When the single-line return-to-zero code current source module is in the current sourcing drive mode and the scanning timing and driving module is in the current sinking drive mode, each column of LED lamp beads is connected to the output end of the scanning timing and driving module to receive the channel scanning signal output by the scanning timing and driving module, and each row of LED lamp beads is connected to the output end of the single-line return-to-zero code current source module to receive the channel current signal output by the single-line return-to-zero code current source module.

9. A method for using a control circuit for a smart home atmosphere lamp according to any one of claims 1 to 8, characterized in that: The following steps are involved: S1, the microprocessor generates the atmosphere light control signal according to the LED dot matrix image resolution and color processing method; S2, envelope detection and signal shaping module and single-line return-to-zero code current source module respectively analyze the ambient light control signal; S3, the single-line return-to-zero code current source module identifies the effective current value sequence and reset sequence in the ambient light control signal; converts the effective current value sequence into a channel current value, i.e., a channel current signal, which is used to control the lighting of each row of LED dot matrix beads in sequence; S4, the envelope detection and signal shaping module identifies the effective current value sequence state and the reset sequence state in the ambient light control signal; S5, the envelope detection and signal shaping module controls the scanning timing and the driving module switches the next column enable channel signal in channel sequence until it switches to the last enable channel; S6. When the envelope detection and signal shaping module recognizes the reset sequence state, it controls the scanning timing and resets the driving module, enables the first channel again, and provides current control to the next row of the LED dot matrix in column order until the last row of the LED dot matrix.

10. The control circuit of a smart home atmosphere lamp according to claim 8, characterized in that: Said S1 comprises the following steps: S11, determining the resolution and color processing method of the image to be displayed based on the number of rows and columns of the preset LED dot matrix image; S12, based on the single-line return-to-zero code timing of each row of the LED dot matrix preset by the circuit, generating an effective current value sequence and a reset sequence for a row of pixels of the image to be displayed; S13, splicing the effective current value sequence and reset sequence of each row of the LED dot matrix to form a circuit signal for each row; S14. Splicing the circuit signals of each row according to the column order of the LED dot matrix to form an overall circuit signal of the LED dot matrix, that is, the atmosphere light control signal.