A drug delivery device comprising: a housing; a cylindrical member rotatably supported within the housing; and a plurality of sensors; wherein: the outer surface of the cylindrical member is provided with a single track, the track forming an encoder and having a plurality of first track segments and a plurality of second track segments arranged along the length of the track which are respectively capable of inducing first and second responses in the sensors; and in each rotational position of the cylindrical member relative to the housing at least one different first track segment is capable of inducing a first response in at least one said sensor, thereby enabling the rotational position of the cylindrical member relative to the housing to be determined.