Patent attributes
An electronic device such as a pair of headphones may be provided with ear cups having speakers for playing audio to a user. Capacitive sensor electrodes may be used in capturing capacitive sensor ear images that are processed by a machine learning classifier to determine whether the headphones are being worn in a reversed or unreversed orientation. The capacitive sensor electrodes may include grill electrodes that overlap at least part of a speaker grill, cushion electrodes that make capacitive sensor measurements through ring-shaped ear cup cushions that surround the speaker grills, and ring electrodes. The ring electrodes may be formed from metal traces on a flexible printed circuit. The flexible printed circuit may include a portion that wraps around each speaker grill and that is surrounded by a corresponding one of the cushions.