Atmosphere lamp control method and device and computer storage medium

文档序号:1051 发布日期:2021-09-17 浏览:30次 中文

阅读说明:本技术 一种氛围灯控制方法、装置及计算机存储介质 (Atmosphere lamp control method and device and computer storage medium ) 是由 马资源 于 2020-03-16 设计创作,主要内容包括:本发明公开了一种汽车氛围灯控制方法、装置及计算机存储介质,在微控制器处获取检测单元检测的与车辆相关的车辆参数;按照预设的控制逻辑将所述车辆参数转换为灯光控制参数,并发送至所述灯光控制参数至所述灯光控制单元,氛围灯根据驾驶员参数、外部环境参数、行驶参数以及音频参数实时变化,能够实时反映车辆行驶状态,提升驾驶员和乘客的乘车体验。(The invention discloses an automobile atmosphere lamp control method, an automobile atmosphere lamp control device and a computer storage medium, wherein vehicle parameters which are detected by a detection unit and are related to a vehicle are obtained at a microcontroller; the vehicle parameters are converted into light control parameters according to preset control logic, the light control parameters are sent to the light control unit, the atmosphere lamp changes in real time according to the driver parameters, the external environment parameters, the driving parameters and the audio parameters, the driving state of the vehicle can be reflected in real time, and the riding experience of the driver and passengers is improved.)

1. A method of conditioning an atmosphere lamp, characterized in that,

acquiring, at a microcontroller, vehicle parameters related to the vehicle detected by a detection unit;

converting the vehicle parameters into light control parameters; and sending the light control parameters to the light control unit for adjusting the atmosphere lights of the vehicle.

2. The method of claim 1,

the atmosphere lamp is a lamp with at least one of adjustable color, brightness and color temperature.

3. The method according to claim 1 or 2,

the detection unit comprises a driver detection unit, a driving detection unit, an external environment detection unit and an audio detection unit.

4. The method of claim 3,

the microprocessor acquires the driver parameters detected by the driver detection unit; converting the driver parameter into a first light control parameter; sending the first light control parameter to the light control unit for adjusting an atmosphere light of the vehicle;

the microprocessor acquires the driving parameters detected by the driving detection unit; converting the driving parameters into second light control parameters; sending the second light control parameter to the light control unit for adjusting an ambience light of the vehicle;

the microprocessor acquires external environment parameters detected by the external environment detection unit; converting the external environment parameter into a third light control parameter; sending the third light control parameter to the light control unit for adjusting an ambience light of the vehicle;

the microprocessor acquires the audio parameters detected by the audio detection unit; converting the audio parameter into a fourth light control parameter; and sending the fourth light control parameter to the light control unit so as to adjust the atmosphere light of the vehicle.

5. The method of claim 4,

and responding to different priorities of the first light parameter, the second light parameter, the third light parameter and the fourth light parameter, and sending the light control unit with higher priority to adjust the atmosphere light of the vehicle.

6. The method of claim 4,

the driver detection unit comprises an image recognition unit and an image processing unit,

the driving detection unit comprises a speed sensor, an accelerator pedal sensor and a yaw angle sensor;

the external environment detection unit comprises at least one vehicle-mounted camera device;

the audio detection unit is a digital audio processor.

7. The method of claim 6,

the audio parameters include the properties, frequency and amplitude of the audio.

8. An electronic device for regulating an atmosphere lamp, the electronic device comprising: a processor; and a memory storing computer program instructions, the computer program instructions in the memory being executable by the processor to control the electronic device to perform the method of any of claims 1 to 7.

9. A computer readable storage medium having stored thereon computer executable instructions which, when executed, cause a machine to perform the steps of the method of any one of claims 1-7.

Technical Field

The embodiment of the disclosure generally relates to the field of vehicle light control, in particular to an automobile atmosphere lamp control method and device and a computer storage medium.

Background

