The invention relates to a device for diffusing volatile substances, comprising a container (1) for said volatile substances; diffusion means (2) for diffusing said volatile substances; and at least one battery (4) for supplying energy to said diffusion means (2). Said device is characterized in that it also comprises control means (3) detecting data from at least one of the components of the device and determining the period of time during which said at least one battery (4) supplies energy to said diffusion means (2) according to said data. It allows the yield and efficiency to be improved, dispensing the desired product amount and reducing consumption of the batteries as much as possible.