从光学鼠标ala wiimote 获取坐标读数(MATLAB 代码)

发布于 2024-09-24 11:22:07 字数 618 浏览 2 评论 0原文

我计划从光电鼠标获取 xy 坐标读数。基本上,我希望读数类似于这个,但不使用Wiimote,我将使用标准 USB 鼠标。

我找到了一个很好的例子 - [http://www.synbio.org.uk/component/content/article/46-instrumentation-news/1234-interface-an-optical-mouse- Sensor-to-your-arduino.html]

但遗憾的是它在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧城空念 2024-10-01 11:22:18

如果您有一个或多个 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'.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文