Vehicle-mounted intelligent cup holder atmosphere lamp control method and system with refrigeration function

By integrating the temperature control and ambient light control systems on the vehicle-mounted smart water cup holder, the problem of lack of refrigeration and ambient lighting in the vehicle-mounted water cup holder is solved, intelligent temperature control and atmosphere creation are realized, and the riding experience is improved.

CN119329391APending Publication Date: 2025-01-21GUANGZHOU DEMUP AUTOMOBILE PARTS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411493294.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

Most car water cup holders lack the design of integrated ambient lights and lack intelligent control, which cannot provide refrigeration for beverages, affecting the taste and ride experience of the beverages.

Method used

Provides a vehicle-mounted intelligent water cup holder ambient light control method and system with refrigeration function, which collects the temperature at the bottom of the water cup holder through a temperature sensor module, uses a PID algorithm to control the temperature, and receives the user-selected ambient light mode to control the color of the ambient light , brightness and display effect.

Benefits of technology

The temperature of intelligent control of the water cup holder is realized, and the design of the atmosphere lights is integrated, which enhances the taste and ride experience of the drink, and meets the user's needs for the atmosphere of the car.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119329391A_ABST
    Figure CN119329391A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a vehicle-mounted intelligent cup holder atmosphere lamp control method and system with a refrigeration function. The method comprises the steps that a temperature sensor module collects the bottom temperature of the vehicle-mounted intelligent water cup holder and processes the bottom temperature to obtain a current temperature value; performing temperature control on the vehicle-mounted intelligent water cup holder according to the preset temperature and the current temperature value; receiving the mode of the atmosphere lamp selected by the user through the user interface, and controlling the color, brightness and display effect of the atmosphere lamp; the temperature of the water cup holder is intelligently controlled, and meanwhile, the design of an atmosphere lamp is integrated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of automotive electronics and ambient lighting, and in particular to a method and system for controlling an ambient lighting of an on-board intelligent cup holder with a cooling function. Background Art

[0002] Traditional car cup holders usually only have basic storage functions and cannot provide refrigeration for drinks, which is particularly inconvenient during long-distance driving or hot weather. Users are forced to pre-refrigerate their drinks before departure or endure warm drinks, which affects the taste of the drinks and the riding experience. In terms of intelligence, with the popularity of smartphones and Internet of Things technology, people expect to be able to remotely control the accessories inside the vehicle through these devices. In addition, creating an in-car atmosphere has gradually become an important aspect of improving the riding experience. Ambient lights can not only beautify the interior environment of the car, but also create a relaxing and pleasant atmosphere. At the same time, most car cup holders lack the design of integrated ambient lights, and even lack intelligent control. Summary of the invention

[0003] The embodiments of the present application provide a method and system for controlling the ambient light of a vehicle-mounted intelligent cup holder with a cooling function to solve the problem that most vehicle-mounted cup holders lack a design with integrated ambient lights and even more lack intelligent control.

[0004] In a first aspect, an embodiment of the present application provides a method for controlling an atmosphere light of a vehicle-mounted intelligent cup holder with a cooling function, the method comprising the following steps:

[0005] The temperature sensor module collects the bottom temperature of the vehicle-mounted smart cup holder and processes it to obtain the current temperature value;

[0006] The temperature of the vehicle-mounted smart cup holder is controlled according to the preset temperature and the current temperature value;

[0007] Receive the ambient light mode selected by the user through the user interface, and control the color, brightness and display effect of the ambient light.

[0008] Furthermore, the temperature sensor module collects the bottom temperature of the vehicle-mounted intelligent cup holder and processes it to obtain the current temperature value, including:

[0009] A temperature sensor module with an IIC interface is used to collect and process the bottom temperature of the vehicle-mounted smart cup holder;

[0010] Set a memory with a FIFO structure whose length is the set length value. When 5 temperature data are not collected, the temperature is displayed as 0:

