Mice translate hand motion into signals the computer understands using five main components: a ball that rolls when the mouse moves, rollers that detect motion, an encoding disk with holes, infrared LEDs and sensors that count pulses of light, and a processor chip. Modern optical mice use a camera to take 1500 pictures per second and detect pattern movement to determine cursor movement. Mice send data through connectors like PS/2 using a protocol that reports button states, direction of movement, and movement values in bytes sent 40 times per second.