#Output to HID possible?

1 messages · Page 1 of 1 (latest)

novel mesa
#

This is purely hypothetical, just an idea, so far. Say, I'd like to make my own custom module, something the current Arduino boards don't support. For example, a FOC controlled brushless motor for force feedback. It would be a lot of work to support the full MobiFlight communication protocol and make a fully configurable firmware that supports all the bells and whistles. But it would be relatively easy to make an HID compatible device. Is it possible to output numerical values to an HID? Technically, this must be possible as I've seen keyboards where you can adjust the colors and brightness of LED illumination. I've already tried connecting a joystick and reading the axis values as inputs. But outputs are not supported, yet. Or have I missed something. Or is there a better way to do this?

marsh flame
#

We support custom devices for output. You add it to the firmware. We also support joysticks, you can provide a joystick.json file to describe the outputs

#

I'm not sure if the native joystick support can do a number for output or just a bit it's been a long time since I've looked at the code

novel mesa
#

Ok thanks. I'll look if I can find something in the the documentation about what can be added in the json file. It's not urgent, I have so much other things to do and learn right now. I just was curious if anybody else has already tried that.

lavish scroll
#

I believe native joystick support only includes LEDs according to Honeycomb's protocol (bit fields in a feature report) as output

marsh flame
#

Yes, I think that's the case as well

fast echo
#

@novel mesa talk to @chilly compass and brainstorm something. It would be great to have a proper control loading with force feedback as open source MobiFlight custom device that we could improve and brainstorm on together, instead of having a dozen test projects all over the internet.

chilly compass
#

I have made an Ffb Yoke with Arduino Micro acting like a real Hid Joystick

viral falcon
#

how do you control the FFB?

novel mesa
#

Is there any documentation how a "real HID" joystick with FFB works? I'm planning to develop one in half a year or so but at the moment I'm busy building my motion rig and the cockpit. But I if there is a standard for this I could read the docs in the meanwhile.

chilly compass
fast echo
#

hm, is that optical encoder style with center and end stops to correct for calibration?