Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

1 solution

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900