The present invention relates to a controller for an aerosol generator having a vibration head for generating an aerosol, the controller comprising: a connection unit (110) for connecting an electric contacting element (300), the electric contacting element being connectable with the vibration head (210); a detection unit (120) for detecting an electric energy storage capacity parameter related to the connected electric contacting element (300); and a determination unit (130) for determining whether the vibration head (210) is connected with the electric contacting element (300) based on the determined electric energy storage capacity parameter.