PIEZO KEY SENSING CIRCUIT AND METHOD FOR TESTING THE PIEZO KEY SENSING CIRCUIT

Information

  • Patent Application
  • 20150260770
  • Publication Number
    20150260770
  • Date Filed
    April 30, 2015
    9 years ago
  • Date Published
    September 17, 2015
    9 years ago
Abstract
A method tests a piezo key sensing circuit having a piezo element and verifies that it is properly functioning. A capacitance of the piezo element is discharged. Then the capacitance of the piezo element is charged during a predetermined time period. An output signal of the piezo element is measured during the predetermined time period resulting in a measured output signal. An operating condition of the piezo key sensing circuit is determined based on the measured output signal.
Description
BACKGROUND OF THE INVENTION
Field of the Invention

The invention relates to a method for testing a piezo key sensing circuit and its related electrical connections and to a piezo key sensing circuit having a built-in diagnostic capability.


Piezo keyboards and keypads for kitchen appliances need to be periodically checked to verify that their electrical connections to a sensing circuit and an electric path between the piezo keys and the sensing circuit function properly. This is important for the ability to make sure that all safety critical user interface keys are functional without having to add additional redundant circuitry to the device.


The piezo keyboard or keypad is based on the principle of the piezoelectric effect. By pressing a piezo key on the keypad, a piezo element or ceramic forming the piezo key generates a voltage pulse. The signal of the voltage pulse is amplified using integrated electronics to a switched output in which the actuation is now recorded. In the unactuated condition, the piezo element is in a high impedance state and the switch has a high resistance such as a resistance greater than 10 M ohms.


In addition, a piezo element exhibits a range of capacitance. There is a need to verify the functionality of the electronics in series with the piezo element and its electrical path to those components namely, for detecting a short circuit condition or an open condition. It is possible to use this capacitance to verify that all the electronics and electrical connections between the piezo element and the sensing microcontroller are present and functioning properly. Ideally, the testing is performed by using as many existing onboard electronic components for the testing circuit rather than adding addition components to perform the testing.


SUMMARY OF THE INVENTION

It is accordingly an object of the invention to provide a piezo key sensing circuit and a method for testing the piezo key sensing circuit which overcome the above-mentioned disadvantages of the prior art methods and devices of this general type, which efficiently tests the piezo key sensing circuit and uses only existing on-board electronic components.


With the foregoing and other objects in view there is provided, in accordance with the invention a method for testing a functionality of a piezo key sensing circuit. The method includes discharging a capacitance of a piezo element. Then the capacitance of the piezo element is allowed to recharge during a predetermined time period. An output signal of the piezo element is measured during the predetermined, repeatable, time period resulting in a measured output signal. An operating condition of the piezo key sensing circuit is determined based on the measured output signal.


The method allows a signal processor to check for a range of capacitance exhibited within a piezo key element by first discharging the capacitance and then measuring a signal during the recharge time following the discharge release. From the signal measured during the charge time, one can determine the state of the piezo key and its associated sensing electronic circuit to determine that it is properly functioning or that it needs repair. In addition, the charging and discharging cycles of the piezo element are easily to perform and are highly reproducible, thus the testing of the piezo element and its sensing circuit is highly accurate.


In accordance with an added mode of the invention, the capacitance of the piezo element is discharged by switching a terminal of the piezo element to a low voltage source such as zero volts. Then the capacitance of the piezo element is charged by switching the same terminal of the piezo element to a high impedance state. The charging and discharging of the capacitance of the piezo element can be performed by connecting a terminal of the piezo element to a digital I/O pin of a microprocessor and toggling a state of the digital I/O pin between a low voltage state (0 V) and a high impedance state.


In accordance with another mode of the invention, the output signal is amplified by an amplifier circuit before it is measured, resulting in an amplified output signal.


In accordance with an additional mode of the invention, the measured output signal determines if the piezo key sensing circuit is exhibiting a state selected from the group consisting of a short circuit state, an open state and a properly functioning state.


