SUMMERY OF THE UTILITY MODEL
In order to solve the problems, the utility model provides a sensor driving circuit, a system and an air conditioner, which can flexibly drive a sensor to work or stop working, realize stable transmission of data acquired by the sensor, and can be applied to the air conditioner to drive a PM2.5 sensor, so that the air conditioner can be assisted to adjust the indoor air quality, and the comfortable experience of a user is improved.
According to an embodiment of the present invention, there is provided a sensor driving circuit including: the control circuit module and the communication circuit module; the control circuit module comprises a signal input end, a power end and a signal output end, wherein the power end is connected with a power supply, the signal output end is connected with the power input end of the sensor, and the control circuit module is used for controlling the power end to be connected with the signal output end when the signal input end is at a low level and controlling the power end to be disconnected with the signal output end when the signal input end is at a high level; the input end of the communication circuit module is connected with the data output end of the sensor, the output end of the communication circuit module is connected with the control chip, and the communication circuit module is used for transmitting the collected data of the sensor to the control chip.
Through adopting above-mentioned technical scheme, can realize getting electric or not getting electric according to control circuit module's signal input part control sensor, thereby can drive sensor work or stop work in a flexible way, the circuit consumption has been reduced, simultaneously can pass through communication circuit module real-time transmission to control chip with the data collection of sensor, the stable transmission of sensor data collection has been realized, and this sensor drive circuit can be applied to and carry out drive work to PM2.5 sensor in the air conditioner, and then can assist the air conditioner to adjust the room air quality, promote user's comfortable nature experience.
Preferably, the control circuit module includes a switching device, the switching device is respectively connected to the signal input terminal, the power terminal, and the signal output terminal, and the switching device is turned on when the signal input terminal is at a low level and turned off when the signal input terminal is at a high level.
By adopting the technical scheme, the switching device is arranged in the control circuit module, so that the on-off state of the sensor and the power supply is stable, the sensor is reliably driven, and the power consumption of the circuit is reduced.
Preferably, the switching device is a triode, a base of the triode is connected with the signal input end, an emitter of the triode is connected with the power supply end, and a collector of the triode is connected with the signal output end.
By adopting the technical scheme, the sensor is controlled to be powered on or powered off based on the triode, the sensor can be prevented from being always in a power-on state, the standby power consumption of a circuit and the loss of the sensor are reduced, and the service life of the sensor is prolonged.
Preferably, the control circuit module includes a first voltage-reducing element and a second voltage-reducing element; two ends of the second voltage reduction element are respectively connected with the base electrode of the triode and the signal input end; one end of the first voltage reduction element is connected between the emitting electrode of the triode and the power supply end, and the other end of the first voltage reduction element is connected between the base electrode of the triode and the second voltage reduction element.
By adopting the technical scheme, the triode is matched with the voltage reduction element in the control circuit module in a connecting mode, so that the saturation conduction and cut-off states of the triode are stable, when the sensor is required to be used for data acquisition, the sensor and the power supply are switched on by the control circuit module, the circuit is simple, and the sensor is flexibly controlled.
Preferably, the first voltage-reducing element and the second voltage-reducing element are both resistors.
By adopting the technical scheme, the resistor is arranged between the triode and the signal input end, and the functions of voltage division and current limitation are achieved.
Preferably, the communication circuit module includes a pull-up resistor, one end of the pull-up resistor is connected to the power supply, and the other end of the pull-up resistor is connected between the input end and the output end of the communication circuit module.
By adopting the technical scheme, the pull-up resistor is arranged for the communication circuit module, the communication circuit is ensured to be in a power-on state in an idle state, signals are stable when the sensor sends collected data to the control chip, and the reliability of data transmission is high.
Preferably, the communication circuit module includes a filter unit, one end of the filter unit is connected to the pull-up resistor, and the other end of the filter unit is connected to an output end of the communication circuit module.
Through adopting above-mentioned technical scheme, set up the filtering unit between the output of pull-up resistance and communication circuit module, can make and realize better filtering effect, make communication signal reliable and stable, promoted sensor data transmission's stability.
Preferably, the filtering unit includes a current-limiting resistor and a filtering capacitor, two ends of the current-limiting resistor are respectively connected to the pull-up resistor and the output end of the communication circuit module, one end of the filtering capacitor is connected between the current-limiting resistor and the output end of the communication circuit module, and the other end of the filtering capacitor is grounded.
By adopting the technical scheme, the current-limiting resistor and the filter capacitor are arranged, and the effects of current limiting and filtering are simultaneously achieved on the communication circuit.
According to an embodiment of the present invention, there is provided in another aspect a sensor driving system including: a sensor, a control chip and the sensor driving circuit of any one of the first to third aspects; the sensor comprises a PM2.5 sensor or a carbon dioxide sensor; the control chip comprises a control signal output end and a data acquisition input end, and the control signal output end is used for outputting a high level or a low level to the signal input end in the sensor driving circuit; and the data acquisition input end is connected with the output end of the communication circuit module in the sensor driving circuit.
According to an embodiment of the present invention, in another aspect, an air conditioner is provided, which includes an indoor unit, an outdoor unit, and the sensor driving system of the second aspect.
The utility model has the following beneficial effects: through setting up control circuit module and communication circuit module for the sensor, can realize getting electric or not getting electric according to control circuit module's signal input part control sensor, thereby can drive sensor work or stop work in a flexible way, the circuit consumption has been reduced, simultaneously can pass through communication circuit module real-time transmission to control chip with the data collection of sensor, the stable transmission of sensor data collection has been realized, and this sensor drive circuit can be applied to and carry out drive work to PM2.5 sensor in the air conditioner, and then can assist the air conditioner to adjust indoor air quality, promote user's comfortable nature experience.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and features of the utility model will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the utility model and that it is not intended to limit the utility model to the particular embodiments disclosed. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
The present embodiment provides a sensor driving circuit, which includes a control circuit module 11 and a communication circuit module 12, as seen from a sensor driving circuit diagram shown in fig. 1.
As shown in fig. 1, the control circuit module 11 includes a signal input end 111, a power end connected to the +5V power source, and a signal output end 112, the signal output end 112 is connected to the power input end S3 of the sensor 13, and the control circuit module 11 is configured to control the power end to be turned on with the signal output end when the signal input end 111 is at a low level and to be turned off with the signal output end when the signal input end 111 is at a high level.
The signal input end 111 of the control circuit module 11 may be connected to a controller of the air conditioner, and when the air conditioner needs to use a sensor to perform data acquisition, a low level is input to the signal input end 111 through the controller, so that the sensor is powered on to work; when the sensor is not needed to be used for data acquisition, a high level is input to the signal input end 111 through the controller, and the sensor is powered off and stops working.
The input end 121 of the communication circuit module 12 is connected to the data output end S2 of the sensor 13, the output end 122 of the communication circuit module 12 is connected to the control chip, and the communication circuit module 12 is configured to transmit the data collected by the sensor 13 to the control chip. After the sensor 13 collects data, the data output end S2 transmits the collected data to the control chip through the communication circuit module 12.
The above-mentioned sensor drive circuit that this embodiment provided, through setting up control circuit module and communication circuit module for the sensor, can realize getting electric or not getting electric according to control circuit module's signal input part control sensor, thereby can drive sensor work or stop work in a flexible way, the circuit consumption is reduced, simultaneously can pass through communication circuit module real-time transmission to control chip with the data collection of sensor, the steady transmission of sensor data collection has been realized, and this sensor drive circuit can be applied to and carry out drive work to PM2.5 sensor in the air conditioner, and then can assist the air conditioner to adjust the indoor air quality, promote user's comfortable nature and experience.
In a possible implementation manner, the control circuit module includes a switching device, the switching device is respectively connected to the signal input terminal, the power terminal, and the signal output terminal, and the switching device is turned on when the signal input terminal is at a low level and turned off when the signal input terminal is at a high level. The switch device is arranged in the control circuit module, so that the on-off state of the sensor and the power supply is stable, the sensor is reliably driven, and the power consumption of the circuit is reduced.
As shown in fig. 1, the switching device is a transistor Q1, a base b of a transistor Q1 is connected to the signal input terminal 111, an emitter e of a transistor Q1 is connected to a power supply terminal, and a collector c of a transistor Q1 is connected to the signal output terminal 112.
The triode Q1 can be a PNP type triode, and can prevent the sensor from being always in a power-on state by controlling the sensor to be powered on or powered off based on the triode, so that the standby power consumption of the circuit and the loss of the sensor are reduced, and the service time of the sensor is prolonged.
In one possible implementation, the control circuit module includes a first voltage-reducing element and a second voltage-reducing element; the first voltage dropping element and the second voltage dropping element may both be resistors. The resistors are arranged between the triodes and the signal input ends, so that the functions of voltage division and current limitation are achieved.
As shown in fig. 1, two ends of the second voltage-reducing element R2 are respectively connected to the base b of the transistor Q1 and the signal input end 111; the first voltage reduction element R1 has one end connected between the emitter e of the transistor Q1 and the power supply terminal, and the other end connected between the base b of the transistor Q1 and the second voltage reduction element R2. The triode is connected with the voltage reduction element in a matched mode, so that the saturation conduction and cut-off states of the triode are stable, when the sensor is required to be used for data acquisition, the sensor is connected with the power supply through the control circuit module, the circuit is simple, and the sensor is flexibly controlled.
In practical application, when the signal input end 111 of the control circuit module is at a high level, the triode Q1 is in a cut-off state, and the sensor is not powered; when the signal input end 111 of the control circuit module is at a low level, the triode Q1 is in a conducting state, the sensor is powered on when the 5V power supply is connected, and the sensor is in a working state.
In a possible embodiment, when the sensor is a PM2.5 sensor, the transistor Q1 may be a 8550 transistor, and the maximum voltage between the collector c and the emitter e of the transistor Q1 is 45V, and the maximum current is 1.5A, which are much higher than the actual working condition of the PM2.5 sensor, so as to meet the model selection requirement. The resistance of the first step-down element R1 may be 10k Ω, and the resistance of the second step-down element R2 may be 4.7k Ω.
When the signal input end 111 of the control circuit module is at a low level (0V), current passes through R1 and R2 from a +5V power supply and then reaches the signal input end 111(0V), the divided voltage at two ends of R1 is the voltage at two ends of the base and the emitter of the triode Q1, the divided voltage at two ends of R1 is 3.4V, 3.4V is greater than the threshold voltage of conduction of the triode Q1 by 0.7V, the triode Q1 is in saturated conduction, the PM2.5 sensor is powered on, at this time, the voltage at two ends of the base and the emitter of the triode Q1 is clamped at 0.7V, namely the voltage at two ends of R1 is 0.7V, the voltage at two ends of R2 is calculated to be 4.3V, and the working currents of R1 and R2 are both small, power consumption is low, and power supply control is reliable.
In one possible embodiment, as shown in fig. 1, the communication circuit module 12 includes a pull-up resistor R3, one end of the pull-up resistor R3 is connected to the +5V power supply, and the other end of the pull-up resistor R3 is connected between the input terminal 121 and the output terminal 122 of the communication circuit module. By setting the pull-up resistor for the communication circuit module, the communication circuit is ensured to be in a power-on state in an idle state, signals are stable when the sensor sends collected data to the control chip, and the reliability of data transmission is high.
In a possible embodiment, the communication circuit module 12 includes a filter unit, one end of the filter unit is connected to the pull-up resistor, and the other end of the filter unit is connected to the output terminal of the communication circuit module. The filtering unit is arranged between the pull-up resistor and the output end of the communication circuit module, so that a better filtering effect can be realized, communication signals are stable and reliable, and the stability of sensor data transmission is improved.
As shown in fig. 1, the filtering unit includes a current limiting resistor R4 and a filtering capacitor C1, two ends of the current limiting resistor R4 are respectively connected to the pull-up resistor R3 and the output terminal 122 of the communication circuit module, one end of the filtering capacitor C1 is connected between the current limiting resistor R4 and the output terminal 122 of the communication circuit module, and the other end of the filtering capacitor C1 is grounded. The current limiting resistor and the filter capacitor are arranged, so that the current limiting and filtering effects on the communication circuit are achieved at the same time.
In one possible embodiment, the sensor 13 may use single-phase UART communication, i.e., the sensor sends the detection data to the control chip at regular time. The data output terminal S2 of the sensor is a UART transmission port. R3 is used as a pull-up resistor (the resistance can be at 10K omega), the level of the communication line is ensured to be 5V in the idle state, R4 is used as a current-limiting resistor, and C1 is used as a filter capacitor. The selection of the R4 and C1 values needs to be combined with the baud rate of UART communication of the sensor, if the baud rate of UART communication is 600, the resistance value of the current limiting resistor R4 can be 1K omega, and the filtering capacitor C1 can adopt 102 capacity values. In order to prevent static electricity from damaging a chip or a single board in a production process, the filter capacitor C1 can be packaged in 0805 or 1206, and meanwhile, in order to obtain a better filtering effect, the current limiting resistor R4 and the filter capacitor C1 can be close to relevant pins of a control chip (MCU) as much as possible. The resistance of the resistor R4 and the capacitance of the capacitor C1 are not limited to the values recommended in the present design, but must match the baud rate of the UART communication of the sensor.
The sensor driving circuit provided by the embodiment can control the on-off of the sensor and the power supply, can control the power of the sensor when the sensor is used, reduces the standby power consumption, can send the collected data of the sensor during working to the control chip at regular time for signal processing, and is reliable in control of the on-off of the power supply, low in power consumption, stable and reliable in communication signal and high in reliability and simplicity of the circuit.
Corresponding to the sensor driving circuit provided in the above embodiments, an embodiment of the present invention provides a sensor driving system including: the sensor, the control chip and the sensor driving circuit provided by the embodiment; the sensor may be a PM2.5 sensor or a carbon dioxide sensor.
When the sensor is a PM2.5 sensor, referring to the schematic diagram of the sensor driving system shown in fig. 2, the control chip MCU includes a control signal output terminal M1 and a data acquisition input terminal M2, and the control signal output terminal M1 is configured to output a high level or a low level to a signal input terminal in the sensor driving circuit; and the data acquisition input end M2 is connected with the output end of the communication circuit module in the sensor driving circuit.
When the control chip needs to acquire the collected data of the PM2.5 sensor, the control chip outputs a low level through a control signal output end M1 so as to enable the PM2.5 sensor to be powered on to work; when the PM2.5 sensor is not required to be used, the high level is output through the control signal output end M1, and the PM2.5 sensor is powered off and stops working. And the communication circuit module sends the detection data of the PM2.5 sensor to the control chip at regular time.
Corresponding to the sensor driving system provided in the foregoing embodiment, the present embodiment provides an air conditioner, which includes an indoor unit, an outdoor unit, and the sensor driving system provided in the foregoing embodiment.
Through set up sensor actuating system in the air conditioner, can gather indoor PM2.5 concentration when the air conditioner moves, and then can judge whether indoor control quality is relatively poor to make the air conditioner adjust indoor air quality according to the detected data of sensor.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the utility model as defined in the appended claims.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the sensor driving system and the air conditioner disclosed by the embodiment, the description is relatively simple because the sensor driving system and the air conditioner correspond to the sensor driving circuit disclosed by the embodiment, and the relevant points can be obtained by referring to the description of the method part.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the utility model. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the utility model as defined in the appended claims.