Una delle caratteristiche più interessanti del chip esp32-s2 di Espressif è la presenza di una interfaccia USB OTG (USB On-The-Go).
Grazie a questa interfaccia – e all’uso della libreria TinyUSB – è possibile programmare il chip perché si comporti come una periferica USB.
In un video sul mio canale Youtube ho già mostrato come scrivere sketch Arduino per implementare un dispositivo di memorizzazione di massa o una tastiera / mouse (HID, Human Interface Device):
Ho quindi pensato di sviluppare una scheda, simile ad una chiavetta USB, basata sul modulo ESP32-S2-WROVER:
La scheda ospita tutti i componenti necessari ad alimentare il modulo (abbassando a 3.3V la tensione disponibile via USB di 5V) ed effettuare RESET e UPLOAD di un nuovo firmware.
In aggiunta, ho pensato di inserire anche:
- un LED RGB, basato sul chip WS2812
- uno slot per memorie MicroSD
I files Eagle e l’elenco componenti sono disponibili in un repository Github.
Ho inoltre pubblicato il progetto su PCBWay in modo che sia possibile – se lo desiderate – ordinare direttamente presso di loro il PCB.
Nel repository Github sono inoltre presenti alcuni sketch di esempio, che mostrano come controllare il LED e leggere le caratteristiche della schedina MicroSD inserita:
Infine la scheda esp32s2Stick presenta anche 4 pin di debug, collegati alla intefaccia seriale del chip:
can i please purchase a few of these boards ready made?
Hi Jasper, I published the project but I cannot provide at the moment ready-made boards, sorry
Hello Luca.
It is a great project. I want to buy your PCB for testing. I want to buy through PCBWAY, but have never done so. An option called “Assembly Service” appears on PCBway. Does this mean that I can buy the PCB with all components soldered through PCBWAY?
Thank you
Hi! You can order the PCB directly from the product page. If you like them to assembly the board for you, I think you have to prepare all the required files (BoM, placements…) and I don’t know if they can provide the esp32 module.
Hello
good post!
I’m going to take your design into account to make a few modifications to your hardware and apply it to the cybersecurity issue.
Initially I had worked with a design based on the 32u4 chip to be able to work on the “USB DWC-OTG” question, but this module offers me many more functions incorporated in a reduced space, especially for bluetooth and wi-fi.
I want to use the ESP as USB stick and access from the stored data for further processing (e.g. setting pins depending on the stored data). Dp you know if this is possible with the s2 or s3?
Sure! With s2 you can develop a device that is deteted as a standard “usb stick” but can also inspect the data you send (for example a txt file). TinyUSB has some examples on this