Page 1 of 1

USB examples for ESP32-H2-MINI

Posted: Sun Aug 04, 2024 1:04 pm
by thepurplepig
Hi, my first post.

I have a ESP32-H2-MINI hooked up up on USB port.
I can program in the HWCDC_Events example out the 'ESP32' folder, that works fine but if I try any of the other USB examples like USBVendor out of the 'USB' folder, nothing happens. Perhaps there is something in the examples configuration that I need to change, or maybe they are not for this device?

I am looking for more USB examples that will work with ESP32-H2. I would specifically like to set the module up as a custom HID device for one project and as a mouse for another project.

Any pointers appreciated, thank you.

Re: USB examples for ESP32-H2-MINI

Posted: Mon Aug 05, 2024 2:49 am
by ESP_Sprite
The -H2 does not have the USB-OTG controller you'd need for those examples; it only has a fixed-function USB-serial-JTAG controller.

Re: USB examples for ESP32-H2-MINI

Posted: Mon Aug 05, 2024 9:00 am
by thepurplepig
Ok thanks, makes sense now.
Does that mean there are no modules that have a fully fledged that USB small enough go into a USB dongle? WROOM is too wide.

Re: USB examples for ESP32-H2-MINI

Posted: Tue Aug 06, 2024 9:16 am
by ESP_Sprite
The other chips also have -mini variants of their modules, e.g. the esp-s3-mini-1. Possibly those are small enough.

Re: USB examples for ESP32-H2-MINI

Posted: Tue Aug 06, 2024 5:28 pm
by lbernstone
The 8684/8685 modules have some small and different form factors that may work for you, although this means that they have lower production volumes and availability.
https://www.espressif.com/en/products/modules
https://products.espressif.com/#/product-selector

Re: USB examples for ESP32-H2-MINI

Posted: Tue Aug 06, 2024 6:35 pm
by thepurplepig
Thanks all,
What I really need is a mini format but with both Bluetooth Classic and either USB CDC or USB.
Looks like I'm out of luck.

Re: USB examples for ESP32-H2-MINI

Posted: Wed Aug 07, 2024 3:39 am
by ESP_Sprite
lbernstone wrote:
Tue Aug 06, 2024 5:28 pm
The 8684/8685 modules have some small and different form factors that may work for you, although this means that they have lower production volumes and availability.
Those also don't have USB OTG.
thepurplepig wrote:Looks like I'm out of luck.
Is that S3 module still too large?

Re: USB examples for ESP32-H2-MINI

Posted: Wed Aug 07, 2024 8:16 am
by thepurplepig
ESP_Sprite wrote:
Wed Aug 07, 2024 3:39 am
thepurplepig wrote:Looks like I'm out of luck.
Is that S3 module still too large?
Does the S3 do bluetooth classic as well? I thought not but if it does that ticks all boxes.

*just checked seems not. So there are no BTC capable modules with USB OTG and vice versa.
However I could make do with USB HWCDC and not fully fledged OTG, but there is no USB CDC in the part selector.
If I select 'USB OTG' in the selector, are parts with HWCDC also listed?

If not, are there any parts with USHWCDC and Bluetooth Classic?

Re: USB examples for ESP32-H2-MINI

Posted: Thu Aug 08, 2024 1:25 am
by ESP_Sprite
Nope. Only chip that does BT Classic is the 'original' ESP32, and that does not have USB of any sort.