Ideally, an analog-to-digital converter within a microcontroller is provided for sensing the measured output signal and determining the operational condition of the piezo element.


In accordance with a further mode of the invention, the amplified output signal is transferred through a multiplexer having an output connected to an analog-to-digital converter pin of the microcontroller.


With the foregoing and other objects in view there is provided, in accordance with the invention a further method for testing a piezo key sensing circuit. The method includes charging a capacitance of a piezo element. Then the capacitance of the piezo element is allowed to discharge during a predetermined time period. An output signal of the piezo element is measured at the predetermined time resulting in a measured output signal. Finally, an operating condition of the piezo key sensing circuit is determined based on the measured output signal.


In accordance with an added mode of the invention, the capacitance of the piezo element is charged by applying a high voltage source (i.e. 5 volts) to a terminal of the piezo element. Then the capacitance of the piezo element is discharged by applying a high impedance state to the terminal of the piezo element. The charging and discharging of the capacitance can be performed by connecting the piezo element to a digital I/O pin of a microprocessor and toggling a state of the digital I/O pin between a digital high voltage state (i.e. 5 volts) and a high impedance state.


With the foregoing and other objects in view there is provided, in accordance with the invention a piezo key sensing circuit. The piezo key sensing circuit contains a microcontroller having a digital I/O pin and an analog-to-digital converter (ADC) pin. An amplifier circuit is provided and has an output coupled to the ADC pin. A piezo element is connected to the digital I/O pin and to the amplifier circuit. The microcontroller is programmed to: discharge a capacitance of the piezo element via the digital I/O pin; charge the capacitance of the piezo element during a predetermined time period via the digital I/O pin; measure an output signal of the piezo element during the predetermined time period resulting in a measured output signal via the ADC pin; and determine an operating condition of the piezo key sensing circuit based on the measured output signal.


Other features which are considered as characteristic for the invention are set forth in the appended claims.


Although the invention is illustrated and described herein as embodied in a piezo key sensing circuit and method for testing the piezo key sensing circuit, it is nevertheless not intended to be limited to the details shown, since various modifications and structural changes may be made therein without departing from the spirit of the invention and within the scope and range of equivalents of the claims.


The construction and method of operation of the invention, however, together with additional objects and advantages thereof will be best understood from the following description of specific embodiments when read in connection with the accompanying drawings.





BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWING

The single FIGURE of the drawing is a block diagram of a piezo key sensing circuit having built in diagnostic capabilities according to the invention.





DETAILED DESCRIPTION OF THE INVENTION

Referring now to the single FIGURE of the invention in detail, there is shown a piezo key 1 and its sensing circuit 10. The piezo key 1 is formed from a piezo element which has an inherent capacitance associated with it that can be tested for verifying a proper operation of the piezo key 1 and its sensing circuit 10. During normal operation, the piezo key 1 is connected to a voltage source 2, an amplifying circuit 3, a multiplexer 4 and a microprocessor 5 having an analog-to-digital (ADC) converter.


The invention relates to determining the proper functioning of the piezo key 1, the component parts 3, 4, 5 of the piezo key sensing circuit 10 and associated wiring without having to add additional diagnostic circuitry to the piezo key sensing circuit 10. The testing will verify the electrical connections between the components 1, 3, 4, 5 and have the ability to determine at least an open condition, a short circuit condition, or a proper functioning condition of the piezo key sensing circuit 10.


By adding a signal path between one terminal 8 of the piezo key 1 and a digital input/output (I/O) 7 of the microcontroller 5, one has the ability to test for a single point electrical open condition and a signal point electrical short condition within the measuring signal path between the piezo key 1 and the microcontroller 5. Therefore self-diagnostic capabilities of the piezo key's 1 sensing ability are now possible and more specifically the signals of piezo key 1 can now be sensed.