[0011] T(t) = 0;

[0012] When 5 data are collected for the first time, the average value of the 5 temperature values ​​is calculated as the current temperature:

[0013]

[0014] Next, each time a temperature value is collected, the temperature value is put into the FIFO entrance, and the data at the FIFO exit is removed, and the average value is calculated for display. The data collection cycle is set, and the temperature value calculation principle is as follows:

[0015]

[0016] Among them, T i is the temperature value collected for the i-th time.

[0017] Furthermore, the temperature of the vehicle-mounted intelligent cup holder is controlled according to the preset temperature and the current temperature value, including:

[0018] Set the temperature and control the display screen through the SPI protocol to display the current temperature and the set temperature value in real time;

[0019] Use PID algorithm to adjust the temperature, which is divided into front-end control and PID adjustment stages;

[0020] The initial PWM duty cycle is 100% for front-end control, and the system works at full load:

[0021] PWM0=100%,T(t)-T set >5;

[0022] When the difference between the target water temperature and the actual water temperature is less than 5 degrees, the PID adjustment stage is entered. The temperature control principle is as follows:

[0023]

[0024] T(t)-T set ≤5;

[0025] Among them, a0, b0 and c0 are proportional, integral and differential coefficients respectively, and the range is 0 to 1; (T set -T(t)) is the deviation between the target temperature and the current temperature value; the duty cycle of the voltage input to the semiconductor refrigeration chip is adjusted according to the temperature deviation.

[0026] Furthermore, the receiving of the ambient light mode selected by the user through the user interface and controlling the color, brightness and display effect of the ambient light include:

[0027] The cooling intensity of the cooling module is adjusted according to the temperature comparison result, and the color, brightness and display effect of the ambient light are controlled according to the two modes of the ambient light selected by the user through the user interface:

[0028] Mode 1 of the atmosphere light is used to intuitively display the current temperature. The PWM duty cycle control principle of the three channels of the six RGB-LED atmosphere lights is as follows:

[0029]

[0030] Among them, PWM1, PWM2, and PWM3 are red channel, green channel, and blue channel respectively. The brightness of the atmosphere light is proportional to the current temperature; a1, a2, and a3 are control coefficients, and their values ​​are all in the range of 0 to 0.5;

[0031] Mode 2 of the atmosphere light is used to rhythmically display the current temperature. The control principle of the three channels of the RGB-LED atmosphere light is as follows:

[0032]

[0033] Among them, PWM1, PWM2, and PWM3 are red channel, green channel, and blue channel respectively. The brightness and color of the atmosphere light are related to the temperature change value. The temperature is collected every 0.5 seconds. m1, m2, and m3 are the proportional coefficients of the three channels, and their values ​​are all in the range of 1 to 10. b1, b2, and b3 are control coefficients, and their values ​​are all in the range of 0 to 0.5.

[0034] Furthermore, before collecting the bottom temperature of the vehicle-mounted intelligent cup holder through the temperature sensor module and processing it to obtain the current temperature value, it also includes:

[0035] Get 5V power through the on-board 12V power supply through the DC to DC power conversion chip;

[0036] The 5V power supply is used to power the cooling drive circuit. The 5V power supply is used to obtain a 3.3V power supply through a low voltage drop linear regulator to power the microcontroller, Bluetooth module, OLED display, temperature sensor and ambient light drive circuit.

[0037] In a second aspect, the embodiment of the present application further provides a vehicle-mounted intelligent water cup holder atmosphere light control system with a cooling function, comprising: a microcontroller, a temperature sensor module, a power management module, a user interface, an OLED display screen, an atmosphere light driving circuit and an RGB-LED atmosphere light; the microcontroller is connected to the temperature sensor module, the power management module, the user interface, the OLED display screen, the atmosphere light driving circuit, and the atmosphere light driving circuit is connected to the RGB-LED atmosphere light;

