Method for determining the direction of rotation of a wheel of a two-wheeled vehicle having a motor, in particular of a bicycle, the two-wheeled vehicle having a magnetic field sensor, which is coupled to the frame (110, 120, 130, 140), and a wheel having a magnet (170, 175), wherein • a learning process comprises ○ providing information about the movement and the direction of movement of the two-wheeled vehicle by driving the motor in the forward direction or in the reverse direction, and ○ detecting first magnetic field sensor signals from the magnet (170, 175), which represent the rotational movement of the wheel on the basis of the movement of the two-wheeled vehicle, the first magnetic field sensor signals comprising a magnetic field component By in the direction of the vertical axis (y) or a magnetic field component Bx in a direction of travel, and ○ storing an association between the first magnetic field sensor signals and a direction of rotation on the basis of the direction of movement, and, after the learning process, a direction-of-rotation association comprises ○ detecting second magnetic field sensor signals from the magnet (170, 175), the second magnetic field sensor signals comprising a magnetic field component By in the direction of the vertical axis (y) or a magnetic field component Bx in the direction of travel, and ○ producing direction-of-rotation information and information about the direction of movement of the two-wheeled vehicle on the basis of a comparison of the first and second magnetic field sensor signals. • a learning process comprises ○ providing information about the movement and the direction of movement of the two-wheeled vehicle by driving the motor in the forward direction or in the reverse direction, and ○ detecting first magnetic field sensor signals from the magnet (170, 175), which represent the rotational movement of the wheel on the basis of the movement of the two-wheeled vehicle, the first magnetic field sensor signals comprising a magnetic field component By in the direction of the vertical axis (y) or a magnetic field component Bx in a direction of travel, and ○ storing an association between the first magnetic field sensor signals and a direction of rotation on the basis of the direction of movement, and, after the learning process, a direction-of-rotation association comprises ○ detecting second magnetic field sensor signals from the magnet (170, 175), the second magnetic field sensor signals comprising a magnetic field component By in the direction of the vertical axis (y) or a magnetic field component Bx in the direction of travel, and ○ producing direction-of-rotation information and information about the direction of movement of the two-wheeled vehicle on the basis of a comparison of the first and second magnetic field sensor signals. ○ providing information about the movement and the direction of movement of the two-wheeled vehicle by driving the motor in the forward direction or in the reverse direction, and ○ detecting first magnetic field sensor signals from the magnet (170, 175), which represent the rotational movement of the wheel on the basis of the movement of the two-wheeled vehicle, the first magnetic field sensor signals comprising a magnetic field component By in the direction of the vertical axis (y) or a magnetic field component Bx in a direction of travel, and ○ storing an association between the first magnetic field sensor signals and a direction of rotation on the basis of the direction of movement, and, after the learning process, a direction-of-rotation association comprises ○ detecting second magnetic field sensor signals from the magnet (170, 175), the second magnetic field sensor signals comprising a magnetic field component By in the direction of the vertical axis (y) or a magnetic field component Bx in the direction of travel, and ○ producing direction-of-rotation information and information about the direction of movement of the two-wheeled vehicle on the basis of a comparison of the first and second magnetic field sensor signals.