Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows Arduino Mouse
i a working on a touch pad mouse.i have already done it with arduino,and now it want to make it WITHOUT an arduino,i mean, i want to make it a real device,and as cheap as possible.what micro controller should i use,considering that it would at most need 4 inputs?also,what about the drivers?can i make it copy a normal mouse,so that windows will detect it as ordinary mouse and i don't need to write a driver?
Posted 11-Mar-12 1:30am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Two ideas ...
 
1. create a serial mouse. Most micro-controllers can be made to use RS232. If Windows will accept a serial mouse connected to a USB/serial adapter, then an Arduino should also work.
 
http://arduino.cc/en/Reference/MouseKeyboard[^]
 
2. Use the same Atmel processor as the Leonardo and Beetle. ATMega 32u4 interfaces directly to USB. You will need to replace the boot loader or at least modify the boot loader to have a PID/VID that matches a generic USB mouse. Obviously, you will also need to write code to mimic the USB interrupt transfers. It's a mouse so you don't need Bulk or Isochronous USB I/O.
 
Microsoft's WDM driver DDK may have sample USB mouse drivers that you can examine to get an understanding of the Interrupt transfer packets. Also, there are tools to inspect USB traffic - allowing you to see the messages from a generic USB mouse.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.1411022.1 | Last Updated 30 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100