[0038] The temperature sensor module collects the bottom temperature of the vehicle-mounted smart cup holder and processes it to obtain the current temperature value;

[0039] The temperature of the vehicle-mounted smart cup holder is controlled according to the preset temperature and the current temperature value;

[0040] Receive the ambient light mode selected by the user through the user interface, and control the color, brightness and display effect of the ambient light.

[0041] Furthermore, it also includes a refrigeration drive circuit, a semiconductor refrigeration chip and a Bluetooth module; the microcontroller is connected to the refrigeration drive circuit, the semiconductor refrigeration chip and the Bluetooth module;

[0042] The user interface is provided with a temperature control button and an atmosphere light mode selection button.

[0043] Furthermore, the cup holder structure of the vehicle-mounted smart cup holder is cylindrical; the outer side of the cup holder of the vehicle-mounted smart cup holder is composed of the RGB-LED atmosphere light and a translucent outer shell, and the interior of the outer shell contains 6 RGB-LED atmosphere lights; the temperature sensor module and the semiconductor refrigeration sheet are arranged at the bottom of the cup holder.

[0044] In a third aspect, an embodiment of the present application further provides a computer device, including: a memory and one or more processors;

[0045] The memory is used to store one or more programs;

[0046] When the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned method for controlling the atmosphere light of a vehicle-mounted intelligent cup holder with a cooling function.

[0047] In a fourth aspect, an embodiment of the present application further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute a method for controlling an atmosphere light of a vehicle-mounted intelligent cup holder with a cooling function as described above.

[0048] The embodiment of the present application collects the bottom temperature of the vehicle-mounted smart cup holder through a temperature sensor module and processes it to obtain the current temperature value; controls the temperature of the vehicle-mounted smart cup holder according to the preset temperature and the current temperature value; receives the ambient light mode selected by the user through the user interface, controls the color, brightness and display effect of the ambient light; realizes intelligent control of the temperature of the cup holder, and integrates the design of the ambient light. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 This is a flow chart of a method for controlling an atmosphere light of a vehicle-mounted intelligent cup holder with a cooling function provided in an embodiment of the present application;

[0050] Figure 2It is a structural schematic diagram of a vehicle-mounted intelligent cup holder atmosphere light control system with a cooling function provided in an embodiment of the present application;

[0051] Figure 3 It is a schematic diagram of the structure of an on-board smart cup holder with a cooling function and an atmosphere light control system of an on-board smart cup holder provided in an embodiment of the present application;

[0052] Figure 4 It is a circuit structure diagram of a power management module of a vehicle-mounted intelligent cup holder atmosphere light control system with a cooling function provided in an embodiment of the present application;

[0053] Figure 5 It is a structural schematic diagram of a refrigeration drive circuit of a vehicle-mounted intelligent cup holder atmosphere light control system with refrigeration function provided in an embodiment of the present application;

[0054] Figure 6 It is a structural schematic diagram of an atmosphere light driving circuit of an on-vehicle intelligent cup holder atmosphere light control system with a cooling function provided in an embodiment of the present application;

[0055] Figure 7 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0057] The vehicle-mounted intelligent water cup holder atmosphere light control method with cooling function provided in the embodiment can be executed by the vehicle-mounted intelligent water cup holder atmosphere light control system with cooling function, and the vehicle-mounted intelligent water cup holder atmosphere light control system with cooling function can be implemented by software and / or hardware, and integrated in the vehicle-mounted intelligent water cup holder atmosphere light control device with cooling function. Among them, the vehicle-mounted intelligent water cup holder atmosphere light control device with cooling function can be a computer or other equipment.

[0058] Figure 1 This is a flow chart of a method for controlling a vehicle-mounted intelligent cup holder atmosphere light with a cooling function provided by an embodiment of the present application. Figure 1 , the method comprises the following steps:

[0059] 100. The bottom temperature of the vehicle-mounted intelligent cup holder is collected and processed by the temperature sensor module to obtain the current temperature value.

