USB Mouse Decoder - Serial Output

Accepts any USB Mouse and outputs serial data for button press and movement cordinates

Product Code 1278

Available We dispatch same day if ordered by 1PM (excluding holidays), then courier usually takes 2-5 days.
Quantity Pricing
Quantity :
Price (Discount%)
1-9 :
Rs.1,500.00/- (0%)
10-24 :
Rs.1,425.00/- (5%)
25-49 :
Rs.1,395.00/- (7%)
50-99 :
Rs.1,365.00/- (9%)
100-249 :
Rs.1,350.00/- (10%)
250-499 :
Rs.1,335.00/- (11%)
500-999 :
Rs.1,305.00/- (13%)
1000+ :
Rs.1,275.00/- (15%)


USB Mouse Decoder - Serial Output
Sunrom Product Code for Ordering:

The product is a USB Host which accepts any USB Mouse at its USB port and decodes the movement and button presses including scroll wheel. The data is output as serial TTL UART at 9600 baud rate for easy interfacing with various applications. The output is suitable for 3V or 5V level microcontroller applications.


  • Easy to Use with variety of mouse types (including wireless mouse but excluding gaming type composite mouse)
  • Multicolor Status LEDs for Error, Activity and Power
  • Simple output can work with any type of microcontroller
  • Accepts Wireless Mouse also by inserting its receiver into USB host port


  • Graphical User Interface (GUI)
  • Virtual Screens
  • Servo Control
  • X-Y Control Positioning
  • LCD cursor movement
  • Robotics


  • TX-OUT - Transmit output, usually goes to your microcontroller receive pin RXD
  • +5V - Regulated +5V power input
  • GND - Common Ground
  • DET - Idle Low, Goes High when mouse activity happens and date is ready to be sent. Goes low again after data transfer at TX pin is finished. Useful for input to external microcontroller for polling or interrupt to process the data from board.

Note: RX-IN pin and other pins are not used in this application, leave it floating. Below you can see, we have provided holes for mounting header of 2.54mm pitch if required.

Status LEDs

  • Board has three LEDs
  • PWR - Green LED indicate that board is getting power
  • STS - Yellow LED indicate any mouse movement activity
  • ERR - Red LED indicate any error like mouse not detected

Output Data Format

  • 9600 bps - 8 - N - 1 (No parity)
  • Output voltage level 3.3V TTL UART (Can also connect to 5V operated MCU RX pin directly.)
  • 22 bytes of fixed length data, Start with 0x0A and ends with 0x0D
  • Data packet is sent out only when there is movement in mouse or any button is pressed.
  • Data output is comma seperated values containing total 22 bytes of flxed length having various parameters.

Output format for data is 0,0,0,0x00,0x00,0x00 where each value are as LB,MB,RB,SW,X,Y

  • LB - Left button press, Value is 1 if button pressed and 0 if not pressed
  • MB - Scroll button press, Value is 1 if button pressed and 0 if not pressed
  • RB - Right button press, Value is 1 if button pressed and 0 if not pressed 
  • SW - Scroll Wheel, Value is 0x01 if moved in one direction and value is 0xFF is moved in other direction, Idle value is 0x00
  • X - its a 8 bit value from 0x01 to 0xFF depending on its movement, On idle value is 0x00 if packet is button press
  • Y - its a 8 bit value from 0x01 to 0xFF depending on its movement, On idle value is 0x00 if packet is button press

Here is a screen showing output data in terminal software on PC

Bestselling Products

Sunrom Electronics & Sunrom Technologies are two companies, that are the foremost online e-commerce stores since 2004, providing innovative embedded systems, components & services. Our aim is to empower you to Make In India. We work closely with electronics manufacturing companies & individuals to understand & solve the challenges faced during production. We do not just sell things, We use them ourselves in our products, and provide you with high quality tested components for trouble free experience.

Pride of India   Google Reviews