pfeerick / USB_ELRS_Receiver

MIT License
30 stars 2 forks source link

Direct on ESP32 S3 or C3 #4

Open L1cardo opened 6 days ago

L1cardo commented 6 days ago

S3 or C3 has an USB port, is it possible to directly run this on S3 or C3 with ELRS on it as well?

pfeerick commented 5 days ago

Well, you're still going to need a radio, as neither the S3/C3 will talk to ELRS on their own - i.e. would need a RF modem or lora devboard with that onboard already... but given the ... simplicity... of the code... it would seem possible... The only problem would be is there enough processor time to both talk USB and do all the ELRS work?

L1cardo commented 5 days ago

Yeah, I understand. What I was talking about is that, since ELRS code runs on esp32-c3, can we make it output HID protocol instead of CRSF protocol, like this example

And use C3's USB port to communicate with PC, or use a CP2102 serial chip.

pfeerick commented 5 days ago

If you have a serial chip in the way, like CP2102, that isn't going to work as a joystick at all, since you no longer have USB HID happening, but instead a dedicated USB UART.

So, if running on an ESP32-S3 (since the C3 does not have native USB) ... I would again have to say it might be possible... but given there doesn't seem to be any receiver hardware using the S3 at present it looks like it is still very much a DIY affair to even contemplate this... (i.e. there are only two DIY targets and the SPRacing gyro receiver using Unified_ESP32S3_2400_RX)...