Detection circuit displaying in same color with display screen
By designing a detection circuit including a main control microcontroller and RGB color sensor, the synchronous display and audio synchronization effect of RGB light strip and display screen color synchronization is realized, and the problem of difficulty and high cost of adjusting the synchronous color of light strip and screen color in the prior art is solved. Improves the versatility and adaptability of functions.
Patent Information
- Application Number
- CN202420737929.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-10
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2034-04-10
AI Technical Summary
The existing RGB light strips are difficult to adjust synchronously with the display screen color information, and are costly to use in different environments, with limited functions, and cannot change color and brightness according to temperature.
Design a detection circuit including a main control microcontroller, RGB color sensor, LED driver circuit, key control circuit and audio synchronization circuit. The display screen color value is captured through the RGB color sensor, and the algorithm adjustment is performed, and the light strip is synchronized through the LED driver circuit. Display, realizes the same color display and audio synchronization effect as the display screen, and supports local buttons and wireless remote control reception mode.
The RGB light strip is synchronized with the color of the display screen, which reduces costs and improves the versatility and adaptability of functions, so that the light strip can change color and brightness according to temperature, and is suitable for a variety of environments and equipment.
Smart Images

Figure CN222321810U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of single chip computers, in particular to a detection circuit which displays the same color as a display screen. Background Art
[0002] RGB light strips that display the same color as the display screen are also called screen light synchronization lights. They are widely used in TVs, computers, arcades, and stage performances. Screen light synchronization lights can adjust the color and brightness of the light strips to match the screen on the TV or computer, providing a more immersive and colorful viewing or gaming experience. For example, during games or movies, the lights often adjust their own states in sync with the game screen or the movie screen to increase playability and viewing effects. However, while controlling the light strips, whether the light strips can change with the screen, or change colors with the sound, whether they can be used normally in different environments, and whether the cost of use is too high are all current difficulties that need to be solved.
[0003] In response to the above problems, while enriching the functions of the light strip, not only can the light strip change with the screen or sound, and even change color and brightness according to the temperature, but also the practicality and versatility must be improved so that it can be used in various environments and equipment. Further simplifying the circuit, increasing versatility and reducing costs while enriching the functions are the main solutions to be solved by the utility model. Summary of the invention
[0004] The embodiment of the present application solves the technical problem of how to synchronize the RGB light strip with the screen color information in the prior art by providing a detection circuit that displays the same color as the display screen.
[0005] The embodiment of the present application provides a detection circuit that displays the same color as a display screen, including: a main control microcontroller; an RGB color sensor electrically connected to the main control microcontroller and obtaining a color value corresponding to RGB of the display screen; an LED drive circuit electrically connected to the main control microcontroller; a key control circuit electrically connected to the main control microcontroller and used to control the working state of the detection circuit; and a power supply circuit electrically connected to the main control microcontroller, the RGB color sensor and the LED drive circuit and used to provide power.
[0006] Furthermore, the main control microcontroller includes a microcontroller U1, a capacitor C1 and a capacitor C2, wherein a common end of the capacitor C1 and the capacitor C2 is connected to a 3.3V power supply and to pin 1 of the microcontroller U1, and the other common end is connected to pin 24 of the microcontroller U1 and to ground.
[0007] Furthermore, the RGB color sensor includes an RGB color sensor chip U2, a capacitor C5 and a capacitor C6, a common end of the capacitor C5 and the capacitor C6 is connected to a 3.3V power supply and to pin 1 of the RGB color sensor chip U2, and the other common end is connected to pin 3 of the RGB color sensor chip U2 and to ground, pin 6 of the RGB color sensor chip U2 is connected to pin 8 of the microcontroller U1, and pin 4 of the RGB color sensor chip U2 is connected to pin 9 of the microcontroller U1.
[0008] Furthermore, the LED driving circuit includes a MOS tube Q3, a MOS tube Q4, a MOS tube Q5, a resistor R11, a resistor R12, and a resistor R13. The gate of the MOS tube Q3 is connected to one end of the resistor R11 and is connected in series with a resistor R8 and then connected to the pin 21 of the single-chip computer U1. The drain is connected to the cathode of the diode D1. The anode of the diode D1 is connected in series with a resistor R5 and then connected to a 12V power supply. The source is connected to the other end of the resistor R11 and is grounded. The gate of the MOS tube Q4 is connected to one end of the resistor R12 and is connected in series with the resistor R8 and then connected to the pin 21 of the single-chip computer U1. The MOS tube Q5 is connected to the pin 19 of the single-chip computer U1 after being connected to the resistor R9, the drain is connected to the cathode of the diode D2, the anode of the diode D2 is connected in series with the resistor R6 and then connected to the 12V power supply, and the source is connected to the other end of the resistor R12 and grounded; the gate of the MOS tube Q5 is connected to one end of the resistor R13 and in series with the resistor R10, and then connected to the pin 19 of the single-chip computer U1, the drain is connected to the cathode of the diode D3, the anode of the diode D3 is connected in series with the resistor R7 and then connected to the 12V power supply, and the source is connected to the other end of the resistor R13 and grounded.
[0009] Furthermore, the button control circuit module includes a switch S1, a switch S2, and a switch S3, one end of each of which is connected to pin 17, pin 16, and pin 15 of the microcontroller U1, respectively, and a common end of each of the switches S1, S2, and S3 is grounded.
[0010] Furthermore, the detection circuit also includes an audio synchronization circuit, which includes a transistor Q1, a transistor Q2, a microphone MIC1, a microphone MIC SDA, and a microphone MIC SCK. The collector of the transistor Q1 is connected to the microphone MICSCK, the base is connected to the collector of the transistor Q2 and then connected to the microphone MICSDA in series with a resistor R2, and the emitter is grounded; the base of the transistor Q2 is connected to the resistor R3 and the resistor R1 in series with the microphone MIC SCK, one end of the capacitor C3 is connected to the common end of R1 and R3, and the other end is connected to the microphone MIC SCK, the base of the transistor Q2 is connected to the microphone MIC SDA in series with a capacitor C4 and a resistor R4, the common end of the capacitor C4 and the resistor R4 is connected to the power supply circuit of the microphone MIC1, the emitter of the transistor Q2 is grounded with the emitter of the transistor Q1 and connected to the audio input of the microphone MIC1; the microphone MIC SDA is connected to pin 13 of the microcontroller U1, and the microphone MIC SCK is connected to pin 12 of microcontroller U1.
[0011] Furthermore, the detection circuit also includes a wireless receiving module, which includes a wireless receiving chip U4, an inductor L1, an inductor L2, a capacitor C9, a capacitor C10, a capacitor C11, a capacitor C12, a resistor R14, a crystal oscillator X1 and an antenna ANT. Pin 1 of the wireless receiving chip U4 is grounded, pin 2 is connected in series with the capacitor C10 and then connected to the antenna ANT, pin 2 is also connected to one end of the inductor L2, and the common end of the capacitor C10 and the antenna ANT is also connected to one end of the inductor L1 and the capacitor C9. The other ends of the inductor L2, the inductor L1 and the capacitor C9 are grounded respectively, the pin 3 of the wireless receiving chip U4 is connected in series with the capacitor C11 and then grounded, and is also connected in series with the resistor R14 and then connected to a 3.3V power supply, the pin 4 of the wireless receiving chip U4 is connected in series with the capacitor C12 and then grounded, the pin 5 of the wireless receiving chip U4 is connected to the pin 6 of the microcontroller U1, the pin 6 of the wireless receiving chip U4 is connected to the pin 11 of the microcontroller U1, and the pin 8 of the wireless receiving chip U4 is connected in series with the crystal oscillator X1 and then grounded.
[0012] Furthermore, the power supply circuit includes a voltage stabilizing chip U3, a capacitor C7 and a capacitor C8, the input end of the voltage stabilizing chip U3 is connected to one end of the capacitor C7 and a 12V power supply, the other end of the capacitor C7 is grounded, the output end of the voltage stabilizing chip U3 is connected to one end of the capacitor C8 and a 3.3V power supply, the other end of the capacitor C8 is grounded, and the voltage stabilizing chip U3 is grounded.
[0013] Furthermore, the detection circuit also includes a burner P1, wherein pin 1 of the burner P1 is grounded, pin 2 and pin 3 are respectively connected to pin 4 and pin 10 of the main control microcontroller, and pin 4 of the burner P1 is connected to a 3.3V power supply.
[0014] Furthermore, the single chip microcomputer U1 adopts the RISC architecture UPT8F1816C based on the UPT Ant801TM core.
[0015] The purpose of this application is to read the instantaneous RGB color value corresponding to the display screen through the I2C bus interface of the RGB color sensor of the main control microcontroller, and the main control microcontroller performs algorithm adjustment processing on the sampled R (red) G (green) B (blue) color values, and output the result of the calculation adjustment through the three-way PWM port of the main control microcontroller, drive the three-way RGB light strip to display synchronously, and achieve the effect of the RGB light strip and the display screen displaying the same color, and also include an audio synchronization circuit to achieve the effect of changing with the rhythm of music. Under the premise of reducing costs, the control of the circuit includes local buttons and wireless remote control receiving mode, and the system can be turned on and off and the mode can be changed by local buttons or remote control. While reducing costs, the same color display and audio rhythm of the light strip and the screen are merged, so that the circuit can adapt to a variety of scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of a circuit framework of an embodiment of the utility model;
[0017] Figure 2 This is a circuit diagram of the main control microcontroller of the embodiment of the utility model;
[0018] Figure 3 This is a circuit diagram of an RGB color sensor according to an embodiment of the present utility model;
[0019] Figure 4 This is a circuit diagram of an LED driving circuit according to an embodiment of the utility model;
[0020] Figure 5 This is a circuit diagram of a key control circuit according to an embodiment of the utility model;
[0021] Figure 6 This is a circuit diagram of an audio synchronization circuit according to an embodiment of the utility model;
[0022] Figure 7 This is a circuit diagram of a wireless receiving module according to an embodiment of the utility model;
[0023] Figure 8 This is a circuit diagram of a power supply circuit according to an embodiment of the utility model;
[0024] Fig. 9It is a circuit diagram of a programmer according to an embodiment of the utility model. DETAILED DESCRIPTION
[0025] like Figure 1 to Figure 2 As shown, in this embodiment, a detection circuit that displays the same color as the display screen is provided, including a main control microcontroller; and an RGB color sensor, a wireless receiving module, a power supply circuit, an LED drive circuit, a key control circuit module and an audio synchronization circuit connected to the main control microcontroller; wherein the power supply circuit is electrically connected to the main control microcontroller, the RGB color sensor and the LED drive circuit, the wireless receiving module, the key control circuit module and the audio synchronization circuit are electrically connected through the main control microcontroller, and the main control microcontroller controls the LED drive circuit to synchronize with the color information captured by the RGB color sensor so that it matches the captured color information.
[0026] In this embodiment, the RGB color sensor connected to the main control microcontroller reads the instantaneous RGB color value corresponding to the display screen through the I2C bus interface, and the microcontroller performs algorithm adjustment processing on the sampled R (red), G (green), and B (blue) color values, and outputs the adjusted calculation results to the LED drive circuit through the three-way PWM port of the main control microcontroller, and adjusts the LED drive circuit connected to the main control microcontroller synchronously, so that the color is controlled by the main control microcontroller according to the color information captured by the RGB color sensor and matches the color information captured by the RGB color sensor.
[0027] like Figure 3 to Figure 4 As shown, in one embodiment, the RGB color sensor is connected to the screen via a connecting line or a WIFI wireless connection, thereby obtaining the color information of the screen, and controlling the LED driving circuit through the main control microcontroller.
[0028] In one embodiment, the LED driving circuit is a light strip formed by diodes of three different colors, R, G, green, and B, and various colors are obtained by superimposing them on each other. The light strip is composed of multiple LED beads, and each LED can independently control the color and brightness.
[0029] In one embodiment, the main control microcontroller is a core component that receives color information captured by the RGB color sensor and outputs it to the LED driving circuit through calculation. The main control microcontroller receives control instructions issued by an external remote control or button through a wireless receiving module. The main control microcontroller parses the control instructions and converts them into control signals for the LED driving circuit.
[0030] In one embodiment, the RGB color sensor is a device capable of detecting and identifying colors by capturing the light reflected or emitted by an object and analyzing the wavelength and intensity of the light to determine the color. In a preferred embodiment, the RGB color sensor is a device capable of capturing the video signal of the screen and converting it into a digital signal, thereby extracting image, color and brightness information. It can receive analog or digital video signals from various video sources (such as monitors, cameras, televisions, etc.) and convert them into a digital format that can be processed by a computer. During the conversion process, the video capture card decodes the video signal, extracts the image frame, color information and brightness information, and these signals are output to the main control microcontroller for calculation processing, and the LED drive circuit is operated accordingly.
[0031] In one embodiment, the RGB color sensor simultaneously captures the color and brightness of the screen, and after being processed by the main control microcontroller, an instruction is output to the LED driving circuit, so that the LED driving circuit makes corresponding changes according to the color and brightness in the instruction. For example, the RGB light strip gradient mode, flashing mode, and the appearance of multiple colors at the same time are all adjustments to the color and brightness. When multiple colors appear on the screen, the corresponding LED driving circuit will also appropriately adjust the presented light according to the proportion of the screen colors.
[0032] like Figures 1 to 9 As shown, specifically, the LED driving circuit needs to adjust its own color according to the color of the picture on the screen. To achieve this, the light strip of the LED driving circuit usually adopts the method of mixing the three primary colors of RGB (red, green and blue). By adjusting the brightness and proportion of the three colors, almost any color can be achieved. Under the control of the main control microcontroller, the light strip will select the corresponding RGB value according to the color information of each pixel on the screen, and send it to the light strip for display. By repeating this process continuously, the synchronization effect between the picture and the light strip can be achieved. In addition to the color, the LED driving circuit also needs to adjust its own brightness according to the brightness of the picture on the screen. Generally, the brightness adjustment is achieved by controlling the brightness of the LED lamp beads. According to the brightness of different areas on the screen, the light strip can present a richer and more dynamic effect. It should be noted that since color information capture, instruction processing and light strip display all require a certain amount of time, there is usually a certain delay in the light strip of the LED driving circuit. In order to make the light strip and the screen more smooth and accurate synchronization effect, the system will compensate for the delay, such as by increasing the speed of signal processing or adjusting the display mode of the light strip.
[0033] In a preferred embodiment, the audio synchronization circuit collects sound through a microphone MIC1. When the sound causes the electret film to vibrate and generate displacement, the capacitance of the capacitor changes. When the capacitance changes, the voltage across the capacitor also changes, thereby outputting an electrical signal to achieve conversion from sound to voltage. The voltage converted into voltage turns on transistors Q1 and Q2, thereby turning on the entire circuit. The microphone MIC SCK and the microphone MIC SDA of the audio synchronization circuit are respectively connected to pins 12 and 13 of the main control microcontroller. The main control microcontroller identifies the notes and beats of the collected sound signals, and then outputs control instructions to the LED drive circuit through signals, so that the light strip can cooperate with the changes in the music melody or rhythm of the external environment, and the flashing rate of the light echoes the current music melody or rhythm, thereby achieving a gorgeous effect of unifying the music rhythm and the flashing rhythm of the light.
[0034] In a preferred embodiment, a temperature sensor is also included, which is connected to the main control microcontroller. The temperature sensor is used to measure the indoor temperature, save the temperature in the form of data and send it to the central processing unit. The central processing unit is used to process the temperature data uploaded by the temperature sensor and transmit the processing result to the LED drive circuit. The LED drive circuit performs corresponding color changes according to the control instructions of the main control microcontroller.
[0035] In a preferred embodiment, the UPT8F1816C of the utility model adopts an advanced RISC architecture based on the UPT Ant801TM core. Digital-to-analog conversion circuit (ADC), static data memory (SRAM), low voltage reset circuit (LVR), watchdog circuit (WDT), 16-bit / 8-bit timer, internal oscillation circuit (IRC), port control circuit (GPIO). By writing the microcontroller software and burning the final binary code into the program memory through the burner P1, different functional solutions can be realized. This solution has the characteristics of high integration, high counting accuracy, low power consumption, flexible control, etc. The circuit control chip UPT8F1816C adopts a low-cost SSOP24 pin package, and different pin bit sequences are within the protection scope of the present invention. At the same time, the solution of adding and subtracting capacitors on the original basis is within the protection scope of this patent.
[0036] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0037] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A detection circuit that displays the same color as a display screen, characterized in that: include: Main control microcontroller; An RGB color sensor electrically connected to the main control microcontroller for obtaining color values corresponding to RGB of the display screen; An LED driving circuit electrically connected to a main control microcontroller; A key control circuit electrically connected to the main control microcontroller for controlling the working state of the detection circuit; The power supply circuit is also electrically connected to the main control microcontroller, the RGB color sensor and the LED drive circuit and is used to provide power.
2. The detection circuit for displaying the same color as the display screen according to claim 1, characterized in that: The main control microcontroller includes a microcontroller U1, a capacitor C1 and a capacitor C2, wherein a common end of the capacitor C1 and the capacitor C2 is connected to a 3.3V power supply and to pin 1 of the microcontroller U1, and the other common end is connected to pin 24 of the microcontroller U1 and to ground.
3. The detection circuit for displaying the same color as the display screen according to claim 1, characterized in that: The RGB color sensor includes an RGB color sensor chip U2, a capacitor C5 and a capacitor C6, a common end of the capacitor C5 and the capacitor C6 is connected to a 3.3V power supply and to pin 1 of the RGB color sensor chip U2, and the other common end is connected to pin 3 of the RGB color sensor chip U2 and to ground, pin 6 of the RGB color sensor chip U2 is connected to pin 8 of the single-chip microcomputer U1, and pin 4 of the RGB color sensor chip U2 is connected to pin 9 of the single-chip microcomputer U1.
4. The detection circuit for displaying the same color as the display screen according to claim 1, characterized in that: The LED driving circuit includes MOS tube Q3, MOS tube Q4, MOS tube Q5, resistor R11, resistor R12, and resistor R13. The gate of the MOS tube Q3 is connected to one end of the resistor R11 and connected in series with the resistor R8 and then connected to the pin 21 of the single-chip computer U1. The drain is connected to the cathode of the diode D1. The anode of the diode D1 is connected in series with the resistor R5 and then connected to the 12V power supply. The source is connected to the other end of the resistor R11 and grounded. The gate of the MOS tube Q4 is connected to one end of the resistor R12 and connected in series with the resistor R9, and then connected to the pin 23 of the single chip computer U1; the drain is connected to the cathode of the diode D2; the anode of the diode D2 is connected in series with the resistor R6 and then connected to the 12V power supply; the source is connected to the other end of the resistor R12 and grounded; The gate of the MOS tube Q5 is connected to one end of the resistor R13 and connected in series with the resistor R10, and then connected to the pin 19 of the single chip computer U1. The drain is connected to the cathode of the diode D3. The anode of the diode D3 is connected in series with the resistor R7 and then connected to the 12V power supply. The source is connected to the other end of the resistor R13 and grounded.
5. The detection circuit for displaying the same color as the display screen according to claim 1, characterized in that: The key control circuit module includes a switch S1, a switch S2, and a switch S3. One end of the switch S1, the switch S2, and the switch S3 are respectively connected to pin 17, pin 16, and pin 15 of the single-chip computer U1, and the common end of the switch S1, the switch S2, and the switch S3 is grounded.
6. The detection circuit for displaying the same color as the display screen according to claim 2, characterized in that: The detection circuit also includes an audio synchronization circuit, which includes a transistor Q1, a transistor Q2, a microphone MIC1, a microphone MICSDA, and a microphone MIC SCK. The collector of the transistor Q1 is connected to the microphone MIC SCK, the base is connected to the collector of the transistor Q2, and then connected to the microphone MICSDA in series with a resistor R2, and the emitter is grounded; The base of the transistor Q2 is connected in series with resistor R3 and resistor R1 and is connected to microphone MIC SCK. One end of capacitor C3 is connected to the common end of R1 and R3, and the other end is connected to microphone MIC SCK. The base of the transistor Q2 is connected in series with capacitor C4 and resistor R4 and is connected to microphone MIC SDA. The common end of capacitor C4 and resistor R4 is connected to the power supply circuit of microphone MIC1. The emitter of the transistor Q2 and the emitter of the transistor Q1 are grounded and connected to the audio input of microphone MIC1. The microphone MIC SDA is connected to pin 13 of microcontroller U1, and the microphone MIC SCK is connected to pin 12 of microcontroller U1.
7. The detection circuit for displaying the same color as the display screen according to claim 2, characterized in that: The detection circuit also includes a wireless receiving module, which includes a wireless receiving chip U4, an inductor L1, an inductor L2, a capacitor C9, a capacitor C10, a capacitor C11, a capacitor C12, a resistor R14, a crystal oscillator X1 and an antenna ANT. Pin 1 of the wireless receiving chip U4 is grounded, pin 2 is connected in series with the capacitor C10 and then connected to the antenna ANT, pin 2 is also connected to one end of the inductor L2, and the common end of the capacitor C10 and the antenna ANT is also connected to one end of the inductor L1 and the capacitor C9. The other ends of the inductor L2, the inductor L1 and the capacitor C9 are grounded respectively, the pin 3 of the wireless receiving chip U4 is connected in series with the capacitor C11 and then grounded, and is also connected in series with the resistor R14 and then connected to a 3.3V power supply, the pin 4 of the wireless receiving chip U4 is connected in series with the capacitor C12 and then grounded, the pin 5 of the wireless receiving chip U4 is connected to the pin 6 of the microcontroller U1, the pin 6 of the wireless receiving chip U4 is connected to the pin 11 of the microcontroller U1, and the pin 8 of the wireless receiving chip U4 is connected in series with the crystal oscillator X1 and then grounded.
8. The detection circuit for displaying the same color as the display screen according to claim 1, characterized in that: The power supply circuit includes a voltage stabilizing chip U3, a capacitor C7 and a capacitor C8. The input end of the voltage stabilizing chip U3 is connected to one end of the capacitor C7 and a 12V power supply, and the other end of the capacitor C7 is grounded. The output end of the voltage stabilizing chip U3 is connected to one end of the capacitor C8 and a 3.3V power supply, and the other end of the capacitor C8 is grounded. The voltage stabilizing chip U3 is grounded.
9. The detection circuit for displaying the same color as the display screen according to claim 2, characterized in that: The detection circuit also includes a burner P1, wherein pin 1 of the burner P1 is grounded, pin 2 and pin 3 are respectively connected to pin 4 and pin 10 of the main control microcontroller, and pin 4 of the burner P1 is connected to a 3.3V power supply.
10. The detection circuit for displaying the same color as the display screen according to claim 2, characterized in that: The single chip microcomputer U1 adopts the RISC architecture UPT8F1816C based on the UPT Ant801TM core.