The present invention relates generally to proximity detection and position estimation, with application to estimating key position and key velocity in a musical keyboard instrument. In particular, the invention relates to a proximity and separation distance measurement system and method using inductive and eddy current loss with applications for estimating key press displacement in musical instruments.
There are several types of key position estimators for musical keyboards. In one prior art system, mechanical actuators are connected to the keys of a keyboard, each mechanical actuator coupled to a graduated shutter attenuating the path of an optical beam through the shutter, and to a detector which estimates key position from the measured optical signal intensity. This system has the disadvantage of requiring one position estimator for each key. In another prior art system by the present inventor, each key has a bottom surface, opposite of which is an LED (light emitting diode) source and an optical detector. The LED optical source reflects optical energy from the bottom surface of an associated key and reflected optical energy returns to an associated optical detector. As reflected optical energy follows the inverse square law, the separation distance may be estimated from detected optical intensity, and the optical sources may be multiplexed with the detectors all wired in parallel to reduce the number of analog to digital converters (ADC) by grouping the detectors for several keys, and repeating this in groups to estimate the positions of each of the 88 keys on a standard piano keyboard. However, this system also has several disadvantages. One disadvantage is the need to compensate for cross-channel interference, whereby optical energy reflecting from adjacent key optical sources from the bottom surface of the key couples into the detector for an unrelated adjacent key. Another disadvantage is that each key may have a different reflectivity, requiring a calibration that may change as airborn particles accumulate on the reflective surface. Most significantly, the optical detectors of the system are sensitive to ambient lighting which leaks through the keys and to the detectors below.
An improved key estimation system is desired which is insensitive to the reflectivity of the keys, insensitive to ambient light leaking through the keys, and does not require the cross-channel calibration of the prior art.
A first object of the invention is a capacitor in parallel with the series combination of an inductor in series with a current-inducing element such as a switch or current source, the inductor generating a magnetic field when energized which couples to a loss element generating eddy currents, the loss element positioned to generate eddy currents from the change in magnetic field generated by the inductor, the capacitor pre-charged to a charge voltage, closure of the switch resulting in a fraction of a cycle of natural resonant period of the capacitor and inductor, the switch thereafter opening, the voltage across the capacitor being read thereafter as an estimate of separation distance inferred from the inductive eddy current loss and change in inductance from the eddy current losses between the inductor and eddy current loss element, the capacitor voltage being linearized into an estimate of separation distance between the inductor and loss element.
In a second object of the invention, a series of estimates of separation distance between a substantially planar conductor and an inductor generating eddy currents in the substantially planar conductor are measured at the end of a quarter cycle of resonance and converted into Musical Instrument Digital Interface (MIDI) commands indicating at least one of a key velocity or position.
In a third object of the invention, a movable key of a musical instrument has a metallic tape on a surface facing an inductor, the metallic tape proximal to and substantially perpendicular to a magnetic field generated by an inductor, the inductor excited with a current which has at least one of a damping ratio or mutual inductance modified by eddy currents induced in the metal tape by current flowing in the inductor, the change in damping, mutual inductance, or eddy current loss periodically read as the voltage on a capacitor after the excitation current is initiated to form an estimate of separation distance between the inductor and the metallic tape.
In a fourth object of the invention, a movable surface has an electrically conductive loss element positioned on the moveable surface, the loss element coupled to a changing magnetic field generated by discharging a pre-charged capacitor into an inductor, thereby generating eddy currents in the loss element which are dependent on the separation distance between the inductor and loss element, the inductor and capacitor remaining connected for less than a quarter cycle of the natural resonance of the inductor and capacitor, the capacitor thereafter isolated from the inductor, the capacitor voltage measured at the end of a fixed interval, the voltage on the capacitor at the end of the interval linearized and forming an estimate of the separation distance between the inductor and the loss element.
In a first aspect of the invention, a keyboard musical instrument has a movable surface with a loss element, such as an electrically conductive material applied to a region of the movable surface, which is in proximity to an inductor in a fixed position with respect to the moveable surface, the separation distance from inductor to loss element (such as an electrically conductive surface) and inductor magnetic field sufficient to induce eddy currents from changes in current flow in the inductor magnetic field which is coupled to the conductive loss element material based on separation distance. The magnetic fields coupled between the movable conductive loss element material and fixed inductor generating the dynamic magnetic field are modified by eddy currents induced in the conductive loss element material, and also by the separation distance from the inductor to the loss element. An estimate of the separation distance may be formed from the effect of the eddy current losses to the inductor, as measured by a capacitor voltage coupled to the inductor during the pulsatile current at a fixed point in time after initiation of current flow in the inductor.
In one example of the invention, a capacitor is pre-charged to a charge voltage, the capacitor being in parallel with a series combination of an inductor and a switch element such as a field effect transistor (FET) or controllable current source. The inductor is configured to generate a magnetic field which induces eddy currents in a loss element such as a planar conductor positioned substantially perpendicular to the inductor central axis, the planar conductor positioned on a surface of the moveable key which moves with respect to the fixed position inductor. The measurement switch causes the capacitor to discharge into the inductor, and a current to flow in the inductor which is now in a resonant circuit with the capacitor. Before the end of a first cycle of the inductor/capacitor resonant circuit, the measurement switch opens, thereby freezing the capacitor voltage for subsequent reading by an analog to digital converter. In one example of the invention, the measurement switch opens before ¼ of an LC resonant cycle interval. The eddy currents induced in a loss element such as a planar conductor coupled to the inductor across a variable separation distance causes a quarter cycle of damped ringing, which results in a reduced amplitude at the end of the quarter cycle measurement interval. Due to the change in damping factor and mutual inductance from the inductor coupling to the negligible inductance of the loss element, the capacitor voltage at the end of the measurement interval is reduced with decreased separation distance between inductor and loss element, thereby providing a non-linear estimate of separation distance from the inductor to planar conductor. The capacitor voltage at the point of opening the current initiating element can then be read by the analog to digital converter, linearized, and provided as an estimate of key position or separation distance from inductor to conductive loss element such as aluminum or copper tape oriented substantially perpendicular to the winding axis of the inductor.
In another aspect of the invention, a single capacitor is pre-charged by a single pre-charge switch element, the single capacitor being in parallel with a plurality of inductor/switch elements, each inductor/switch operative to form eddy currents in combination with a planar conductor for each movable surface such as a key of a keyboard. In this manner, a single ADC may be used to read the capacitor voltage for a group of keys, each key having its separate inductor/switch actuated at a separate interval of time, each separate interval preceded by a capacitor pre-charging event, thereby reducing the ADC requirement to one per group of keys, each key having a separate measurement switch actuation control.
In a second step of operation, Precharge signal 102 is disabled by turning off switch element 110, and StMeas 106 is asserted, which initiates a current flow in inductor 114, which is now in an LC resonant circuit with capacitor 112. A damped sinusoidal current flow through inductor 114 begins, and prior to the end of a quarter cycle of resonant period of the LC circuit, StMeas 106 is de-asserted, and current flowing through inductor 114 is returned via clamp diode 116 until the current in inductor 114 dissipates. A decrease in separation distance between inductor 114 magnetic field and loss element 113 causes an increase in the damping of the LC circuit as well as a decrease in the inductance and increase in resonant frequency from the mutual inductance effect from coupling to the miniscule inductance of loss element 113, which causes a reduced capacitor voltage 112 at the end of an interval which is less than a quarter cycle of an LC resonant frequency. An increase in separation distance between inductor 114 magnetic field and loss element 113 causes a decrease in the damping of the LC circuit as well as the inductor to return to a value closer to its self-inductance, and an increased capacitor 112 voltage at the end of the measurement interval. After removal of StMeas 106 and opening of current source 120, the capacitor 112 voltage is frozen in its previous state of the LC resonant cycle, and the capacitor 112 voltage ToADC 104 may be read at any any time thereafter prior to the start of the next measurement cycle, such as by coupling to an ADC (analog to digital converter, not shown). Each measurement cycle repeats at regular intervals, each measurement of voltage at capacitor 112 being converted to a voltage read by an ADC, linearized according to the monotonic relationship which can be formed between capacitor 112 voltage at end of cycle associated with a separation distance from inductor 114 to loss element 113.
The inductor 114 L value and capacitor C 112 form a damped resonant circuit with a cycle time 1/2π√{square root over (LC)}, where L is the effective inductance of 114 which including self-inductance and mutual inductance to loss element 113 which has negligible inductance. The mutual inductance which reduces the inductance of L is dependent on separation distance and dynamic flux coupling from the inductor 114 to loss element 113, and the pre-charge applied to capacitor 112 starts the damped resonance cycle with the closure of switch 120 of
The relationship between capacitor voltage 204 at the end of the measurement cycle and the separation distance between loss element and inductor is monotonic, but may be non-linear, whereas the desired estimate is of a separation distance between loss element and the inductor. For this reason, it may be desirable to linearize the ADC readings 310 of the capacitor voltage 204 using a look-up table of correspondences, or a second order or higher equation which curve fits the capacitor voltage to estimates of separation distance. Additionally, it may be desirable to use adjacent time sequence samples of the estimated separation distance to form a moveable surface velocity, such as for sending data related to key position and velocity in the Musical Instrument Data Interface (MIDI) format. In another example of the invention for a musical instrument having keys in a rest position and a depressed position, a calibration sequence may be performed to associate a first calibration value with a moveable surface rest measurement and a second calibration value with a moveable surface depressed position, thereby providing endpoints for a range of separation distance estimates and capacitor voltage samples. The first and second calibration values may be used in conjunction with the capacitor voltages which are read at the end of the StMeas interval, and used to scale the capacitor ADC voltage to form a scaled value for application to a linearizing function using a look-up table or polynomial of second or greater order.
Although the invention may be generally practiced to estimate distance between a movable surface and an inductor,
In a preferred example, inductor 618 generates a magnetic field which is substantially perpendicular to the conductive plane of loss element 618, where substantially perpendicular is understood to be within 45 degrees of perpendicular, or any angle which couples a magnetic field generated by inductor 618 into eddy current losses. It is known from Lenz law that eddy current losses are present in any electrical conductor placed perpendicular to a changing magnetic field such as produced by inductor 618. Accordingly, in a preferred example of the invention, inductor 618 does not include an enclosed magnetic return path, such that the magnetic field is directed toward loss element 620. Loss element 620 can be a conductive metal containing at least one of: copper, aluminum, or other electrical conductor, preferably as a continuous planar conductor spanning a region of key 602 magnetically coupled to, and substantially perpendicular to the axis of, inductor 618. The conductive metal can be attached to key 602 using an adhesive, or any other suitable attachment means.
In one example of the invention, an 88 key piano utilizes 5 groups of 16 circuits (such as 412-1 to 412-16) and a group of 8 circuits (412-1 to 412-8), requiring only 6 ADC channels (one for each group). The group of 8 circuits may sample at double the rate of the groups of 16 circuits, or it may preferably sample at the same rate for consistency. In another example of the invention, 8 groups of 11 circuits (412-1 to 412-11) may be used for 88 keys, requiring 8 ADC inputs.
The loss element magnetically coupled to the changing fields of the inductor may include any conductive surface which is coupled to the magnetic field of a respective inductor for generation of eddy currents. For example, the loss element can be a metallic tape such as copper or aluminum with self-adhesive backing. It is preferable that the axis of the inductor be substantially perpendicular to the surface of the loss element for maximum coupling.
The loss element may take the form of a planar conductor which may be any thickness or shape sufficient to generate eddy currents from pulsatile current flow in an inductor magnetically coupled to the loss element. In a preferred embodiment, the loss element is aluminum self-adhesive tape, and in an example such as 620 of
The present examples are provided for illustrative purposes only, and are not intended to limit the invention to only the embodiments shown.