从光学鼠标ala wiimote 获取坐标读数(MATLAB 代码)
我计划从光电鼠标获取 xy 坐标读数。基本上,我希望读数类似于这个,但不使用Wiimote,我将使用标准 USB 鼠标。
但遗憾的是它在 C++ 上运行并且需要一个名为 Arduino 的桥接硬件。然而,它打印出坐标而不是将其放入“实时”图形图中。
如果 MATLAB 能够从鼠标读取坐标并绘制“实时”坐标图,我会很高兴。
谢谢 :)
I plan to get the x-y coordinated reading from an optical mouse. Basically, I want the readout to be something like this but instead of using a Wiimote, I'll be using a standard USB mouse.
I have found quite a good example - [http://www.synbio.org.uk/component/content/article/46-instrumentation-news/1234-interfacing-an-optical-mouse-sensor-to-your-arduino.html]
but sadly it runs on C++ and needs a bridging hardware called Arduino. Though however, it PRINTS out the coordinate rather than putting it into a 'real-time' graphical plot.
I would love if MATLAB can read off the coordinates from the mouse and plot a 'real-time' graph of the coordinates.
Thanks :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您有一个或多个 DLL 用于与鼠标通信,您应该能够说服 Matlab 使用它或它们。查看
loadlibrary
的文档。(当然,如果您使用的是 Linux 或 Mac OS X,请将“DLL”替换为“共享库”。)
If you have a DLL or DLLs for communicating with your mouse you should be able to persuade Matlab to use it or them. Look at the documentation for
loadlibrary
.(Of course, if you are using Linux or Mac OS X replace 'DLL' with 'shared library'.)