Sending data through HID

Is there a way to send data from a PC to an adruino using HID?
I only found a way to send data from the arduino to the PC, but not the other way around

Yes it will work with the right software.

That is because the software involved has to be in the PC end. Therefore it is not an Arduino issue but a PC issue.

For example you can send data in both directions if the HID presents itself as a MIDI interface. There are lots of examples showing two way communication using MIDI.

A lot depends on what sort of HID the Arduino presents as. In normal operation the PC has to address the Arduino as a serial HID device. So that means using software that will allow you to select the appropriate serial port. You can do that in many languages you can run on the PC. I would favour the Processing language.

I'm now even more confused.
I got an arduino leonardo, that is connected to my PC via. USB.
That arduino has serial communication disabled, thus only showing up as HID device.
Am I still able to send data through USB to the arduino?

Yes you should as it also can act as a HiD serial device.
It would help enormously if you could say exactly what you want to do, not just a vague send data.

Remember you can not have the same serial port open more than once at any one time.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.