[0060] Optionally, the vehicle-mounted intelligent water cup holder atmosphere light system uses a temperature sensor module with an IIC interface to perform real-time collection and processing of the temperature at the bottom of the cup. Set up a memory with a first-in-first-out (FIFO) structure of length 5, which has the characteristic that the data that enters the memory first overflows first. When 5 temperature data are not collected, the temperature is displayed as 0. When 5 data are collected for the first time, the average value of the 5 temperature values ​​is calculated as the current temperature. Each subsequent temperature value is collected, the temperature value is placed in the FIFO entrance, and the data at the FIFO exit is removed, and the average value is calculated and displayed. The data collection cycle is set to 0.5 seconds. The temperature value calculation principle is as follows:

[0061] T(t) = 0;

[0062]

[0063] Among them, T i is the temperature value collected for the i-th time.

[0064] 200. The vehicle-mounted intelligent cup holder is temperature controlled according to the preset temperature and the current temperature value.

[0065] Optionally, the user can set the temperature through key input or Bluetooth APP. The system controls the OLED display screen through the SPI protocol to display the current temperature and set temperature value in real time. The system's cooling technology uses the Peltier effect, which describes the heat absorption or heat release phenomenon that occurs at the node when direct current passes through a loop composed of two different conductive materials. Through the heat absorption effect, the temperature at the joint will decrease and absorb external heat. The system's temperature regulation uses the PID algorithm, which is divided into the front-end control and PID regulation stages. Due to the large difference between the initial target water temperature and the actual water temperature, in order to speed up the adjustment of the water temperature, the PWM duty cycle is 100% for front-end control. The system works at full load. When the difference between the target water temperature and the actual water temperature is less than 5 degrees, it enters the PID regulation stage. The temperature control principle is as follows:

[0066] PWM0=100%,T(t)-T set >5;

[0067]

[0068] T(t)-Tset ≤5;

[0069] Among them, a0, b0 and c0 are proportional, integral and differential coefficients respectively, and the range is 0 to 1; (T set -T(t)) is the deviation between the target temperature and the current temperature value; the duty cycle of the voltage input to the semiconductor refrigeration chip is adjusted according to the temperature deviation.

[0070] 300. Receive an ambient light mode selected by a user through a user interface, and control the color, brightness, and display effect of the ambient light.

[0071] Optionally, the temperature of the liquid at the bottom of the cup is detected in real time through a temperature sensor, and the detected temperature is compared with the target temperature set by the user. The cooling intensity of the cooling module is adjusted according to the comparison result. At the same time, the color, brightness and display effect of the atmosphere light are controlled according to the two modes of the atmosphere light selected by the user through the user interface. Mode 1 of the atmosphere light is used to intuitively display the current temperature. The PWM duty cycle control principle of the three channels of the six RGB-RGB atmosphere lights is as follows:

[0072]

[0073] Among them, PWM1, PWM2, and PWM3 are red channel, green channel, and blue channel respectively. The brightness of the atmosphere light is proportional to the current temperature; a1, a2, and a3 are control coefficients, and their values ​​are all in the range of 0 to 0.5;

[0074] Mode 2 of the atmosphere light is used to rhythmically display the current temperature. The control principle of the three channels of the RGB-LED atmosphere light is as follows:

[0075]

[0076] Among them, PWM1, PWM2, and PWM3 are red channel, green channel, and blue channel respectively. The brightness and color of the atmosphere light are related to the temperature change value. The temperature is collected every 0.5 seconds. m1, m2, and m3 are the proportional coefficients of the three channels, and their values ​​are all in the range of 1 to 10. b1, b2, and b3 are control coefficients, and their values ​​are all in the range of 0 to 0.5.

[0077] Optionally, before collecting the bottom temperature of the vehicle-mounted intelligent cup holder through the temperature sensor module and processing it to obtain the current temperature value, the method further includes:

