Just such a project is [Radomir Dopieralski’s] set of wearable mechatronic cat ears. A cosplay accessory ... instead he’s using an accelerometer to detect head movement coupled to an Arduino ...
For example, when cats feel scared, their ears become completely flat on their head, creating a defensive posture to protect themselves. Aggression, by contrast, involves ears flattening backward ...