At present, automobile factories for automobile manufacturing are more and more, competition is more and more intense, the automobile factories need to create a plurality of new selling points to form differentiation, vehicles are enabled to be more ceremonial, more customers can buy the vehicles, and the vehicle-mounted atmosphere lamp is an automobile indoor lighting system with the functions of creating and decorating indoor light scenes. Most of existing vehicles are controlled by the vehicle-mounted atmosphere lamps through the whole vehicle body, the control method and the control mode are single, the increase or decrease of the total number of the atmosphere lamps needs to modify vehicle-mounted control protocols of all nodes, the same system function needs to be integrally modified after being transplanted to another vehicle type to adapt to the self-existing upper-layer protocol of the new vehicle type, music playing equipment or interfaces are installed in the vehicles which are popularized at present, the vehicle-mounted atmosphere lamps need to achieve the effect of improving the atmosphere in the vehicles, the effect is generally achieved by changing the color and the brightness of the atmosphere lamps, and certain rhythm effect needs to be achieved. Therefore, how to provide a vehicle-mounted ambience lamp system with a rhythm control function capable of synchronizing vehicle-mounted music signals in real time is a problem to be solved in the industry.

Disclosure of Invention

Embodiments of the present disclosure provide a method, an apparatus, and a computer storage medium for adjusting an atmosphere lamp, which can change in real time according to changes in vehicle parameters, such as a vehicle-mounted atmosphere, during use of a vehicle, and can improve driving pleasure and driving safety.

In a first aspect of the present disclosure, there is provided a method of conditioning an atmosphere lamp, the method comprising: acquiring, at a microcontroller, vehicle parameters related to the vehicle detected by a detection unit; converting the vehicle parameters into light control parameters according to preset control logic, and sending the light control parameters to the light control unit, wherein the atmosphere lamp adopts a lamp with adjustable color, brightness and color temperature, the change of the atmosphere lamp comprises the change of the color, brightness and color temperature of light, the detection unit comprises a driver detection unit, a driving detection unit, an external environment detection unit and an audio detection unit, the driver detection unit is used for detecting the driver parameters of a driver and sending the obtained driver parameters to the microprocessor, and the microprocessor converts the driver parameters into corresponding color semaphores and sends the corresponding color semaphores to the light control unit to control the change of the atmosphere lamp;

the driving detection unit is used for detecting driving parameters related to driving and sending the driving parameters to the microprocessor, and the microprocessor controls the light adjustment unit to adjust the change of the atmosphere lamp according to the driving parameters;

the external environment detection unit is used for detecting external environment parameters in the running process of the vehicle and sending the external environment parameters to the microprocessor, and the microprocessor controls the light adjustment unit to adjust the change of the atmosphere lamp according to the external environment parameters;

the audio detection unit is used for detecting audio parameters of currently played audio of the vehicle and sending the audio parameters to the microprocessor, the microprocessor controls the light adjustment unit to adjust the change of the atmosphere lamp according to the audio parameters, the driver detection unit comprises an image recognition unit and an image processing unit, and the driving detection unit comprises a speed sensor, an accelerator pedal sensor and a yaw angle sensor; the external environment detection unit comprises at least one vehicle-mounted camera device; the audio detection unit is a digital audio processor, the audio parameters comprise audio attributes, frequencies and amplitudes, and the vehicle parameters are prioritized.

In a second aspect of the disclosure, an electronic device is provided. The electronic device includes a processor; and a memory storing computer program instructions, the processor executing the computer program instructions in the memory to control the electronic device to perform the method according to the first aspect.

In a third aspect of the disclosure, there is provided a computer-readable storage medium having stored thereon computer-executable instructions that, when executed, cause a machine to perform the steps of the method according to any one of the first aspects.

This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the disclosure, nor is it intended to be used to limit the scope of the disclosure.

Drawings

The foregoing and other objects, features and advantages of the disclosure will be apparent from the following more particular descriptions of exemplary embodiments of the disclosure as illustrated in the accompanying drawings wherein like reference numbers generally represent like parts throughout the exemplary embodiments of the disclosure.

FIG. 1 illustrates a block diagram of an apparatus for conditioning an atmosphere lamp according to an embodiment of the present disclosure;

FIG. 2 illustrates a method of conditioning an atmosphere lamp according to an embodiment of the disclosure.

Detailed Description

Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

As mentioned above, most of the control of the vehicle-mounted atmosphere lamp in the existing vehicle is the control of the whole vehicle body, the control method and the control mode are single, in the driving process of the vehicle, the driving external environment changes in real time, but the change of the atmosphere lamp is single, and the experience of a driver and passengers is poor.

