python - 用 Python 模拟操纵杆

标签 python virtual arduino joystick

我正在尝试使用我的 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/

相关文章:

python - 如何使用 python 将 utf-8 字符串转换为 big5?

linux - 在 Linux 上 : We see following: Physical, 真实内存、交换内存、虚拟内存 - 我们应该考虑哪个来调整大小?

c++ - (Arduino) 我想创建一个 uint8_t 数组

c++ - 如何使用旋转编码器控制HID设备?

python - 将列表 append 到 python 中的列表列表中会更改所有子列表

python - 如何在 Pandas 中一次计算均值和标准差?

Python - os.rename() - OSError : [WinError 123]

ios - iOS 编程是否会使用 Clang 和 llvm 进行虚拟化?

c++ - 关于名称隐藏和虚函数的混淆

Arduino:错误: 'abs' 未在此范围内声明