In order to test the piezo key sensing circuit 10, the digital I/O pin 7 of the microcontroller 5 is set to a high impedance state. This setting allows a capacitance within the piezo key 1 to charge appropriately. During a subsequent diagnostic test sequence, the microcontroller 5 sets the digital I/O pin 7 to an output state at a known voltage level. For example, a low voltage level is present at the digital I/O pin 7. Due to the low voltage level, the capacitance of the piezo key discharges. Once the capacitance is discharged, the microcontroller 5 can then be reset by putting the digital I/O pin 7 to a high impedance state. An output signal from the piezo key 1 is amplified via the amplifier circuit 3 having an amplifier 11, a feedback resistor RF and a control resistor R1. The amplifier circuit 3 outputs an amplified output signal AS to the multiplexer 4. The amplified output signal AS being an analog signal is forwarded to the analog-to-digital converter input pin 6 of the microcontroller 5 for sensing a change in voltage. A known time constant for the piezo key's capacitance allows the signal to recharge at a known rate. Therefore, a measured analog-to-digital (ADC) signal value is tested and compared to given limits as the piezo key 1 recharges. As this is an easy to perform test sequence, the test is highly repeatable where the ADC signal is measured during a given time period depending on a state of the digital I/O pin 7.


Conversely, the digital I/O pin 7 could have been set to a high voltage level (e.g. Vsupply full rail (i.e. 5 volts) and the piezo key 1 would charge up rather than discharge at a constant time rate. After the piezo key 1 has charged, the digital I/O pin 7 is set to a high impedance state. At this point the capacitance will discharge at a known rate. Once again the output signal of the amplifier is tested to see if it is within given limits.


If during the diagnostic test sequence, the ADC measured value is not within known limits, the microcontroller 5 can determine that the piezo key sensing circuit 10 is defective. More specifically, if a short circuit condition or an open condition were to exist, the signal detected by the microcontroller 5 would not toggle its state during a known time frame.


In summary, the invention uses the properties of the capacitance of the piezo key 1 to verify the functioning of the piezo key sensing circuit 10 and its related wiring. The testing is performed using a previously unused digital I/O pin 7 of the microprocessor 5 or by an additional use of the digital I/O pin 7. Therefore the testing can be done by software and the addition of one more wire trace between the terminal 8 of the piezo key 1 and the digital I/O pin 7 of the microprocessor 5.


The piezo key 1 is a part of a household appliance such as a refrigerator, freezer, washing machine, dryer, dish washing machine, oven, stove, cook top, etc. and this simple testing verifies that critical operating components of the household appliance are functioning. For example, the on/off button of an oven.

Claims
  • 1. A method for testing a functionality of a piezo key sensing circuit, which comprises the steps of: discharging a capacitance of a piezo element;charging the capacitance of the piezo element during a predetermined time period;measuring an output signal of the piezo element during the predetermined time period resulting in a measured output signal; anddetermining an operating condition of the piezo key sensing circuit based on the measured output signal.
  • 2. The method according to claim 1, which further comprises discharging the capacitance of the piezo element by applying a low voltage source to a terminal of the piezo element.
  • 3. The method according to claim 2, which further comprises charging the capacitance of the piezo element by applying a high impedance state to the terminal of the piezo element.
  • 4. The method according to claim 1, which further comprises connecting a terminal of the piezo element to a digital I/O pin of a microprocessor and toggling a state of the digital I/O pin between a low voltage state and a high impedance state.
  • 5. The method according to claim 4, which further comprises amplifying the output signal via an amplifier circuit before the output signal is measured, resulting in an amplified output signal.
  • 6. The method according to claim 1, which further comprises determining from the measured output signal that the piezo key sensing circuit is exhibiting a state selected from the group consisting of a short circuit state, an open state and a properly functioning state.
  • 7. The method according to claim 1, which further comprises providing a microcontroller for sensing the measured output signal for determining the operational condition of the piezo key sensing circuit.
  • 8. The method according to claim 5, which further comprises forwarding the amplified output signal to a multiplexer having an output connected to an analog-to-digital converter pin of the microcontroller.
  • 9. A method for testing a piezo key sensing circuit, which comprises the steps of: charging a capacitance of a piezo element;discharging the capacitance of the piezo element during a predetermined time period;measuring an output signal of the piezo element during the predetermined time period resulting in a measured output signal; anddetermining an operating condition of the piezo key sensing circuit based on the measured output signal.
  • 10. The method according to claim 9, which further comprises charging the capacitance of the piezo element by applying a high voltage source to a terminal of the piezo element.
  • 11. The method according to claim 10, which further comprises discharging the capacitance of the piezo element by applying a high impedance state to a terminal of the piezo element
  • 12. The method according to claim 9, which further comprises connecting the piezo element to a digital I/O pin of a microprocessor and toggling a state of the digital I/O pin between a high voltage state and a high impedance state.
  • 13. The method according to claim 12, which further comprises amplifying the output signal via an amplifier circuit before the output signal is measured, resulting in an amplified output signal.
  • 14. The method according to claim 9, which further comprises determining from the measured output signal that the piezo key sensing circuit is exhibiting a state selected from the group consisting of a short circuit state, an open state, and a properly functioning state.
  • 15. The method according to claim 9, which further comprises providing a microcontroller for sensing the measured output signal and determining the operational condition of the piezo key sensing circuit.
  • 16. The method according to claim 13, which further comprises forwarding the amplified output signal to a multiplexer having an output connected to an analog-to-digital converter pin of the microcontroller.
  • 17. A piezo key sensing circuit, comprising: a microcontroller having a digital I/O pin and an analog-to-digital converter (ADC) pin;an amplifier circuit having an output coupled to said ADC pin;a piezo element connected to said digital I/O pin and to said amplifier circuit;said microcontroller programmed to: discharge a capacitance of said piezo element via said digital I/O pin;charge the capacitance of said piezo element during a predetermined time period via said digital I/O pin;measure an output signal of said piezo element during the predetermined time period resulting in a measured output signal via said ADC pin; anddetermine an operating condition of the piezo key sensing circuit based on the measured output signal.
  • 18. The piezo key sensing circuit according to claim 17, wherein said microprocessor is programmed to toggle a state of said digital I/O pin between a low voltage state and a high impedance state.
  • 19. The piezo key sensing circuit according to claim 17, wherein said microprocessor is programmed to determine from the measured output signal that the piezo key sensing circuit is exhibiting a state selected from the group consisting of a short circuit state, an open state, and a properly functioning state.
  • 20. A piezo key sensing circuit, comprising: a microcontroller having a digital I/O pin and an analog-to-digital converting (ADC) pin;an amplifier circuit having an output coupled to said ADC pin;a piezo element connected to said digital I/O pin and to said amplifier circuit;said microcontroller programmed to: charge a capacitance of said piezo element;discharge the capacitance of said piezo element during a predetermined time period;measure an output signal of said piezo element during the predetermined time period resulting in a measured output signal; anddetermine an operating condition of the piezo key sensing circuit based on the measured output signal.
  • 21. The piezo key sensing circuit according to claim 20, wherein said microprocessor is programmed to toggle a state of said digital I/O pin between a high voltage state and a high impedance state.
  • 22. The piezo key sensing circuit according to claim 20, wherein said microprocessor is programmed to determine from the measured output signal that the piezo key sensing circuit is exhibiting a state selected from the group consisting of a short circuit state, an open state, and a properly functioning state.
CROSS-REFERENCE TO RELATED APPLICATION

This is a continuation application, under 35 U.S.C. §120, of copending international application No. PCT/IB2012/003093, filed Oct. 31, 2012, which designated the United States.

Continuations (1)
Number Date Country
Parent PCT/IB2012/003093 Oct 2012 US
Child 14700359 US