To address, at least in part, one or more of the above problems, as well as other potential problems, example embodiments of the present disclosure propose a method for tuning an atmosphere lamp. In this embodiment, a vehicle parameter related to the vehicle detected by the detection unit is acquired at the microcontroller; the vehicle parameters are converted into light control parameters according to preset control logic, the light control parameters are sent to the light control unit, the atmosphere lamp changes in real time according to the driver parameters, the external environment parameters, the driving parameters and the audio parameters, the driving state of the vehicle can be reflected in real time, and the riding experience of the driver and passengers is improved.

Hereinafter, specific examples of the present scheme will be described in more detail with reference to the accompanying drawings.

Figure 1 shows a block diagram of an apparatus for conditioning an atmosphere lamp according to an embodiment of the present disclosure,

the microprocessor includes at least a processor and a memory. The memory is used to store one or more computer programs. The processor is coupled to the memory and executes one or more programs to enable the vehicle-mounted electronic equipment to execute one or more functions, the detection unit comprises a driver detection unit, a driving detection unit, an external environment detection unit and an audio detection unit, the light control unit adjusts the change of the atmosphere lamp according to the light control parameters sent by the microprocessor, the atmosphere lamp is an LED lamp or a cold cathode lamp with a color changing function and a brightness changing function, the LED lamp mixes most colors in the nature by controlling the color output of the red, green and blue three-primary-color LED arrays, and the LED lamp can also change the pulse duty ratio of the LED driving current by a pulse width modulation method to realize the brightness control of the LED lamp;

figure 2 illustrates a method of conditioning an atmosphere lamp according to an embodiment of the present disclosure,

at step 101, the micro control unit obtains vehicle parameters detected by the detection unit in real time through the detection unit, where the vehicle parameters include the driver parameters, the driving parameters, the external environment parameters and the audio parameters, specifically, after the driver enters the vehicle and starts, the driver detection unit detects the driver, and can obtain the driver parameters, where the driver parameters include but are not limited to facial expressions and clothing, and the facial expressions can reflect the current mood of the driver, for example, the current mood of the driver can be judged in a pleasant or nervous state by detecting the facial expressions, and the purpose of the driver for traveling can also be judged according to the clothing attributes, for example, if the wearing of the clothing may be to attend some formal meetings or activities, and the wearing of the sports clothing may be to go to sports or travel, the clothing attributes include but are not limited to clothing color, style, accessories, cosmetics and other elements related to the wearing of the person;

the driver detection unit can adopt an in-vehicle camera, and the in-vehicle camera can be arranged on a center console, a front windshield glass or any other position capable of shooting a driver

Further, the driving detection unit is used for detecting driving parameters, the driving detection unit includes but is not limited to a speed sensor, an accelerator pedal sensor and a rotation angle sensor, the speed sensor is used for detecting the speed of the vehicle in real time, the accelerator pedal sensor is used for detecting the depth of an accelerator pedal, the corner sensor is used for detecting the steering angle of the vehicle, the driving detection unit detects the speed, the acceleration and the steering of the vehicle in real time during the driving of the vehicle and sends the detected data to the microcontroller, when at least one of the speed, the acceleration or the steering angle of the vehicle is detected to exceed a preset value, the microcontroller judges that the vehicle is in a warning mode, and converting the light control parameters into light control parameters according to a preset light control rule, and sending the light control parameters to the light control unit to control the light control unit to adjust the working mode of the atmosphere lamp. For example, if the acceleration exceeds 2.5m/s2, the control atmosphere lamp is operated in a more striking red color to alert the driver to drive safely.

Further, the external environment detection unit is configured to detect external environment parameters, the external environment detection unit includes at least one vehicle-mounted camera device, the vehicle-mounted camera device may collect one or more factors of an external environment of the vehicle, the external environment of the vehicle includes but is not limited to a scene attribute, a temperature attribute, a road condition attribute, and a weather attribute, the scene attribute includes but is not limited to "mountain scene, sea scene, river scene, water scene, tree scene, flower scene, snow scene, cloud scene, fog scene, stone scene, and building", the temperature attribute may include a cold mode, a comfort mode, and a hot mode, the road condition attribute may include a highway, an urban road, a mountain road, and the like,