[0078] The 5V power supply is obtained by the DC-to-DC power conversion chip through the on-board 12V power supply; the 5V power supply is used to power the refrigeration drive circuit, and the 5V power supply is used to obtain a 3.3V power supply through a low-voltage difference linear regulator to power the microcontroller, Bluetooth module, OLED display, temperature sensor and ambient light drive circuit.

[0079] Based on the above examples, please refer to Figure 2 , an embodiment of the present application provides a vehicle-mounted intelligent cup holder atmosphere light control system with a cooling function, and the vehicle-mounted intelligent cup holder atmosphere light control system with a cooling function specifically includes: a microcontroller, a temperature sensor module, a power management module, a user interface, an OLED display screen, an atmosphere light driving circuit and an RGB-LED atmosphere light; the microcontroller is connected to the temperature sensor module, the power management module, the user interface, the OLED display screen, the atmosphere light driving circuit, and the atmosphere light driving circuit is connected to the RGB-LED atmosphere light.

[0080] Among them, the bottom temperature of the vehicle-mounted smart cup holder is collected and processed through the temperature sensor module to obtain the current temperature value; the temperature of the vehicle-mounted smart cup holder is controlled according to the preset temperature and the current temperature value; the ambient light mode selected by the user through the user interface is received, and the color, brightness and display effect of the ambient light are controlled.

[0081] In some embodiments, it also includes a refrigeration drive circuit, a semiconductor refrigeration sheet and a Bluetooth module; the microcontroller is connected to the refrigeration drive circuit, the semiconductor refrigeration sheet and the Bluetooth module; the user interface is provided with a temperature control button and an atmosphere light mode selection button.

[0082] In some embodiments, please refer to Figure 3 The cup holder structure of the vehicle-mounted intelligent cup holder is cylindrical; the outer side of the cup holder of the vehicle-mounted intelligent cup holder is composed of the RGB-LED atmosphere light and a translucent shell, and the inside of the shell contains 6 RGB-LED atmosphere lights; the temperature sensor module and the semiconductor refrigeration sheet are arranged at the bottom of the cup holder.

[0083] In some embodiments, the power supply of the system is provided by a 12V power supply on the vehicle, and the 12V power supply is converted into 5V and 3.3V power supplies by a power management module. The structure of the power management module is as follows: Figure 4 As shown. Among them, 5V is used to power the cooling drive circuit, and 3.3V is used to power the MCU, Bluetooth module, OLED module, temperature sensor, and atmosphere light drive circuit. The circuit system structure of the smart cup holder atmosphere light is shown as follows: Figure 1As shown in the figure, it consists of a microcontroller, a Bluetooth module, a temperature control button, a refrigeration drive circuit, a semiconductor refrigeration chip, an atmosphere light drive circuit, 6 RGB-LED atmosphere lights, a power management module, a temperature sensor and an OLED display. The semiconductor refrigeration chip is installed at the bottom of the smart water cup holder, as shown in the figure. Figure 3 As shown in . At the same time, the control circuit part is also installed at the bottom of the cup holder, and 6 RGB-LED lights are installed around the side of the cup holder.

[0084] Among them, the purpose of the power management module is to generate 5V and 3.3V power supplies, and a DC-DC chip is used to convert a 12V power supply into a 5V power supply, which has the advantage of low power consumption. A DC-DC (model TPS5430) and an LDO (model XC6206) are connected in series to generate a 3.3V power supply, which has lower power ripple.

[0085] In some embodiments, the temperature is set by key input or Bluetooth APP, where the key control part includes 2 independent keys, namely GPIO1 and GPIO2. When the GPIO1 key is pressed, the preset temperature increases by 0.1 degrees Celsius, and when the GPIO2 key is pressed, the preset temperature decreases by 0.1 degrees Celsius. When no key is pressed within 3 seconds, the MCU sets the temperature value at this time to the preset temperature. The Bluetooth APP connects to the MCU through the Bluetooth protocol, and can set the temperature with a resolution of 0.1 degrees Celsius, and can control the display mode of the atmosphere light.

