The present application claims the benefit of and priority to Chinese Patent Application 201110425519.0, filed Dec. 16, 2011, the entire contents of which are hereby incorporated by reference in their entirety.
The present disclosure relates to a system and method of reading and writing operating parameters and real-time data for a control device, and more particularly to a sensor faucet employing the described system and method.
Sensors and controllers (i.e. control devices), and particularly sensor faucet controllers in bathroom products, often need to set related operating parameters prior to operation. These operating parameters may also need to be adjusted during operation. Examples of operating parameters include sensing distance, valve-open time, delay, electrified time, and sampling interval.
Conventional sensor and/or controller-related products typically use a process to set and adjust operating parameters. First, the products use a DIP switch to set operating parameters. DIP switches are often used in the control units of FM pairing, automated switch control, and pre-wired circuits in wireless communication devices. DIP switches are capable of controlling high-low power levels, playing a role similar to that of a single chip microprocessor. Second, the products extract a special interface from a related product to read and write operating parameters. This special interface is used to achieve parameter and data transmission between external devices and the sensor/controller. Third, the products multiplex the other control interfaces of the sensor/controller, enabling the multiplexed control interfaces to simultaneously transmit operating parameters while conducting their own control operations.
When using a DIP switch or special interface to read and/or write and set operating parameters, it is necessary to conduct equipment joining. Using these conventional processes, it may not be possible to ensure a waterproof seal at the joining site. For bathroom fixtures that come into contact with water, this is a problem.
Also, if other interfaces are multiplexed, the original control functions of the multiplexed control interfaces become limited. This has an adverse effect on the normal control operations of the sensor/controller.
An embodiment of the present disclosure relates to a system for reading and writing operating parameters and real-time data for a control device. The system includes a power source, and a read/write device powered by the power source, the read/write device configured to conduct modulation of the power supply voltage based on a predetermined encoding mode. The system also includes a control device powered by the read/write device, wherein operating parameters and data information are exchanged between the control device and the read/write device, and the control device is configured to conduct demodulation of an output voltage transmitted by the read/write device. The system further includes power lines electrically connecting the power source to the read/write device and the read/write device to the control device.
Another embodiment of the present disclosure relates to a sensor faucet. The sensor faucet includes a system for reading and writing operating parameters and real-time data for a sensor or controller. The system includes a power source, and a read/write device powered by the power source, the read/write device configured to conduct modulation of the power supply voltage based on a predetermined encoding mode. The system also includes a control device powered by the read/write device, wherein operating parameters and data information are exchanged between the control device and the read/write device, and the control device is configured to conduct demodulation of an output voltage transmitted by the read/write device. The system further includes power lines electrically connecting the power source to the read/write device and the read/write device to the control device.
Another embodiment of the present disclosure relates to a method for reading and writing the operating parameters and real-time data of a control device. The method includes providing a power source, powering a read/write device with the power source, and causing the read/write device to conduct modulation of the power supply voltage based on a predetermined encoding mode. The method also includes powering a control device by the read/write device, and causing the control device and the read/write device to exchange operating parameters and data information, and to conduct demodulation of an output voltage transmitted by the read/write device. The method further includes providing from the power source by one or more power lines.
The disclosure will become more fully understood from the following detailed description, taken in conjunction with the accompanying figures, wherein like reference numerals refer to like elements, in which:
Before turning to the figures, which illustrate the exemplary embodiments in detail, it should be understood that the present application is not limited to the details or methodology set forth in the description or illustrated in the figures. It should also be understood that the terminology is for the purpose of description only and should not be regarded as limiting.
The read/write device of the present disclosure is configured to use power lines to read and write sensor/controller operating parameters and real-time data. The read/write device may not require an additional read/write communication interface, and may not be required to conduct multiplexing of the original control interfaces in the sensor/controller.
As shown in
The micro-control unit 204 controls its output level based on a set of encoding rules. In exemplary embodiments, it is possible to control the output voltage through the operational amplifier 203 and emitter follower 205, causing the output voltage of the emitter electrode 205b to generate small fluctuations, and thus enabling the read/write device 200 to provide a data output signal while providing the sensor/controller 300 with power.
For instance, the output voltage of the power source 100 may be set as V. When the micro-control unit 204 emits high power level VH, resistors R2 and R3 positioned between the power source 100 and micro-control unit 204 form divided voltage. Thus, the voltage at the normal phase input terminal 203a of the operational amplifier 203 (i.e. the connection points of resistors R2 and R3) is equal to (VIN−VH)R2/(R2+R3)+VH. This voltage is also the voltage of the emitter follower 205's base electrode. As a result, the emitter follower 205 operates in a saturation mode, and the collector electrode 205a and emitter electrode 205b approach a connection. Therefore, the voltages of the collector electrode 205a and emitter electrode 205b are nearly equal, or the voltage at emitter electrode 205b VB≈VIN. In addition, when the micro-control unit 204 emits low power (e.g. VL=0), the voltage of the normal phase input terminal of the operational amplifier 203 drops to VIN×R2/(R2+R3), which is also the emitter follower's 205 base electrode voltage. This drop in the base electrode voltage causes the emitter follower 205 to operate in follow mode, causing the emitter electrode 205b voltage VB to be lower than the collector electrode 205a voltage V. The specific relationship described can be shown as VB=0.8VIN.
When the micro-control unit 204 emits a series of high and low power levels, the output voltage from the read/write device 200 to the sensor/controller 300 will generate corresponding small fluctuations in the voltage modulation component 201. When the micro-control unit 204 emits high power, the output voltage will be roughly 100 percent of the total power supply voltage of the power source 100. When the micro-control unit 204 emits low power, the output voltage will be roughly 80 percent of the total power supply voltage of the power source 100.
The sensor/controller 300 may be equipped with a voltage sampling circuit 301, conducting sampling and analog-digital conversion of the output voltage coming from the read/write device 200. In the voltage sampling circuit 301, the output voltage is connected to the emitter follower 302's collector electrode through resistors R19 and R21, and the emitter electrode of the emitter follower 302 is grounded. The voltage at the connection point of resistors R19 and R21 is observed. When the emitter follower 302 is connected, the observed voltages at the connection points of resistors R19 and R21 are termed the divided voltage values of resistors R19 and R21. It is possible to send these divided voltage values directly to another micro-control unit for analog-digital conversion, thus obtaining the voltage fluctuation signal. Then decoding is conducted based on the encoding rules, and the information transmitted from the read/write device 200 is obtained by the sensor/controller 300 for conducting corresponding operations.
The sensor/controller 300 is configured to transmit data related to operating parameters back to the read/write device 200, enabling the read/write device 200 to make adjustments to these operating parameters. This being the case, the sensor/controller 300 is equipped with a current feedback component 303. In the current feedback component 303, a power device 304 (e.g. an electromagnetic valve coil, an LED indicator light, or an infrared emitting diode, etc.) is regularly controlled based on the encoding mode and data content, regularly monitoring and changing the power supply current.
The current feedback component 303 uses power lines to feed the current back to the current sampling and testing component 202 of the read/write device 200. When the power device 304 is running (e.g. when the electromagnetic coil is electrified or the infrared emitting diode is emitting infrared rays, etc.), the current of the sensor/controller 300 will be amplified. At the same time, the voltage at the external resistor R1 of the current sampling and testing component 202 will be amplified, and correspondingly, the output current of the ZXCT1009F integrated circuit chip in the current sampling and testing component 202 will be amplified. The voltage reflected at output resistor R4 will also be amplified. Conversely, when the power device 304 is not running (e.g. when the electromagnetic coil is not electrified or the infrared emitting diode is not emitting infrared rays, etc.), the voltage reflected at output resistor R4 of the current sampling and testing component 202 will drop. In the read/write device 200, the device may determine the change in the current through the current sampling and testing component 202. After decoding by the micro-control unit, the data information transmitted by the sensor/controller 300 is obtained for use (e.g., data processing).
In
As shown in
The data transfer formats of the present disclosure are not limited to a specific format. The data transfer formats can be defined according to actual use. For example, the present disclosure may employ a data definition format as shown in
The system of the present disclosure uses power lines to read and write sensor/controller operating parameters and real-time data. The system of the present disclosure does not employ an extra DIP switch or special lead wire interface at the sensing faucet itself. Therefore, it is not necessary to conduct special waterproof sealing. In addition, for similar products such as bathroom products, it is possible to use the system of the present disclosure to set factory settings and make on-site modifications to the operating parameters.
Number | Date | Country | Kind |
---|---|---|---|
201110425519.0 | Dec 2011 | CN | national |