Patent attributes
Ear buds may have optical proximity sensors and accelerometers. Control circuitry may analyze output from the optical proximity sensors and the accelerometers to identify a current operational state for the ear buds. The control circuitry may also analyze the accelerometer output to identify tap input such as double taps made by a user on ear bud housings. Samples in the accelerometer output may be analyzed to determine whether the samples associated with a tap have been clipped. If the samples have been clipped, a curve may be fit to the samples. Optical sensor data may be analyzed in conjunction with potential tap input data from the accelerometer. If the optical sensor data is ordered, a tap input may be confirmed. If the optical sensor data is disordered, the control circuitry can conclude that accelerometer data corresponds to false tap input associated with unintentional contact with the housing.