[0086] Exemplarily, when the system is turned on, the program is first initialized, the IIC, SPI, GPIO, serial port, and PWM peripherals that need to be run are enabled and the initial parameters are configured, and then the OLED display is controlled to display the previously preset temperature value. When the user configures the system through buttons or Bluetooth, including setting the temperature and the atmosphere light mode, the system performs cooling and controls the atmosphere light to display different effects in real time. Specifically, the current water temperature is measured by the temperature sensor module, compared with the target water temperature, and the working mode is controlled. The OLED display displays the temperature and the system starts to control the temperature adjustment to detect whether the target water temperature is reached. If the target water temperature is reached, the system controls to enter the insulation mode and issues a notification. If the target water temperature is not reached, the system drives the temperature adjustment.

[0087] Among them, the refrigeration drive circuit is as follows Figure 5As shown in the figure, it consists of an NPN transistor, a current limiting resistor and a semiconductor refrigeration film. The PWM1 signal is a periodic rectangular wave, in which the low level amplitude is 0V and the high level amplitude is 3.3V. Its duty cycle can be adjusted by the MCU. When the PWM1 signal outputs a high level, the transistor is turned on, and the current flows from the power supply through the current limiting resistor to the refrigeration film, so that the refrigeration film performs cooling work. When the PWM1 signal outputs a low level, the transistor is turned off, and the refrigeration film stops working. By setting the duty cycle of the PWM1 signal, the on-time and off-time ratio of the semiconductor refrigeration film can be set, thereby controlling the refrigeration power of the refrigeration film.

[0088] In some embodiments, the atmosphere light has two display modes, namely, an intuitive display of the current temperature mode and a rhythmic display of the current temperature mode. In the intuitive display of the current temperature mode, the brightness and color of the atmosphere light change with the current real-time temperature value. In the rhythmic display of the current temperature mode, the brightness and color of the atmosphere light change with the temperature change rate.

[0089] As described above, the embodiment of the present application collects the bottom temperature of the vehicle-mounted smart cup holder through the temperature sensor module and processes it to obtain the current temperature value; controls the temperature of the vehicle-mounted smart cup holder according to the preset temperature and the current temperature value; receives the ambient light mode selected by the user through the user interface, controls the color, brightness and display effect of the ambient light; realizes intelligent control of the temperature of the cup holder, and integrates the design of the ambient light.

[0090] The vehicle-mounted smart cup holder atmosphere light control system with cooling function provided in the embodiment of the present application can be used to execute the vehicle-mounted smart cup holder atmosphere light control method with cooling function provided in the above embodiment, and has corresponding functions and beneficial effects.

[0091] The embodiment of the present application also provides a computer device, which can integrate the vehicle-mounted intelligent cup holder atmosphere light control system with cooling function provided in the embodiment of the present application. Figure 7 Schematic diagram of a computer device provided in an embodiment of the present application. Figure 7 The computer device includes: an input device 33, an output device 34, a memory 32 and one or more processors 31; the memory 32 is used to store one or more programs; when the one or more programs are executed by the one or more processors 31, the one or more processors 31 implement the vehicle-mounted intelligent water cup holder atmosphere light control method with cooling function as provided in the above embodiment. The input device 33, the output device 34, the memory 32 and the processor 31 can be connected by a bus or other means, Figure 7 The example of connecting through bus is taken in the following.

[0092] The processor 31 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 32, that is, realizes the above-mentioned vehicle-mounted intelligent cup holder atmosphere light control method with cooling function.

[0093] The computer device provided above can be used to execute the vehicle-mounted intelligent cup holder atmosphere light control method with cooling function provided in the above embodiment, and has corresponding functions and beneficial effects.

