0

What board would support this project
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

What board would support this project

by mike808 on Wed Jun 16, 2021 8:31 am

I'd like to learn more about USB HID/firmware and wanted to know if Adafruit has a board that could do the following:

CLIENT_CODE <---- USB communication ----> SOME_HID_DEVICE

where:
CLIENT_CODE: i plan to write in either rust, c/c++, or python
SOME_HID_DEVICE: i would like a recommendation on what boards can operate like this. I would try to write/extend/augment code (language agnostic) to be able to send/receive custom data over USB

does anyone have recommendation for SOME_HID_DEVICE? ItsyBitsy? Feather? Trinket? others??? I would think having native USB support is easier to deal with, but I've never written a custom HID device before, but am eager to learn/share.

i was thinking communication would be through custom messages. perhaps something like the following

client to server example message
SetRGBColor - 64 bytes
byte[0] = msg type
bytes 1 = device index
byte's 2 and 3= length of data
bytes 4-63 = data

ResetDevice - 8 bytes
byte[0] = msg type
byte[1] = device index
bytes2-7 = data

etc...

server to client.
ResponseMessage = 128 bytes
byte[0] = error code
byte 1-127 = error message

mike808
 
Posts: 74
Joined: Sat May 25, 2013 10:22 pm

Re: What board would support this project

by dherrada on Thu Jun 17, 2021 9:36 am

Something like the FeatherS2, TinyS2, or Metro ESP32-S2 (Magtag and FunHouse will also work) would be good for that. They've all got built-in wifi, and can do HID, which seems good for your application

dherrada
 
Posts: 138
Joined: Thu Jan 04, 2018 4:59 pm

Please be positive and constructive with your questions and comments.