Self adapting haptic device
Methods and apparatuses are disclosed that allow an electronic device to autonomously adapt one or more user alerts of the electronic device. For example, some embodiments may include a method for operating a haptic device including driving a haptic device using a control signal, measuring a frequency related to the operation of the haptic device and comparing the measured frequency with a target frequency. A control signal is adjusted based on the comparison to drive the haptic device to the target frequency.
1. An electronic device that autonomously adjusts at least one operating parameter of a haptic device, the electronic device comprising:
a haptic device;
a sensor configured to monitor the haptic device during operation of the haptic device and generate a measured signal;
a feedback loop comprising:
a filter coupled to the sensor and operative to filter the measured signal, thereby generating a filtered measured signal; and
an error detector coupled to the filter, wherein the error detector is configured to compare the filtered measured signal with a target signal to generate an error signal; and
a controller configured to receive the error signal and adjust a control signal in response to the error signal to achieve a desired operational parameter.
2. The electronic device of claim 1 , wherein the sensor is an accelerometer.
3. The electronic device of claim 2 , wherein values from the accelerometer are iteratively used by the electronic device to adjust the control signal.
4. The electronic device of claim 3 , wherein the control signal is a pulse width modulation signal.
5. The electronic device of claim 1 , the electronic device is a phone and the adjustment of the control signal occurs within an integer number of rings of the phone.
6. The electronic device of claim 1 , wherein the haptic device is a vibrating device.