[0094] An embodiment of the present application also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute a method for controlling an atmosphere light of a vehicle-mounted smart cup holder with a cooling function. The method for controlling an atmosphere light of a vehicle-mounted smart cup holder with a cooling function comprises: collecting the bottom temperature of the vehicle-mounted smart cup holder through a temperature sensor module and processing the collected data to obtain a current temperature value; controlling the temperature of the vehicle-mounted smart cup holder according to a preset temperature and a current temperature value; and receiving a mode of the atmosphere light selected by a user through a user interface to control the color, brightness and display effect of the atmosphere light.

[0095] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape devices; computer device memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer device in which the program is executed, or may be located in a different second computer device, which is connected to the first computer device via a network (such as the Internet). The second computer device can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (for example, in different computer devices connected via a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.

[0096] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application is not limited to the above-mentioned method for controlling the atmosphere light of the vehicle-mounted smart cup holder with a cooling function, but can also execute the related operations in the method for controlling the atmosphere light of the vehicle-mounted smart cup holder with a cooling function provided in any embodiment of the present application.

[0097] The vehicle-mounted smart cup holder atmosphere light control system with cooling function, storage medium and computer equipment provided in the above embodiments can execute the vehicle-mounted smart cup holder atmosphere light control method with cooling function provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the vehicle-mounted smart cup holder atmosphere light control method with cooling function provided in any embodiment of the present application.

[0098] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

Claims

1. A method for controlling an atmosphere light of a vehicle-mounted intelligent cup holder with a cooling function, characterized in that: The method comprises the following steps: The bottom temperature of the vehicle-mounted smart cup holder is collected and processed through the temperature sensor module to obtain the current temperature value; The temperature of the vehicle-mounted smart cup holder is controlled according to the preset temperature and the current temperature value; Receive the ambient light mode selected by the user through the user interface, and control the color, brightness and display effect of the ambient light.

2. The method for controlling the atmosphere light of the vehicle-mounted intelligent cup holder with cooling function according to claim 1, characterized in that: The temperature sensor module collects the bottom temperature of the vehicle-mounted intelligent cup holder and processes it to obtain the current temperature value, including: A temperature sensor module with an IIC interface is used to collect and process the bottom temperature of the vehicle-mounted smart cup holder; Set a memory with a FIFO structure whose length is the set length value. When 5 temperature data are not collected, the temperature is displayed as 0: T(t) = 0; When 5 data are collected for the first time, the average value of the 5 temperature values ​​is calculated as the current temperature: Next, each time a temperature value is collected, the temperature value is put into the FIFO entrance, and the data at the FIFO exit is removed, and the average value is calculated for display. The data collection cycle is set, and the temperature value calculation principle is as follows: Among them, T i is the temperature value collected for the i-th time.

3. The method for controlling the atmosphere light of the vehicle-mounted intelligent cup holder with cooling function according to claim 1, characterized in that: The method of controlling the temperature of the vehicle-mounted intelligent cup holder according to the preset temperature and the current temperature value includes: Set the temperature and control the display screen through the SPI protocol to display the current temperature and the set temperature value in real time; Use PID algorithm to adjust the temperature, which is divided into front-end control and PID adjustment stages; The initial PWM duty cycle is 100% for front-end control, and the system works at full load: PWM0=100%,T(t)-T set >5; When the difference between the target water temperature and the actual water temperature is less than 5 degrees, the PID adjustment stage is entered. The temperature control principle is as follows: T(t)-T set ≤5; Among them, a0, b0 and c0 are proportional, integral and differential coefficients respectively, and the range is 0 to 1; (T set -T(t)) is the deviation between the target temperature and the current temperature value; the duty cycle of the voltage input to the semiconductor refrigeration chip is adjusted according to the temperature deviation.

4. The method for controlling the atmosphere light of the vehicle-mounted intelligent cup holder with cooling function according to claim 1, characterized in that: The receiving the ambient light mode selected by the user through the user interface and controlling the color, brightness and display effect of the ambient light includes: The cooling intensity of the cooling module is adjusted according to the temperature comparison result, and the color, brightness and display effect of the ambient light are controlled according to the two modes of the ambient light selected by the user through the user interface: Mode 1 of the atmosphere light is used to intuitively display the current temperature. The PWM duty cycle control principle of the three channels of the six RGB-LED atmosphere lights is as follows: Among them, PWM1, PWM2, and PWM3 are red channel, green channel, and blue channel respectively. The brightness of the atmosphere light is proportional to the current temperature; a1, a2, and a3 are control coefficients, and their values ​​are all in the range of 0 to 0.5; Mode 2 of the atmosphere light is used to rhythmically display the current temperature. The control principle of the three channels of the RGB-LED atmosphere light is as follows: Among them, PWM1, PWM2, and PWM3 are red channel, green channel, and blue channel respectively. The brightness and color of the atmosphere light are related to the temperature change value. The temperature is collected every 0.5 seconds. m1, m2, and m3 are the proportional coefficients of the three channels, and their values ​​are all in the range of 1 to 10. b1, b2, and b3 are control coefficients, and their values ​​are all in the range of 0 to 0.

5.

5. The method for controlling the atmosphere light of the vehicle-mounted intelligent cup holder with cooling function according to claim 1, characterized in that: Before collecting the bottom temperature of the vehicle-mounted intelligent cup holder through the temperature sensor module and processing it to obtain the current temperature value, the method further includes: Get 5V power through the on-board 12V power supply through the DC to DC power conversion chip; The 5V power supply is used to power the cooling drive circuit. The 5V power supply is used to obtain a 3.3V power supply through a low voltage drop linear regulator to power the microcontroller, Bluetooth module, OLED display, temperature sensor and ambient light drive circuit.

6. A vehicle-mounted intelligent water cup holder atmosphere light control system with cooling function, characterized in that: include: Microcontroller, temperature sensor module, power management module, user interface, OLED display, ambient light driver circuit and RGB-LED ambient light; The microcontroller is connected to the temperature sensor module, the power management module, the user interface, the OLED display screen, and the atmosphere light driving circuit, and the atmosphere light driving circuit is connected to the RGB-LED atmosphere light; The bottom temperature of the vehicle-mounted smart cup holder is collected and processed through the temperature sensor module to obtain the current temperature value; The temperature of the vehicle-mounted smart cup holder is controlled according to the preset temperature and the current temperature value; Receive the ambient light mode selected by the user through the user interface, and control the color, brightness and display effect of the ambient light.

7. The vehicle-mounted intelligent water cup holder atmosphere light control system with cooling function according to claim 6, characterized in that: It also includes a refrigeration drive circuit, a semiconductor refrigeration chip and a Bluetooth module; the microcontroller is connected to the refrigeration drive circuit, the semiconductor refrigeration chip and the Bluetooth module; The user interface is provided with a temperature control button and an atmosphere light mode selection button.

8. The vehicle-mounted intelligent water cup holder atmosphere light control system with cooling function according to claim 7, characterized in that: The cup holder structure of the vehicle-mounted intelligent cup holder is cylindrical; the outer side of the cup holder of the vehicle-mounted intelligent cup holder is composed of the RGB-LED ambient light and a light-transmitting shell, and the inside of the shell contains 6 RGB-LED ambient lights; The temperature sensor module and the semiconductor cooling sheet are arranged at the bottom of the cup holder.

9. A computer device, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement a method for controlling an atmosphere light of a vehicle-mounted smart cup holder with a cooling function as described in any one of claims 1-5.

10. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions, when executed by a computer processor, are used to execute a method for controlling an atmosphere light of a vehicle-mounted intelligent cup holder with a cooling function as described in any one of claims 1 to 5.