I've been reading up lots of articles and resources regarding getting my Due to act as a HID Device. Ideally, I just want to be able to plug it in to the PC and be able to send reports/messages to it and receive data from the device looking for the VendorID and PID. It's all very small amount of data and fits well within the HID specification.
Perhaps I've over complicated things in my mind, but I can't see a clear way to be able to achieve this. Lots of joystick/keyboard host stuff but nothing i can see that would easily allow me to accomplish this requirement.
I did look in to the NicoHood2 and related projects - I think I've read so much it's just got me in a total state of confusion.
I've been reading up lots of articles and resources regarding getting my Due to act as a HID Device. Ideally, I just want to be able to plug it in to the PC and be able to send reports/messages to it and receive data from the device looking for the VendorID and PID. It's all very small amount of data and fits well within the HID specification.
Perhaps I've over complicated things in my mind, but I can't see a clear way to be able to achieve this. Lots of joystick/keyboard host stuff but nothing i can see that would easily allow me to accomplish this requirement.
I did look in to the NicoHood2 and related projects - I think I've read so much it's just got me in a total state of confusion.
Any help gratefully received!
The NicoHood Library has an example of "raw" HID.
that should provide some help for what you want to do.
Thanks, I've looked over that library but couldn't get the RawHID example to build on my machine, seemed to be looking for a directory that wasn't present in the downloaded repo.
I've got in emailed the author of the lib asking for some assistance if they have the time. As it's a build failure I'd assume it would be acceptable to raise an issue within the GitHub project.
Thanks, I've looked over that library but couldn't get the RawHID example to build on my machine, seemed to be looking for a directory that wasn't present in the downloaded repo.
I've got in emailed the author of the lib asking for some assistance if they have the time. As it's a build failure I'd assume it would be acceptable to raise an issue within the GitHub project.
Which version of the Arduino IDE are you using?
What operating system are you using?
Linux, MacOSX, MS Windows, other
artisticforge:
Which version of the Arduino IDE are you using?
What operating system are you using?
Linux, MacOSX, MS Windows, other
Which version of NicoHood Library are you using?
Hello, thanks for the reply.
I'm using version 1.8.5 on Windows 10
Using NicoHood2 when trying on the Uno, not sure what minor version as I got latest from GitHub master branch as this looked like the most sensible state (and seems only branch).
I'll pull and recompile again - fresh eyes on it might be whats needed. I was hoping the RawHid example would work on the Due.
Just took a quick look - still no luck in compiling. I've looked for PluggableUSBModule within the Library Manager and it says it's installed.
Using NicoHood2 when trying on the Uno, not sure what minor version as I got latest from GitHub master branch as this looked like the most sensible state (and seems only branch).
I'll pull and recompile again - fresh eyes on it might be whats needed. I was hoping the RawHid example would work on the Due.
Just took a quick look - still no luck in compiling. I've looked for PluggableUSBModule within the Library Manager and it says it's installed.
I will put together the circuit and try the NicoHood library later today.
artisticforge:
NicoHood does not support the Arduino Due.
Hi,
I've attempted it on a new clean machine but get the same error around the plugableUSB file not being located.
I've also tried another libary I came across on the Library manager and I get a similar error, it can't locate boards.h file. Is this just the case that for some reason the compiler can't see all the directories it needs?
Is this process easier on a different model of Arduino? I'm have a Due that I believe has HID out the box. That said I can't quite see any examples of the RawHID functionality (Keyboard, Mouse etc are there).
I just want to be able to send and recieve raw HID packets to/from PC to Arduino.
alexhitchins:
I have a teensy in the post which I've been informed has working examples of this type of communication, so I'm going to give that a go.
Teensy configures things a little differently than Arduino. After you've selected Teensy from Tools > Boards, look for the Tools > USB Type menu. That's where you'll select RawHID or other USB features, rather than including other headers.
Look for USB examples under File > Examples > Teensy, rather than looking for other libraries. The USB stuff is all built in.
pjrc:
Teensy configures things a little differently than Arduino. After you've selected Teensy from Tools > Boards, look for the Tools > USB Type menu. That's where you'll select RawHID or other USB features, rather than including other headers.
Look for USB examples under File > Examples > Teensy, rather than looking for other libraries. The USB stuff is all built in.