Skip to content
프로젝트

sdima1357/esp32_usb_soft_host

GitHub에서 보기

소개

범용 I/O 핀을 통해 ESP32에서 소프트웨어 USB 호스트를 구현합니다. USB 저속 HID 장치(키보드, 마우스, 조이스틱)를 최대 4대까지 동시에 연결할 수 있습니다.

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
+2
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

esp32_usb_soft_host

esp32 USB-LS pure software host thru general IO pins. Up to 4 HID devices simultaneously.

Code is compatible with ESP-IDF version < 5.0, latest: https://github.com/espressif/esp-idf/releases/tag/v4.4.8

image1

board ~$3 :https://www.aliexpress.com/premium/LOLIN32.html or any of https://www.aliexpress.com/premium/ESP32.html

usb connectors(for example): https://www.aliexpress.com/item/1005002027124387.html

//set right esp32 env for me it:

export IDF_PATH=$HOME/esp/esp-idf

source $HOME/esp/esp-idf/export.sh

//connect the board, build & flash

git clone https://github.com/sdima1357/esp32_usb_soft_host

cd esp32_usb_soft_host/usb_test/

idf.py set-target esp32

idf.py menuconfig

Please set in Menuconfig->compiler options -> optimization level> O2 ( must be in O2 options. "idf.py set-target esp32" resets it to Og ,I don't know why)

idf.py flash monitor

Test run with 3 mouses, $3 CY7C68013A logic analyser and amazing program https://sigrok.org/wiki/PulseView :

image2

Tue Aug 31 15:50:48 IDT 2021

Add esp32c3 support.

idf.py set-target esp32c3

idf.py menuconfig

set in:

Menuconfig->compiler options -> optimization level> O2

only for esp32c3: Component config-> ESP System Setting -> Memory protection-> Disable.

idf.py flash monitor

Warning(disclaimer): Sorry, but target of this project right now - only research & proof of feasibility. I can't debug hardware which i don't have. Some hardware(devices) may not work, from different reasons. In the case of problem i suggest to check wires & use $3 CY7C68013A logic analyser. Sometimes i can help.

관련 프로젝트 살펴보기

불러오는 중…