Car window control method, system and equipment based on sliding perception and medium
Through sliding perception-based window control methods and systems, the problem of poor intelligent effects of traditional window control is solved, intelligent linkage control between windows and ambient lights is realized, and the intelligent level of on-board windows is improved.
Patent Information
- Application Number
- CN202411841586.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-03-28
AI Technical Summary
Traditional car windows mainly use buttons or wireless power switches, which lack the function of linking with ambient lights and intelligent perception, resulting in poor intelligence effect.
Using sliding perception, the window control method and system is used to obtain the capacitance value through the touch panel, the MCU judges the double-click action and enters the running state, obtains the touch position through the proportional calculation algorithm, and controls the atmosphere light and motor drive module to realize intelligent control of the window.
The linkage control between the window and the ambient light is realized, and the window switch ratio and the ambient light color are adjusted in real time according to the sliding position of the finger, improving the intelligent level of vehicle-mounted window control.
Smart Images

Figure CN119711869A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of vehicle control technology, and in particular, to a vehicle window control method, system, device, and medium based on sliding perception. Background Art
[0002] As cars develop towards intelligence, people have higher demands for the lighting effects displayed inside and outside the car and the interactive capabilities of the car. Traditional car windows are mainly controlled by various forms of buttons for electric opening and closing, or wirelessly, etc., lacking the function of linkage with the currently popular ambient lights and intelligent perception, and the intelligent effect is poor. Summary of the invention
[0003] The embodiments of the present application provide a window control method, system, device and medium based on sliding perception to solve the problem that traditional windows are mainly controlled by various forms of buttons for electric opening and closing, or wirelessly, and have poor intelligent effects.
[0004] In a first aspect, an embodiment of the present application provides a window control method based on sliding perception, which is applied to an intelligent light control system, wherein the intelligent control system includes: an MCU, a power management module, a touch panel, a motor drive module, a motor, and an ambient light; the method includes the following steps:
[0005] The capacitance value is obtained through the touch panel and transmitted to the MCU to instruct the MCU to enter the running state after determining the double-click action;
[0006] The MCU obtains the touch position through a proportional calculation algorithm;
[0007] According to the touch position, the MCU controls the ambient light to follow the touch position, and controls the motor drive module to drive, so as to control the motor to drive the window to rotate to the corresponding position;
[0008] Upon receiving a signal that the touch time of the touch panel reaches a first set time, the MCU controls the motor driving module to drive the motor to drive the window to rotate to an initial position;
[0009] When no operation instruction is received within the second set time, the MCU enters a sleep state.
[0010] In some embodiments, the acquiring the capacitance value through the touch panel and transmitting it to the MCU to instruct the MCU to enter the running state after determining the double-click action includes:
[0011] The touch panel obtains a capacitance value and sends it to the MCU;
[0012] When the MCU obtains the double-click state through the double-click judgment algorithm, the MCU enters the running state. The double-click judgment algorithm model is as follows:
[0013]
[0014] Among them, f is the running state flag signal. When f is greater than 1, the MCU control system enters the running state, otherwise the system enters the dormant state; t is the sampling period; C t,i is the capacitance value of the ith channel at the tth moment, and the product of the collected capacitance values at the two moments is used to determine whether a double-click action occurs; the touch panel has 10 capacitance detection channels; and C is the set double-click judgment algorithm threshold.
[0015] In some embodiments, the MCU obtains the touch position through a proportional calculation algorithm, including:
[0016] The capacitance data collected by the touch panel is input into the MCU via the LIN bus;
[0017] When the finger slides, it may touch the areas corresponding to several channels, and the capacitance of the corresponding channels increases;
[0018] Due to the different contact areas, the capacitance changes of different channels are also different. A proportional calculation algorithm is used to locate the touch position. The algorithm model is as follows:
[0019]
[0020] Among them, d x is the position of the finger touch; i is the touch channel with the i-th capacitance increase, ranging from 1 to 10; C1, C2, and C3 are the capacitances of the three channels touched, respectively, and d is the distance between different channels.
[0021] In some embodiments, according to the touch position, the MCU controls the ambient light to follow the touch position, and controls the motor drive module to drive, so as to control the motor to drive the window to rotate to the corresponding position, including:
[0022] According to the touch position, the MCU controls the atmosphere lights to be arranged linearly, the spacing between each light is the same, and the light board is parallel to the touch board;
[0023] When the calculated touch point is between any two of the atmosphere lights, the atmosphere light on the left of the touch point displays red, and the atmosphere light on the right displays green;
[0024] The MCU sends a command to the motor driving module to drive the motor to rotate so that the ratio of the open part to the closed part of the window is the same as the ratio of the distance between the touch point and the two sides of the touch panel.
[0025] In some embodiments, when the touch time of the touch panel reaches a first set time, the MCU controls the motor driving module to drive the motor to drive the window to rotate to an initial position, including:
[0026] When receiving the touch time of the touch panel reaching a first set time, the MCU controls the motor driving module to drive, so as to control the motor to rotate and close the window;
[0027] When the touch panel receives a touch signal during the closing process, the window will stop closing and the MCU will return to the running state;
[0028] The algorithm model for detecting long press operation of any channel is as follows:
[0029]
[0030] Wherein, k is a long-press operation detection flag signal, and when it is greater than or equal to 1, it indicates that the current long-press reaches the first set time; C t,i is the capacitance of the ith channel at the tth moment, and C0 is the set threshold.
[0031] In a second aspect, the embodiment of the present application further provides a window control system based on sliding perception, including: an MCU, a power management module, a touch panel, a motor drive module, a motor, and an atmosphere light; the power management module is used for power supply;
[0032] The touch panel acquires a capacitance value and transmits it to the MCU to instruct the MCU to enter a running state after determining a double-click action;
[0033] The MCU obtains the touch position through a proportional calculation algorithm;
[0034] According to the touch position, the MCU controls the ambient light to follow the touch position, and controls the motor drive module to drive, so as to control the motor to drive the window to rotate to the corresponding position;
[0035] Upon receiving a signal that the touch time of the touch panel reaches a first set time, the MCU controls the motor driving module to drive the motor to drive the window to rotate to an initial position;
[0036] When no operation instruction is received within the second set time, the MCU enters a sleep state.
[0037] In some embodiments, the plurality of atmosphere lights are arranged linearly; the input interface of the first atmosphere light is connected to the control interface of the MCU, the output interface of the first atmosphere light is connected to the input interface of the second atmosphere light, and the output interface of the second atmosphere light is connected to the input interface of the third atmosphere light, so as to complete the electrical connection of the plurality of atmosphere lights;
[0038] The linear atmosphere light group formed by a plurality of atmosphere lights has the same length as the touch panel, and the distances between adjacent atmosphere lights are the same.
[0039] In some embodiments, the MCU is connected to the motor drive module via a CAN bus, the MCU is connected to the touch panel via a LIN bus, and the MCU is connected to the atmosphere light via a universal pin.
[0040] In a third aspect, an embodiment of the present application further provides a computer device, including: a memory and one or more processors;
[0041] The memory is used to store one or more programs;
[0042] When the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned vehicle window control method based on sliding perception.
[0043] 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 vehicle window control method based on sliding perception as described above.
[0044] The embodiment of the present application links the touchpad, ambient light and vehicle window. When the finger slides on the touchpad, the ambient light part will show the touch follow effect, and different colors will be displayed on both sides of the touch point. According to the different sliding positions of the finger, the circuit system controls the window to open to different degrees, thereby improving the intelligence of the vehicle window control. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 is a flow chart of a vehicle window control method based on sliding perception provided in an embodiment of the present application;
[0046] Figure 2 It is an operation logic diagram of an intelligent control system of a vehicle window control method based on sliding perception provided in an embodiment of the present application;
[0047] Figure 3 This is a schematic diagram of an atmosphere light board composed of 10 smart LED lights based on sliding perception provided in an embodiment of the present application;
[0048] Figure 4 It is a schematic diagram of an ambient light panel and a sliding touch panel of a vehicle window control method based on sliding perception provided in an embodiment of the present application;
[0049] Figure 5 It is a structural schematic diagram of a window control system based on sliding perception provided in an embodiment of the present application;
[0050] Figure 6 It is a schematic diagram of the structure of a power management module of a window control system based on sliding perception provided in an embodiment of the present application;
[0051] Figure 7 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] 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.
[0053] The sliding-sensing-based window control method provided in the embodiment can be executed by a sliding-sensing-based window control system, which can be implemented by software and / or hardware and integrated in a sliding-sensing-based window control device. The sliding-sensing-based window control device can be a computer or other device.
[0054] Figure 1 A flow chart of a window control method based on sliding perception provided in an embodiment of the present application. Figure 1 and Figure 2 The intelligent control system includes: an MCU, a power management module, a touch panel, a motor drive module, a motor and an atmosphere light; the method includes the following steps:
[0055] 100. Acquire a capacitance value through the touch panel and transmit it to the MCU to instruct the MCU to enter a running state after determining a double-click action.
[0056] Specifically, the touch panel obtains a capacitance value and sends it to the MCU; when the MCU obtains a double-click state through a double-click judgment algorithm, the MCU enters a running state, and the double-click judgment algorithm model is as follows:
[0057]
[0058] Among them, f is the running state flag signal. When f is greater than 1, the MCU control system enters the running state, otherwise the system enters the dormant state; t is the sampling period; C t,i is the capacitance value of the ith channel at the tth moment, and the product of the collected capacitance values at the two moments is used to determine whether a double-click action occurs; the touch panel has 10 capacitance detection channels; and C is the set double-click judgment algorithm threshold.
[0059] 200. The MCU obtains the touch position through a proportional calculation algorithm.
[0060] Specifically, the capacitance data collected by the touch panel is input to the MCU through the LIN bus; when the finger slides, it may touch the area corresponding to several channels, and the capacitance of the corresponding channel increases; due to different contact areas, the capacitance change values of different channels are also different, and the proportional calculation algorithm is used to locate the touch position. The algorithm model is as follows:
[0061]
[0062] Among them, d x is the position of the finger touch; i is the touch channel with the i-th capacitance increase, ranging from 1 to 10; C1, C2, and C3 are the capacitances of the three channels touched, respectively, and d is the distance between different channels.
[0063] 300. According to the touch position, the MCU controls the ambient light to follow the touch position and controls the motor drive module to drive, so as to control the motor to drive the window to rotate to a corresponding position.
[0064] Specifically, according to the touch position, the MCU controls the atmosphere lights to be arranged linearly, the spacing between each light is the same, and the light board is parallel to the touch board; when the calculated touch point is between any two of the atmosphere lights, the atmosphere light on the left of the touch point displays red, and the atmosphere light on the right displays green; the MCU sends a command to the motor drive module to drive the motor to rotate so that the ratio of the open part to the closed part of the window is the same as the ratio of the distance from the touch point to the two sides of the touch board.
[0065] For example, please refer to Figure 3The atmosphere light uses smart LED lights, and there are 10 smart LED lights. The 10 smart LED lights are arranged linearly, with the same spacing between each light, and the light board is parallel to the touch panel. When the calculated touch point is between two smart LED lights, the atmosphere light on the left side of the position displays red, and the right side displays green, achieving the effect of real-time following the touch point display. At the same time, the MCU sends a command to the motor drive module to drive the motor to rotate, so that the ratio of the open part to the closed part of the window is the same as the ratio of the distance between the two sides of the touch point and the two sides of the touch panel, so as to achieve the effect of linkage between touch and atmosphere lights and vehicle windows.
[0066] 400. When receiving a signal that the touch time of the touch panel reaches a first set time, the MCU controls the motor driving module to drive the motor to drive the vehicle window to rotate to an initial position.
[0067] Specifically, when the touch time of the touch panel reaches a first set time, the MCU controls the motor drive module to drive, so as to control the motor to rotate to close the window; when the touch panel receives a touch signal during closing, the window is stopped from closing, and the MCU returns to the running state; the algorithm model for detecting the long press operation of any channel is as follows:
[0068]
[0069] Wherein, k is a long-press operation detection flag signal, and when it is greater than or equal to 1, it indicates that the current long-press reaches the first set time; C t,i is the capacitance of the ith channel at the tth moment, and C0 is the set threshold.
[0070] Exemplarily, the first set time is 3 seconds. When any channel is pressed for more than 3 seconds, the MCU controls the motor to rotate and slowly close the window. When the touch pad is touched by a finger during closing, the window stops closing and the system returns to the running state, waiting for the next operation.
[0071] 500. When no operation instruction is received within a second set time, the MCU enters a sleep state.
[0072] Exemplarily, the second set time is 10 seconds, and the MCU performs precise timing through a timer interrupt. When the touchpad has not been operated for 10 seconds, the MCU control system enters sleep mode. At this time, the window maintains the current switch state, and the atmosphere light enters the effect demonstration mode. In this demonstration mode, the atmosphere light presents a flowing water effect to improve the viewing experience of the entire control system.
[0073] For example, please refer to Figure 2, double-click the touchpad twice to wake up the system, and the system controls the window motor to move to the corresponding position according to the sliding position; at the same time, when the sliding touchpad is pressed and held for 3 seconds, the window is closed, the system determines that there is touch, and the ambient light lights up with the sliding touchpad. The system determines that there is no touch, and the system controls the window motor to move to the corresponding position according to the sliding position; if there is no operation for more than 10 seconds, the system goes into sleep mode.
[0074] On the basis of the above embodiments, an embodiment of the present application provides a window control system based on sliding perception, and the window control system based on sliding perception specifically includes: an MCU, a power management module, a touch panel, a motor drive module, a motor and an ambient light.
[0075] Among them, the touch panel obtains a capacitance value and transmits it to the MCU to instruct the MCU to enter a running state after determining a double-click action; the MCU obtains the touch position through a proportional calculation algorithm; according to the touch position, the MCU controls the ambient light to follow the touch position display, and controls the motor drive module to drive, so as to control the motor to drive the window to rotate to the corresponding position; when the touch time of the touch panel reaches a first set time, the MCU controls the motor drive module to drive, so as to control the motor to drive the window to rotate to an initial position; when no operation instruction is received within a second set time, the MCU enters a sleep state.
[0076] Specifically, Figure 5 As shown in the figure, it consists of a microcontroller (MCU), a capacitive touch chip for the touch panel, a motor driver module, an LED driver module, a LIN driver chip, a slider touch panel, 10 SmartLEDs, a motor, and a power management module. The system is powered by a 12V vehicle power supply, which generates a variety of power supplies with different voltage drops through the power management module to power each module. The structure of the power management module is shown in the figure. Figure 6 As shown. The 12V power supply generates a 5V power supply through the DC-DC module, and the 5V power supply generates a 3.3V power supply through the LDO module. The 12V power supply directly powers the motor driver and LIN driver chip, the 5V power supply powers the LED driver, and the 3.3V power supply is used to power the MCU and touch chip.
[0077] For details, please refer to Figure 6, input 12 volts to the power management module. The power management module is mainly composed of a DC-DC chip and a low-voltage linear regulator (LDO). The total input power of the system is the vehicle-mounted 12V power supply. The 12V power supply is divided into two paths, one of which is directly connected to the motor drive module for power supply and also powers the LIN drive chip. The other generates a 5V power supply through a DC-DC chip. The 5V power supply is further divided into two paths, one of which is used to power the LED driver, and the other outputs a 3.3V power supply through an LDO. The 3.3V power supply is used to power the MCU and capacitive touch chip; among them, the above chips and modules all adopt automotive-grade models.
[0078] Optionally, the DC-DC module model is SCT2450Q, and other automotive-grade DC-DC step-down chips can also be selected. The reference voltage of SCT2450Q is 0.8 volts, and the output voltage value is 5V through the setting of the feedback resistor. The LDO model is TPS79333Q1, and other automotive-grade LDOs with a step-down voltage of 3.3V can also be selected. The 5V power supply generates a 3.3V power supply through the LDO to provide power to the MCU and touch chip.
[0079] Optionally, the model of the automotive-grade MCU is N32A455CEL7, which is connected to the vehicle computer via the CAN bus so that the vehicle computer can control the windows. The LIN bus is used to communicate with the touch chip to obtain the capacitance of different touch channels. The first SmartLed lamp of the atmosphere lamp is connected via a universal pin. The MCU sends data of 10 SmartLed lamps at a time and independently controls the display of the 10 lamps in series.
[0080] Optionally, the atmosphere light enters an effect demonstration mode. When the system enters a sleep mode, the atmosphere light part presents a flowing water effect, and the flowing water light effect is displayed from the left and right ends of the touch point toward the touch point.
[0081] In some embodiments, please refer to Figure 4 , several atmosphere lights are arranged linearly; the input interface of the first atmosphere light is connected to the control interface of the MCU, the output interface of the first atmosphere light is connected to the input interface of the second atmosphere light, and the output interface of the second atmosphere light is connected to the input interface of the third atmosphere light, so as to complete the electrical connection of the several atmosphere lights; the linear atmosphere light group formed by the several atmosphere lights is the same length as the touch panel, and the distance between adjacent atmosphere lights is the same.
[0082] For example, when a finger slides the touch panel, the touch chip outputs the capacitance values of 10 channels to the MCU via the LIN bus. The touch panel is parallel to the ambient light panel and has the same length. The structure is as follows: Figure 3As shown, the connection method of SmartLed lamp is as follows Figure 4 As shown in the figure, the input interface of the first lamp is connected to the control interface of the MCU, and its output interface is connected to the input interface of the second lamp. The output interface of the second lamp is connected to the input interface of the third lamp, and so on, completing the electrical connection of 10 lamps. The MCU uses the double-click judgment algorithm to determine whether there is a double-click action. If there is, the control system enters the running state. In the running state, the MCU obtains the current touch position through the proportional calculation algorithm.
[0083] In some embodiments, the MCU is connected to the motor drive module via a CAN bus, the MCU is connected to the touch panel via a LIN bus, and the MCU is connected to the atmosphere light via a universal pin.
[0084] For example, the operating logic of the system is as follows: Figure 2 As shown, when the MCU obtains the touch position, it compares the current position value with the total length of the touch pad to obtain the proportion of the touch position, and controls the motor drive according to the proportion, so that the ratio of the open part to the closed part of the vehicle window is the same as the touch ratio. At the same time, the MCU controls the SmartLed on both sides of the touch point to display different colors. When the touch pad is pressed for 3 seconds, the MCU controls the window to close slowly. When the touch pad receives a touch action during the window closing, the closing operation is interrupted and the running state is re-entered. When the system is not touched for 10 seconds, the system enters the sleep state, in which the vehicle windows remain in the open and closed state before the sleep state.
[0085] As described above, the embodiment of the present application links the touch pad, ambient light and vehicle window. When the finger slides the touch pad, the ambient light part will show the touch follow effect, and different colors will be displayed on both sides of the touch point. According to the different sliding positions of the finger, the circuit system controls the window to open to different degrees, thereby improving the intelligence of the vehicle window control.
[0086] The window control system based on sliding perception provided in the embodiment of the present application can be used to execute the window control method based on sliding perception provided in the above embodiment, and has corresponding functions and beneficial effects.
[0087] The embodiment of the present application also provides a computer device, which can integrate the sliding perception-based window control system provided by the embodiment of the present application. Figure 7 Schematic diagram of a computer device provided in an embodiment of the present application. Figure 7The 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 window control method based on sliding perception 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.
[0088] 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 window control method based on sliding perception.
[0089] The computer device provided above can be used to execute the vehicle window control method based on sliding perception provided in the above embodiment, and has corresponding functions and beneficial effects.
[0090] An embodiment of the present application also provides a storage medium containing computer executable instructions, which are used to execute a vehicle window control method based on sliding perception when executed by a computer processor. The vehicle window control method based on sliding perception includes: as mentioned above, the embodiment of the present application imports detection standard parameters and trains the OCR optical character recognition model; when it is detected that the label sends a print instruction to the printer, the print stream sent to the printer is intercepted in real time to generate an electronic image; the actual print image is collected; the electronic image and the print image are imported into the OCR model for comparison to identify whether there are defects in the printed label of the print image.
[0091] 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.
[0092] Of course, the storage medium containing computer executable instructions provided in an embodiment of the present application, whose computer executable instructions are not limited to the sliding perception-based window control method as described above, can also execute related operations in the sliding perception-based window control method provided in any embodiment of the present application.
[0093] The sliding-sensing-based window control system, storage medium and computer device provided in the above embodiments can execute the sliding-sensing-based window control method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the sliding-sensing-based window control method provided in any embodiment of the present application.
[0094] 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 vehicle window control method based on sliding perception, characterized in that: Applied to an intelligent light control system, the intelligent control system includes: an MCU, a power management module, a touch panel, a motor drive module, a motor and an atmosphere light; the method includes the following steps: The capacitance value is obtained through the touch panel and transmitted to the MCU to instruct the MCU to enter the running state after determining the double-click action; The MCU obtains the touch position through a proportional calculation algorithm; According to the touch position, the MCU controls the ambient light to follow the touch position, and controls the motor drive module to drive, so as to control the motor to drive the window to rotate to the corresponding position; Upon receiving a signal that the touch time of the touch panel reaches a first set time, the MCU controls the motor driving module to drive the motor to drive the window to rotate to an initial position; When no operation instruction is received within the second set time, the MCU enters a sleep state.
2. The window control method based on sliding perception according to claim 1, characterized in that: The acquiring the capacitance value through the touch panel and transmitting it to the MCU to instruct the MCU to enter the running state after determining the double-click action, includes: The touch panel obtains a capacitance value and sends it to the MCU; When the MCU obtains the double-click state through the double-click judgment algorithm, the MCU enters the running state. The double-click judgment algorithm model is as follows: Among them, f is the running state flag signal. When f is greater than 1, the MCU control system enters the running state, otherwise the system enters the dormant state; t is the sampling period; C t,i is the capacitance value of the ith channel at the tth moment, and the product of the collected capacitance values at the two moments is used to determine whether a double-click action occurs; the touch panel has 10 capacitance detection channels; and C is the set double-click judgment algorithm threshold.
3. The window control method based on sliding perception according to claim 1, characterized in that: The MCU obtains the touch position through a proportional calculation algorithm, including: The capacitance data collected by the touch panel is input into the MCU via the LIN bus; When the finger slides, it may touch the areas corresponding to several channels, and the capacitance of the corresponding channels increases; Due to the different contact areas, the capacitance changes of different channels are also different. A proportional calculation algorithm is used to locate the touch position. The algorithm model is as follows: Among them, d x is the position of the finger touch; i is the touch channel with the i-th capacitance increase, ranging from 1 to 10; C1, C2, and C3 are the capacitances of the three channels touched, respectively, and d is the distance between different channels.
4. The vehicle window control method based on sliding perception according to claim 1, characterized in that: According to the touch position, the MCU controls the ambient light to follow the touch position and controls the motor drive module to drive the motor to drive the window to rotate to the corresponding position, including: According to the touch position, the MCU controls the atmosphere lights to be arranged linearly, the spacing between each light is the same, and the light board is parallel to the touch board; When the calculated touch point is between any two of the atmosphere lights, the atmosphere light on the left of the touch point displays red, and the atmosphere light on the right displays green; The MCU sends a command to the motor driving module to drive the motor to rotate so that the ratio of the open part to the closed part of the window is the same as the ratio of the distance between the touch point and the two sides of the touch panel.
5. The vehicle window control method based on sliding perception according to claim 1, characterized in that: The receiving of the touch time of the touch panel reaching the first set time, the MCU controlling the motor driving module to drive the motor to drive the window to rotate to the initial position, including: When receiving the touch time of the touch panel reaching a first set time, the MCU controls the motor driving module to drive, so as to control the motor to rotate and close the window; When the touch panel receives a touch signal during the closing process, the window will stop closing and the MCU will return to the running state; The algorithm model for detecting long press operation of any channel is as follows: Wherein, k is a long-press operation detection flag signal, and when it is greater than or equal to 1, it indicates that the current long-press reaches the first set time; C t,i is the capacitance of the ith channel at the tth moment, and C0 is the set threshold.
6. A window control system based on sliding perception, characterized in that: include: MCU, power management module, touch panel, motor driver module, motor and atmosphere light; The power management module is used for supplying power; The touch panel acquires a capacitance value and transmits it to the MCU to instruct the MCU to enter a running state after determining a double-click action; The MCU obtains the touch position through a proportional calculation algorithm; According to the touch position, the MCU controls the ambient light to follow the touch position, and controls the motor drive module to drive, so as to control the motor to drive the window to rotate to the corresponding position; Upon receiving a signal that the touch time of the touch panel reaches a first set time, the MCU controls the motor driving module to drive the motor to drive the window to rotate to an initial position; When no operation instruction is received within the second set time, the MCU enters a sleep state.
7. The sliding sensing-based window control system according to claim 6, characterized in that: The plurality of atmosphere lights are arranged linearly; the input interface of the first atmosphere light is connected to the control interface of the MCU, the output interface of the first atmosphere light is connected to the input interface of the second atmosphere light, and the output interface of the second atmosphere light is connected to the input interface of the third atmosphere light, so as to complete the electrical connection of the plurality of atmosphere lights; The linear atmosphere light group formed by a plurality of atmosphere lights has the same length as the touch panel, and the distances between adjacent atmosphere lights are the same.
8. The sliding sensing-based window control system according to claim 6, characterized in that: The MCU is connected to the motor drive module via a CAN bus, the MCU is connected to the touch panel via a LIN bus, and the MCU is connected to the atmosphere lamp via a universal pin.
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 vehicle window control method based on sliding perception as described in any one of claims 1-5.
10. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute a vehicle window control method based on sliding perception as described in any one of claims 1-5 when executed by a computer processor.