我正在尝试使用我的 Arduino作为操纵杆,但我不知道如何将其设置为操纵杆。我有一个想法是用 Python 从 Arduino 读取数据并模拟操纵杆。如何使用 Python 实现虚拟操纵杆?还有别的办法吗?
最佳答案
哪种口味的 Arduino?
首先,您需要一个 Uno 模型,请参阅:http://arduino.cc/blog/2010/09/24/dinner-is-ready/
We replaced the aging FTDI chipset with a custom made usb-serial converter built with an Atmel ATmega8U2 this provides lower latency and doesn’t require to install any drivers on mac and linux (on windows all you need is a simple .inf file) more advanced users will be able to reprogram the USB chip to make the board show up as a variety of USB devices (Keyboards, Mice, Joysticks, MIDI etc)
旧型号只能显示为串行端口(通过 FTDI 芯片组)。
接下来,有一篇文章展示了如何在 Uno 上模拟操纵杆(您需要在 Arduino 论坛上注册才能查看示例)。请参阅:http://arduino.cc/blog/2010/10/24/arduino-uno-as-joystick/
注意:您必须更换 Arduino 固件。
关于python - 用 Python 模拟操纵杆,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5149234/