The invention relates to a device for diffusing volatiles substances, comprising: a container (1) for said volatile substances; means (2) for diffusing said volatile substances; and at least one battery (4) for supplying energy to said diffusion means (2). Said device is characterised in that it also comprises control means (3) which detect data from at least one of the components of the device and determine 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 the consumption of the batteries as much as possible.