An electronic device is disclosed which can be removably coupled to glasses disposed on the head, which comprises: a rotation sensor (14) which generates electrical signals; a processing unit (12), electrically coupled to the rotation sensor and controllable to determine, based on the electrical signals generated by the rotation sensor during an interval of time, a reference angular position of the head. The processing unit can be further controlled to detect, on the basis of electrical signals generated by the rotation sensor as a result of the time interval, whether the angular position of the head drops in or out. an interval of angular positions comprising the reference angular position. Figure for the abstract: Fig. 8 On décrit un dispositif électronique pouvant être couplé de manière amovible à des lunettes disposées sur la tête (« head »), lequel comprend : un capteur de rotation (14) qui génère des signaux électriques ; une unité de traitement (12), électriquement couplée au capteur de rotation et pouvant être commandée pour déterminer, en fonction des signaux électriques générés par le capteur de rotation pendant un intervalle de temps, une position angulaire de référence de la tête. L’unité de traitement peut être outre être commandée pour détecter, sur la base de signaux électriques générés par le capteur de rotation suite à l’intervalle de temps, si la position angulaire de la tête chute à l’intérieur ou à l’extérieur d’un intervalle de positions angulaires comprenant la position angulaire de référence. Figure pour l’abrégé : Fig. 8