A device for controlling the milking frequency in automated and robotic milking machines, consisting of a robotic arm (1) with milking cups (2), milking socks (2a) in the milking cups (2), a milking apparatus (3), a pulsator (4) and a sensor (5), wherein a regulator (6) with an input (7) for receiving a signal from the feedback of the sensor (5). The device for controlling the milking frequency in automated and robotic milking machines, in particular a device for regulating the frequency of pulsations during milking, will be used to improve the processes of automated and robotic milking of cows.