the in-vehicle image pickup apparatus may include, for example: the vehicle-mounted camera device comprises a vehicle front camera, a vehicle rear camera and a vehicle roof camera, wherein the vehicle-mounted camera device detects the current external environment of the vehicle and sends the detected external environment parameters to a microcontroller, the microcontroller converts the external environment parameters into light control parameters according to preset light control rules and sends the light control parameters to the light control unit to adjust the change of the atmosphere lamp. For example, the color of the ambience lamp may be automatically adjusted to pink plus white when the scene attribute is detected as a florescence, and to a cool color that is cool when the temperature attribute is detected as a hot mode.

Further, the audio detection unit includes an audio chip, which may be a digital signal processing chip, for example, and is configured to extract an audio parameter of an audio, where the audio may be an on-vehicle broadcast program, an audio or a video locally stored in a car machine, or an audio played by a mobile device end communicatively connected to a vehicle, and the mobile device may perform data interaction and sharing through wireless communication means such as Wi-Fi, bluetooth, cellular, and NFC, and the audio parameter includes: frequency, amplitude, and audio attributes that may include broadcast, phase, voiced books, rock music, light music, pop music, light music, balladry, etc.;

at block 102, the mcu converts the vehicle parameters into light control parameters according to preset control rules, in an embodiment, after receiving the audio parameters sent by the audio detection device, the mcu converts the received audio parameters into light color codes, brightness levels, and color temperature values in real time according to preset frequency, amplitude, and audio attributes and corresponding rules of color, brightness, and color temperature, and the mcu converts the light color codes, brightness levels, and color temperature values;

in one embodiment, after receiving the driving parameters sent by the driving detection device, the microcontroller converts the received driving parameters into a light color code, a brightness level and a color temperature value according to a preset rule that whether one of the speed, the acceleration and the steering angle reaches a preset value and the color, the brightness and the color temperature values, for example, when the acceleration exceeds the preset value of 2.5m/s2, it is determined that the vehicle is in the warning mode, and the corresponding light color code is red and the brightness level is high;

in an embodiment, after receiving the external environment parameters sent by the external environment detection device, the microcontroller converts the detected scene attribute, air temperature attribute, road condition attribute, and weather attribute into a light color code, a brightness level, and a color temperature value according to preset corresponding rules of the scene attribute, the air temperature attribute, the road condition attribute, and the color, the brightness, and the color temperature, for example, when the scene attribute is a flower scene, the corresponding light color code may be automatically adjusted to be pink plus white;

in an embodiment, after receiving the driver parameters sent by the driver detection device, the microcontroller converts the received facial expression and clothes into a light color code, a brightness level and a color temperature value according to preset corresponding rules of facial expression, clothes, color, brightness and color temperature, for example, when the driver has a relaxed and pleasant facial expression and is wearing sports and leisure clothes, the corresponding light color code may be set to a light and bright sky blue. The brightness may be set to high brightness and the color temperature to warm white.

Furthermore, each parameter is preset with a priority level in a microcontroller, the microcontroller outputs the light parameter with a higher priority level to the light control unit according to the detected light parameters, the priority level can be set according to the preference of the driver, for example, the priority level of the driving parameter can be preset to be higher than the audio parameter, the priority level of the audio parameter is higher than the external environment parameter, the priority level of the external environment parameter is higher than the driver parameter, when the vehicle runs on a public road and plays classical music, the atmosphere lamp changes in real time according to the audio content, if the driver steps on an accelerator pedal with force at the moment, the driving detection unit detects that the acceleration of the vehicle exceeds a preset value, and the change of the atmosphere lamp is switched from the change according to the audio parameter to the change according to the driving parameter at the moment.

At block 103, the micro control unit sends the light control parameters to the light controller,

at block 104, the light controller adjusts the ambience lamp according to the light control parameter

The present disclosure may be methods, apparatus, systems, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for carrying out various aspects of the present disclosure.

The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.

The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.

The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).

Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.

These computer-readable program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.

The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种车载无声喇叭系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类