monsonite Posted October 27, 2015 Report Share Posted October 27, 2015 Hi All, Optical mice are extremely cheap these days, ($1.50 in UK) as are the Bluetooth wireless versions (about $5). Is there a simple hack to allow an FPGA access to the button presses, the scroll wheel and the X, Y position data? Any help appreciated Ken Quote Link to comment Share on other sites More sharing options...
james1095 Posted October 27, 2015 Report Share Posted October 27, 2015 This looks like it may do what you need. http://www.george-smart.co.uk/wiki/FPGA_PS2_Mouse It's in Verilog which I'm not a big fan of but many people prefer that language. Also it's certainly possible to mix and match modules written in VHDL and Verilog. Quote Link to comment Share on other sites More sharing options...
alvieboy Posted October 28, 2015 Report Share Posted October 28, 2015 Ken, I've used the current opencores PS2 module successfuly to interface with mice and keyboard. There's also a wishbone wrapper for it. https://github.com/alvieboy/ZPUino-HDL/tree/master/zpu/hdl/zpuino/contrib/ps2 Note however that module is licenced under GPL. Alvie Quote Link to comment Share on other sites More sharing options...
Jack Gassett Posted October 31, 2015 Report Share Posted October 31, 2015 There is also C code that uses GPIO available in DesignLab to read mouse values. Jack. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.