Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the application. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" depending on the context.
Fig. 1 is a schematic flow chart of a control method of a vehicle display screen according to an embodiment of the present application, where the vehicle includes a dimmer switch circuit, as shown in fig. 1, and the method includes:
s10: acquiring a PWM signal which is output by a dimming switch circuit and used for adjusting the brightness of a display screen;
Fig. 2 is a schematic block diagram of a vehicle according to an embodiment of the present application, where in a specific embodiment, the vehicle according to an embodiment of the present application includes, in addition to a dimmer switch circuit, as shown in fig. 2, the vehicle further includes: the display screen 3 and the dimming signal acquisition circuit 2, wherein the dimming signal acquisition circuit 2 comprises a voltage division circuit 4, a switch type filter circuit 5 and a control unit 6.
It should be noted that, the execution main body of the control method of the vehicle display screen 3 provided in the embodiment of the present application is the control unit 6, and the control unit 6 may be a vehicle domain controller or a whole vehicle controller, which is not limited in particular. In addition, it should be noted that the vehicles provided by the embodiments of the present application include, but are not limited to, sedans, SUVs, MPVs, off-road vehicles, pick-up trucks, or other power-driven non-rail-borne vehicles.
In a specific embodiment, the PWM signal output by the dimmer switch circuit 1 for adjusting the brightness of the display screen 3 is obtained through step S10, and it is understood that the PWM signal output by the dimmer switch circuit 1 passes through the voltage dividing circuit 4 and the switch-mode filter circuit 5, and is then transmitted to the control unit 6, so that the control unit 6 adjusts the brightness of the display screen 3 according to the PWM signal.
S11: determining a rate of change of a timing characteristic of the PWM signal; wherein the timing characteristics include at least one of frequency and duty cycle;
S12: when the change rate is greater than the threshold value, adjusting the brightness of the display screen according to the duty ratio;
S13: and when the change rate is not greater than the threshold value, controlling the display screen to maintain the current brightness.
Further, after acquiring the PWM signal output by the dimmer switch circuit 1 through step S10, the control unit 6 determines the rate of change of the timing characteristic of the PWM signal, so as to determine whether to adjust the brightness of the display screen 3 according to the rate of change of the timing characteristic, wherein the timing characteristic includes at least one of frequency and duty ratio.
Specifically, when the change rate is greater than the threshold value, the current PWM signal is determined to be a signal that needs to be adjusted for the display screen 3, and at this time, the brightness of the display screen 3 is adjusted according to the duty ratio of the PWM signal. However, when the rate of change is not greater than the threshold value, it is determined that the current PWM signal is a signal that does not require adjustment of the display screen 3, that is, it is determined that the current PWM signal is a signal acquired when the signal is unstable, and then the display screen 3 is controlled to maintain the current brightness.
The time sequence characteristic change rate may be a frequency change rate or a duty ratio change rate, or a frequency change rate and a duty ratio change rate, or the change rate may be a current time and a previous time change rate, or a change rate within a preset time period, which is not limited in the present application.
In a specific embodiment, when the vehicle is running in a dark environment, the position lamp needs to be turned on, the display screen is lightened, and when a user adjusts the brightness of the display screen through the dimmer switch, if a signal from the dimmer switch is unstable or abnormal, the liquid crystal screen can flash on occasion.
Specifically, in general, the waveform falling edge of the output signal of the dimmer switch circuit 1 has a steep vertical line shape, and the falling edge and the rising edge are both smooth vertical lines. Fig. 3 is a schematic waveform diagram of an output signal of a dimmer switch according to the present application, however, as shown in fig. 3, when a falling edge of the waveform of the output signal of the dimmer switch is in a saw-tooth shape and gradually falls, high-low level signals alternate in a short time, and a controller can erroneously collect a low level signal as a high level signal or erroneously collect a high level signal as a low level signal at a saw-tooth position, so that when the controller adjusts the brightness of the display screen 3, abrupt brightness adjustment of the display screen 3 is caused, that is, the display screen 3 flashes.
In order to solve the above problem of the display screen 3 flashing caused by the steep vertical line shape of the waveform falling edge of the output signal of the dimmer switch, in an alternative embodiment, as shown in fig. 2, the voltage dividing circuit 4 includes a first voltage dividing resistor R40 and a second voltage dividing resistor R41 connected in series between the dimmer switch circuit 1 and the ground terminal, the switch-type filter circuit 5 includes a first connection terminal and a second connection terminal, the first connection terminal is connected between the first voltage dividing resistor R40 and the second voltage dividing resistor R41, and the second connection terminal is connected with the control unit 6.
In a specific embodiment, the switch-type filter circuit 5 is turned on when the voltage signal is greater than a preset voltage, the control unit 6 receives a first signal, the switch-type filter circuit 5 is turned off when the voltage signal is not greater than the preset voltage, the control unit 6 receives a second signal, and the control unit 6 is connected with the display screen 3 and is used for adjusting the brightness of the display screen 3 according to the first signal and the second signal.
As shown in fig. 3, when the waveform falling edge of the current output signal of the dimmer switch is in a zigzag slow-falling curve, the high level of the high-low fluctuation appears, however, the high level of the jump appearing in the zigzag curve is not higher than the high level under the normal signal, so the application adds a switch-type filter circuit 5 in the dimmer signal acquisition circuit 2, when the output voltage signal of the dimmer switch circuit 1 is higher than the preset voltage, the control unit 6 acquires the first signal, if the first signal jumps to the second signal, even if the zigzag high-low level staggered signal exists in the middle, the switch-type filter circuit 5 is turned off, and the controller still acquires the second signal because the voltage corresponding to the high level appearing in the zigzag is not higher than the preset voltage. For ease of understanding, the following will exemplify. For example, the preset voltage is 4.2V, when the output voltage of the dimmer switch circuit 1 is greater than 4.2V, the control unit 6 collects the first signal, and if the output voltage is not greater than 4.2V, the control unit 6 collects the second signal, and even if there is a saw-tooth signal mutation in the middle of the first signal jumping to the second signal, the control unit 6 eventually collects the second signal because the mutated voltage is not higher than 4.2V. Therefore, the control unit 6 can not collect disordered signals, and the display screen 3 is prevented from flashing caused when the waveform falling edge of the current output signal of the dimmer switch is in a sawtooth-shaped slow-falling curve.
In fact, the switch-type filter circuit 5 acts as a switch, and when the output voltage of the dimmer switch circuit 1 is greater than the preset voltage, the switch-type filter circuit 5 is turned on, and is turned off, so as to avoid the control unit 6 collecting the disordered signals.
Therefore, in the dimming signal acquisition circuit 2 provided by the embodiment of the application, since the switch-type filter circuit 5 is only turned on when the voltage signal output by the dimming switch is greater than the preset voltage, when the first signal jumps to the second signal, even if a zigzag high-low level staggered signal exists in the middle, and the voltage corresponding to the high level appearing in the zigzag is not higher than the preset voltage, the switch-type filter circuit 5 is turned off, and the controller still acquires the second signal, so that the switch-type filter circuit 5 is not turned on and turned off, and therefore, the controller does not erroneously acquire the first signal as the second signal or erroneously acquire the second signal as the first signal, thereby overcoming the problem that the falling edge of the output signal of the dimming switch is a flashing caused by the zigzag slow-falling curve and improving the user experience.
Fig. 4 is a schematic circuit diagram of a portion of the dimming signal acquisition circuit in the vehicle shown in fig. 2, and in an alternative embodiment, as shown in fig. 4, the switch-mode filter circuit 5 includes a first transistor Q1.
The base of the first triode Q1 is connected between the first voltage dividing resistor R40 and the second voltage dividing resistor R41, the emitter of the first triode Q1 is grounded, and the collector of the first triode Q1 is respectively connected with the direct current power supply end and the control unit 6. It will be appreciated that the base of the first transistor Q1 is provided as a first connection of the switch-mode filter circuit 5 and the collector is provided as a second connection of the switch-mode filter circuit 5.
In a specific embodiment, when the output voltage of the dimmer switch circuit 1 is greater than a preset voltage, the first triode Q1 is turned on, at this time, the singlechip collects the low level of the ground terminal, and if the output voltage of the dimmer switch circuit 1 is not greater than the preset voltage, the first triode Q1 is turned off, at this time, the singlechip collects the high level of the dc power terminal. Since the low level is collected by the on state and the high level is collected by the off state, which is just opposite to the brightness adjustment of the display screen 3, the control unit 6 needs to perform the inverse processing on the collected voltage signal, that is, the low level collected during the on state is inverted to the high level, and the high level collected during the off state is inverted to the low level. That is, the first signal acquired by the control unit 6 at this time is the inverted high-level signal, and the second signal is the inverted low-level signal.
For example, when the output voltage of the dimmer switch circuit 1 is greater than 4.2V, the first triode Q1 is turned on, and at this time, the control unit 6 collects a low-level signal (0V), when the output voltage is not greater than 4.2V, the first triode Q1 is turned off, and the control unit 6 collects a high-level signal (3.3V), and since the polarities of the output voltage and the collected voltage of the notification unit are opposite, the control unit 6 performs the inverse processing to invert the low-level signal into the high-level signal and invert the high-level signal into the low-level signal.
It can be understood that when the first triode Q1 is turned on, the first signal collected by the control unit 6 is at a high level, when the first triode Q1 is turned off, the second signal collected by the control unit 6 is at a low level, and even if a signal with a saw-tooth mutation appears in the process from the high level to the low level, the mutated high level is not greater than a preset voltage, so that the control unit 6 still collects a low level signal, thereby avoiding that a disordered signal is collected in the process from the high level to the low level, and causing the display screen 3 to flash.
In an alternative embodiment, in order to further guarantee the accuracy of the signals acquired by the control unit 6, as shown in fig. 4, the switch-mode filter circuit 5 further comprises: the first filter capacitor C1 is connected between the base of the first triode Q1 and the ground terminal, and in a specific embodiment, the first filter capacitor C1 can filter smaller voltage fluctuation to improve signal acquisition accuracy.
In order to further improve the signal acquisition accuracy based on the first filter capacitor C1, in an alternative embodiment, as shown in fig. 4, the switch-mode filter circuit 5 further includes: the second filter capacitor C2, the second filter capacitor C2 is connected between the collector electrode of the first triode Q1 and the ground terminal, and is used for filtering the signal of the output end of the switch type filter circuit 5 again, so as to further improve the accuracy of the signal collected by the control unit 6, and further reduce the risk of the display screen 3 flashing.
In an alternative embodiment, for the safety of the dimming signal acquisition circuit 2, as shown in fig. 4, the switch-mode filter circuit 5 further comprises: the first resistor R1 and the second resistor R2, the first resistor R1 is connected between the collector of the first triode Q1 and the dc power supply, and the second resistor R2 is connected between the collector of the first triode Q1 and the control unit 6.
In a specific embodiment, the first resistor R1 is a current limiting resistor of the first triode Q1, and the second resistor R2 is a current limiting resistor for preventing the first triode Q1 from being shorted, and the limit value enters the current magnitude of the control unit 6, i.e. the connection terminal pin of the control unit 6 is protected.
Therefore, according to the control method of the vehicle display screen 3 provided by the embodiment of the application, whether the brightness of the display screen 3 is adjusted is determined according to the time sequence characteristic change rate of the PWM signal output by the dimming switch circuit 1, so that unstable PWM signals are avoided, namely, when the PWM signals jump accidentally, the PWM signals are regarded as brightness adjustment signals by mistake. Specifically, when brightness adjustment is performed on the display screen 3, the change rate of the timing sequence characteristic of the PWM signal is greater than a threshold value, however, the timing sequence characteristic is hopped accidentally in a very short time, for example, the duty ratio is hopped from 20% to 30% and then hopped back to 30% in a very short time, the change rate of the timing sequence characteristic of the PWM signal in the time is not greater than the threshold value, and at this time, brightness adjustment is not performed on the display screen 3, that is, the current brightness is kept, so that the situation that the hopped signal is regarded as the brightness adjustment signal of the display screen 3 by mistake is avoided, the display screen 3 is led to flash, the brightness adjustment accuracy of the display screen 3 by the dimming switch circuit 1 is improved, and the user experience is further improved.
In an alternative embodiment, the threshold values include a first threshold value and a second threshold value; when the change rate is greater than the threshold value, adjusting the brightness of the display screen according to the duty ratio, including:
And if the change rates of the frequency between the current moment and the last moment and the change rates of the frequency between the current moment and the next moment are both larger than a first threshold value, the change rates of the duty ratio between the current moment and the last moment and the change rates of the duty ratio between the current moment and the next moment are both larger than a second threshold value, and the brightness of the display screen is adjusted according to the duty ratio.
It will be appreciated that the probability of the timing characteristic of the PWM signal toggling back and forth twice in succession is very low, and thus, whether to adjust the brightness of the display 3 can be determined according to the rate of change of the timing characteristic between the current time and the previous time, and between the current time and the next time.
In an alternative embodiment, in order to improve the adjustment accuracy of the display screen 3, the time sequence feature preferably includes a frequency and a duty ratio, and the threshold includes a first threshold and a second threshold, and when determining whether the change rate of the time sequence feature is greater than the threshold, specifically, if the change rates of the frequency between the current time t1 and the previous time t2 and the change rates of the frequency between the current time t1 and the next time t3 are both greater than the first threshold, and the change rates of the duty ratio between the current time t1 and the previous time t2 and the change rates of the duty ratio between the current time t1 and the next time t3 are both greater than the second threshold, it is determined that the change rate of the time sequence feature is greater than the threshold, and at this time, the brightness of the display screen 3 is adjusted according to the duty ratio.
On the basis of the above embodiment, as an optional embodiment, adjusting the brightness of the display screen according to the duty ratio includes:
Determining a first brightness level of a display screen corresponding to the duty ratio at the current moment and a second brightness level of the display screen corresponding to the duty ratio at the next moment;
The brightness of the display screen is controlled to be adjusted from the first brightness level to the second brightness level.
In a specific embodiment, the duty cycle of the PWM signal output by the dimmer switch circuit 1 determines the brightness of the display 3, and the larger the duty cycle, the brighter the display 3. Thus, when adjusting the brightness of the display screen 3, adjustment can be made according to the duty ratio.
Specifically, the brightness levels of the display screen 3 corresponding to different duty ratios are different, so that a first brightness level of the display screen 3 corresponding to the duty ratio at the current moment and a second brightness level corresponding to the duty ratio at the next moment are determined, and then the brightness of the display screen 3 is controlled to be adjusted from the first brightness level to the second brightness level.
It should be noted that, the mapping relationship between the duty ratio and the brightness level in the embodiment of the present application is not limited in particular, and table 1 is a mapping relationship between the schematic duty ratio and the brightness level provided by the implementation of the present application.
TABLE 1
As shown in the mapping relation of table 1, if the duty ratio at the current time is within the range of 10% -20%, the first brightness level is the second gear, and the duty ratio at the next time is within the range of 30% -40%, and if the second brightness level is the third gear, the display screen 3 is controlled to adjust from the brightness of the second gear to the brightness of the third gear.
On the basis of the above embodiment, as an alternative embodiment, controlling the brightness of the display screen to be adjusted from the first brightness level to the second brightness level includes:
when the first brightness level and the second brightness level are non-adjacent levels, controlling the brightness of the display screen to be adjusted step by step from the first brightness level.
It can be understood that when the first brightness level and the second brightness level are non-adjacent, if the brightness of the display screen 3 is directly changed from the first brightness level to the second brightness level, the brightness is greatly changed, so that the visual perception is a kind of splash screen for the user, and the visual perception is poor, so in order to solve the technical problem, in the embodiment of the application, when the brightness of the display screen 3 is adjusted from the first brightness level to the second brightness level, for example, as shown in table 1, if the current time duty ratio is in the range of 10% -20%, the first brightness level is the second brightness level, and the next time duty ratio is in the range of 50% -60%, and the second brightness level is the fifth brightness level, at this time, the brightness of the display screen 3 is adjusted from the second brightness level to the third brightness level, then from the third brightness level to the fourth brightness level, and finally from the fourth brightness level to the fifth brightness level.
In an alternative embodiment, controlling the brightness of the display screen to adjust from the first brightness level to the second brightness level includes:
When the first brightness level and the second brightness level are non-adjacent levels, generating a control signal to control the brightness of the display screen to be adjusted from the first brightness level to a third brightness level, wherein the third brightness level is the next brightness level of the first brightness level;
After the first preset duration, if the duty ratio of the control signal is equal to the duty ratio corresponding to the first brightness level, controlling the brightness of the display screen to be kept at the third brightness level;
And if the duty ratio of the control signal is not equal to the duty ratio corresponding to the first brightness level, controlling the brightness of the display screen to be adjusted from the third brightness level to the next brightness level of the third brightness level.
In a specific embodiment, when the brightness of the display screen 3 is adjusted, the adjustment may be caused by misjudgment, that is, the brightness of the display screen 3 may be adjusted due to the screen flashing, if the first brightness level and the second brightness level are non-adjacent levels, in the process of controlling the brightness of the display screen 3 to be adjusted from the first brightness level to the second brightness level, the signal at any level in the middle may be adjusted to restore the normal state, that is, the duty ratio of the PWM signal is restored to the duty ratio corresponding to the first brightness level, and in this case, the brightness adjustment is continued, so that the severity of the screen flashing is aggravated, and if the brightness of the display screen 3 is adjusted to the first brightness level and the brightness is adjusted again, the severity of the screen flashing is aggravated.
For example, if the first brightness level is second gear and the second brightness level is fifth gear, when the brightness of the display screen 3 is adjusted, the brightness of the display screen 3 is adjusted from second gear to third gear, then from third gear to fourth gear, and finally from fourth gear to fifth gear, in this process, after the brightness is possibly adjusted to third gear or fourth gear, the signal may be recovered to be normal, that is, the duty ratio of the PWM signal is recovered to the duty ratio corresponding to the second gear, at this time, the brightness of the display screen 3 does not need to be continuously adjusted, and the brightness does not need to be adjusted back to the second gear.
Therefore, in order to reduce the severity of the splash screen, in an alternative embodiment, when the brightness of the display screen 3 is controlled to be adjusted from the first brightness level to the second brightness level, if the first brightness level and the second brightness level are determined to be non-adjacent levels, a control signal is generated, and the brightness of the display screen 3 is controlled to be adjusted from the first brightness level to a third brightness level through the control signal, wherein the third brightness level is the next brightness level of the first brightness level.
Further, after the first preset duration, it is determined whether the duty cycle corresponding to the control signal is equal to the duty cycle corresponding to the first brightness level, that is, whether the PWM signal is recovered to be normal is determined, which is actually a way to determine whether the current brightness adjustment is a splash screen.
If the duty cycle of the control signal is equal to the duty cycle corresponding to the first brightness level, it is determined that the PWM signal is restored to normal, that is, it is determined that the current brightness adjustment is abnormal, that is, it is determined that the screen is currently being flashed, and at this time, in order to reduce the severity of the screen flashing, the brightness of the display screen 3 is controlled to be maintained at the third brightness level.
If the duty ratio of the control signal is not equal to the duty ratio corresponding to the first brightness level, and it is determined that the current brightness adjustment is the normal adjustment, the brightness of the display screen 3 is controlled to be adjusted from the third brightness level to the next brightness level of the third brightness level, that is, the brightness of the display screen 3 is controlled to be adjusted step by step until the brightness is adjusted from the first brightness level to the second brightness level.
It should be noted that, after the primary brightness adjustment is not performed, the first preset duration is set at intervals, and it is required to determine whether the primary signal is recovered to be normal, that is, determine whether the duty cycle corresponding to the primary control signal is equal to the duty cycle corresponding to the first brightness level. For example, the first level adjustment is performed every 0.2 seconds, and whether the signal is normal is judged in the time, so that the severity of the splash screen is reduced.
In a specific embodiment, determining a first brightness level of the display screen corresponding to the duty cycle at the current time and a second brightness level of the display screen corresponding to the duty cycle at the next time includes:
And determining the brightness level corresponding to the duty ratio range where the duty ratio at the current moment is positioned as a first brightness level and determining the brightness level corresponding to the duty ratio range where the duty ratio at the next moment is positioned as a second brightness level from a brightness level table comprising the mapping relation of the duty ratio range and the brightness level.
It will be appreciated that the duty cycle determines the brightness of the display 3, and the higher the duty cycle, the more the brightness of the display 3, and when determining the brightness level of the display 3 according to the duty cycle, the determination is based on the mapping relationship between the duty cycle range and the brightness level.
When the brightness is adjusted according to the brightness increasing level table, and when the brightness is adjusted according to the brightness decreasing level table, the difference between the minimum value in the duty ratio range of the first designated level in the brightness increasing level table and the maximum value in the duty ratio range of the second designated level in the brightness decreasing level table is larger than the preset value, wherein the first designated level is the last level of the second designated level.
The luminance increase level table is different from the range in which adjacent luminance levels are set in the luminance decrease level table. Therefore, the phenomenon that the dimming switch shakes due to slight shaking of the vehicle in the running process can be avoided, and the brightness of the display screen 3 is adjusted by mistake.
Table 2 shows a mapping relationship between an exemplary duty ratio and a brightness level provided by the present application, as shown in table 2, table 2 shows a brightness reduction level table, and table 1 shows a brightness increase level table.
TABLE 2
For ease of understanding, the following will be described with reference to tables 1 and 2, as shown in tables 1 and 2, in the luminance increasing level table, the duty ratio range corresponding to the third gear is 30% +.ltoreq.x < 40%, where X is the duty ratio, in the luminance decreasing level table, the duty ratio range corresponding to the second gear is 18% +.ltoreq.28%, the minimum value in the third gear range is 2% higher than the maximum value in the second gear range, that is, the minimum value in the duty ratio range of the first specified level in the luminance increasing level table, and the difference between the maximum value in the duty ratio range of the second specified level in the luminance decreasing level table is greater than the preset value of 2%.
In a specific embodiment, when the brightness of the display screen 3 needs to be adjusted from third gear to second gear, if the brightness increase and the brightness decrease both use the brightness increase level table, that is, when table 1 is used, the brightness is adjusted from third gear to second gear, so long as the duty ratio is less than 30%, for example, when the vehicle shakes, the brightness is also adjusted when the duty ratio is 29.9%, and the wine will cause erroneous judgment.
Therefore, in order to avoid the above problem, a luminance reduction level table is separately provided, and the difference between the minimum value of the third gear and the maximum value of the second gear is 2%, and when the third gear is adjusted to the second gear, the third gear can be adjusted to the second gear only when the duty ratio is less than or equal to 28%. Therefore, misjudgment of brightness adjustment in the situations of vehicle shake and the like can be avoided, and brightness adjustment accuracy is improved.
In an alternative embodiment, the brightness level table includes a brightness increase level table and a brightness decrease level table, and when the first brightness level and the second brightness level are non-adjacent levels, controlling the brightness of the display screen 3 to be adjusted step by step from the first brightness level includes:
If the brightness corresponding to the first brightness level is lower than the brightness corresponding to the second brightness level, controlling the brightness of the display screen 3 to be gradually increased from the first brightness level according to the brightness increasing level table;
if the brightness corresponding to the first brightness level is higher than the brightness corresponding to the second brightness level, controlling the brightness of the display screen 3 to be gradually reduced from the first brightness level according to the brightness reduction level table.
In a specific embodiment, when adjusting the brightness of the display screen 3, in order to improve the visual experience of the user and reduce the probability of screen flicker, a primary adjustment is required from the first brightness level.
In an optional embodiment, the method for controlling a vehicle display screen provided by the embodiment of the application further includes:
determining the average value of the time sequence characteristics in a second preset time period; the second preset duration is the duration of maintaining the current brightness of the display screen;
And if the difference value between the time sequence characteristic and the average value at the current moment is larger than the preset difference value, controlling the display screen to keep the current brightness.
In a specific embodiment, in order to reduce the probability of screen flicker, the average value of the timing characteristic in the second preset duration is obtained, where the timing characteristic may include a frequency and a duty cycle, and it is noted that the second preset duration refers to a duration corresponding to the duration in which the display screen 3 maintains the current brightness, that is, a duration in which the PWM signal remains stable, and the second preset duration obtains a duration closest to the current time.
After the time sequence characteristic average value is obtained, judging whether the difference value between the time sequence characteristic at the current moment and the average value is larger than a preset difference value, if so, determining that the PWM signal acquired at the current moment is an abrupt signal (i.e. an abnormal signal), and controlling the display screen 3 to keep the current brightness in order to avoid screen flashing. If the brightness is not greater than the preset value, the PWM signal is determined to be a normal signal, and the brightness of the display screen 3 is adjusted according to the duty ratio of the PWM signal.
In a specific embodiment, the problem of screen flashing caused by the fact that the waveform falling edge of the output signal of the dimming switch circuit 1 is in a zigzag slow-falling curve can be overcome from the angle of the dimming signal acquisition circuit 2, and the problem of screen flashing can be overcome from the dimming switch circuit 1. That is, the problem of screen flash can be solved from the signal transmission path, and the problem of screen flash can be overcome from the signal source.
Fig. 5 is a schematic circuit diagram of a dimmer switch circuit according to an embodiment of the present application, and in fact, as shown in fig. 5, in the current dimmer switch circuit, a resistor R3 and a capacitor C3 form an RC delay circuit in the dimmer switch circuit. In a specific embodiment, the RC delay circuit is an electronic circuit that utilizes the interaction of a resistor and a capacitor for achieving the delay of the signal.
Specifically, when the power supply voltage is turned on, the capacitor C3 is charged, and the resistor R3 controls the charging rate of the capacitor, when the capacitor C3 is charged to a certain voltage, the charging is stopped, and obviously, the charging period of the capacitor C3 is related to the combination of the capacitor C3 and the resistor R3, and when the resistance value of the resistor R3 is increased, the charging period of the capacitor C3 is increased
In a specific implementation, the RC delay circuit eventually outputs a voltage to rise and fall with a delay phenomenon, that is, rising and falling waveforms are gentle and with saw teeth, that is, the RC delay circuit eventually causes a waveform falling edge of an output signal of the dimmer switch circuit to be in a saw-tooth slow-falling curve, so that a risk of flashing of an instrument display screen is caused. The larger the resistance value of the resistor R3 is, the longer the charging time of the capacitor C3 is, the flatter the waveform of the final output signal is, and the larger the risk of screen flash is.
In addition, triode Q4 switches on the output, and electric capacity C3 can quick charge, and rising edge is steeper than the falling edge, and behind triode Q4 turned off, electric capacity C3 need discharge, because electric capacity C3 does not have the return circuit that discharges to ground, leads to discharging slowly to lead to falling edge curve slowly to drop, the risk that the sawtooth profile appears increases.
Fig. 6 is a schematic circuit diagram of a dimmer switch circuit in the vehicle shown in fig. 2, and in order to solve the above technical problems, as shown in fig. 6, a dimmer switch circuit 1 provided by an embodiment of the present application includes: the device comprises a signal modulation circuit 7, a first designated resistor R4 and a discharge device 8, wherein the first designated resistor R4 is zero ohm resistance, and the signal modulation circuit 7 is used for converting a low-frequency signal into a PWM signal with a variable high-frequency pulse width. One end of the first designated resistor R4 is connected with the signal modulation circuit 7, the other end of the first designated resistor R4 is respectively connected with one end of the discharge device 8 and the voltage division circuit 4, and the other end of the discharge device 8 is grounded.
In the above embodiment, acquiring the PWM signal for adjusting the brightness of the display screen 3 output by the dimmer switch circuit 1 includes: the PWM signal output from the signal modulation circuit 7 is acquired.
The first designated resistor R4 is set to be zero ohm resistance, so that the discharge time of the discharge device 8 is shortened, the falling edge of the signal is steep, and the risk of high-low level staggering is eliminated, namely, the problem of interference caused by gradual rising and falling of the voltage due to charging and discharging is eliminated.
Therefore, in the instrument circuit of the vehicle provided by the embodiment of the application, the first designated resistor R4 is set to be zero ohm resistance, the problem that the voltage rise and drop caused by capacitor storage and release are gentle, and then a sawtooth-shaped curve appears is solved, no sawtooth appears in the middle process from high level to low level, the waveform becomes standard, the fluctuation high-low level state staggering phenomenon is avoided, the dimming signal acquisition circuit 2 can not acquire disordered high-low level signals, and further the brightness of a screen can not be adjusted suddenly at will, and finally the screen flicker is avoided.
In an alternative embodiment the discharge means 8 may be a capacitor, and in an alternative embodiment the discharge means 8 may be a second designated resistor R5, i.e. the discharge means 8 may be a resistor or a capacitor.
In the embodiment, if the discharge device 8 is a capacitor, since the capacitor has no discharge loop, the capacitance of the capacitor needs to be reduced, and in fact, even if the capacitance of the capacitor is reduced, the signal falling edge is not steep enough, so the discharge device 8 is preferably a resistor.
When the discharge device 8 is the second specified resistor R5, if the resistance of the second specified resistor R5 is too small, the load becomes large, and excessive power consumption is generated, and if the resistance of the second specified resistor R5 is too large, the signal falling edge is not steep enough, that is, the saw-tooth curve is not obvious enough, so in a specific embodiment, the resistance of the second specified resistor R5 needs to be set according to a specific circuit, or according to a plurality of sets of test results.
Further, it is noted that when the discharge device 8 is the second prescribed resistance R5, the first prescribed resistance R4 and the second prescribed resistance R5 form the voltage dividing circuit 4, but since the first prescribed resistance R4 is zero ohm resistance, the influence of the voltage division on the signal can be eliminated.
As shown in fig. 6, the signal modulation circuit 7 for converting a low frequency signal into a PWM signal with a variable high frequency pulse width includes: the inverter D, the second transistor Q2, the third transistor Q3, the fourth transistor Q4, the fifth transistor Q5, the sixth resistor R6, the seventh resistor R7, the eighth resistor R8, the ninth resistor R9, the tenth resistor R10, the eleventh resistor R11, the twelfth resistor R12, and the thirteenth resistor R13, the fourth capacitor C4, and the fifth capacitor C5.
The inverter D is connected with the base electrode of the second triode Q2, the emitter electrode of the second triode Q2 is grounded with the emitter electrode of the third triode Q3, the collector electrode of the third triode Q3 is connected with the base electrode of the second triode Q2, and the collector electrode of the second triode Q2 is connected with the base electrode of the fourth triode Q4;
The base of the third triode Q3 is connected with the collector of the fifth triode Q5, the collector of the fourth triode Q4 is connected with the first appointed resistor R4, the emitter of the fourth triode Q4 is connected with the base of the fifth triode Q5, and the emitter and the base of the fifth triode Q5 are connected with a direct current power supply.
The sixth resistor R6 and the seventh resistor R7 are connected in series, and the other end of the sixth resistor R6 is connected with the inverter D, and the other end of the seventh resistor R7 is connected with the base of the second triode Q2.
The eighth resistor R8 is connected between the base electrode of the second triode Q2 and the emitter electrode of the second triode Q2, the ninth resistor R9 is connected between the base electrode of the third triode Q3 and the collector electrode of the fifth triode Q5, and the tenth resistor R10 is connected between the collector electrode of the second triode Q2 and the base electrode of the fourth triode Q4;
the eleventh resistor R11 is connected between the base and the emitter of the fourth triode Q4, the twelfth resistor R12 and the thirteenth resistor R13 are connected in parallel, and the twelfth resistor R12 and the thirteenth resistor R13 are connected between the emitter and the base of the fifth triode Q5.
One end of the fourth capacitor C4 is connected with a common end generated by the series connection of the sixth resistor R6 and the seventh resistor R7, the other end of the fourth capacitor C4 is grounded, one end of the fifth capacitor C5 is connected with the emitter of the fifth triode Q5, and the other end of the fifth capacitor C5 is grounded.
While this specification contains many specific implementation details, these should not be construed as limitations on the scope of any invention or of what may be claimed, but rather as descriptions of features of specific embodiments of particular inventions. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. On the other hand, the various features described in the individual embodiments may also be implemented separately in the various embodiments or in any suitable subcombination. Furthermore, although features may be acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
Similarly, although operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous. Moreover, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
Thus, particular embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. Furthermore, the processes depicted in the accompanying drawings are not necessarily required to be in the particular order shown, or sequential order, to achieve desirable results. In some implementations, multitasking and parallel processing may be advantageous.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather to enable any modification, equivalent replacement, improvement or the like to be made within the spirit and principles of the application.