ESP32 FSR Sensor Firmware Debugging

0:28

Analyzing the schematic.

Looking for "Pin mapping for XIAO ESP32S3 analog pins A0 A1 A2 A3 A4 and digital aliases D0 D1 D2 D3 D4 with GPIO numbers" in esp32-s3_datasheet.pdf

Looking for "Which pins on Seeed Studio XIAO ESP32S3 correspond to D0 D1 D2 D3 D4 and A0 A1 A2 A3 A4?" in esp32-s3_datasheet.pdf

네. 이 보드에서는 FSR 5개가 A0~A4 순서로 연결되어 있습니다.

FSR 핀 매핑


센서커넥터XIAO 핀GPIO
fsr0J3A0 / D0GPIO1
fsr1J4A1 / D1GPIO2
fsr2J5A2 / D2GPIO3
fsr3J6A3 / D3GPIO4
fsr4J7A4 / D4GPIO5
프로젝트 schematic에서도 다음처럼 확인됩니다:
  • FSR1_ADC -> U1 TOUCH1_GPIO1_A0_D0
  • FSR2_ADC -> U1 TOUCH2_GPIO2_A1_D1
  • FSR3_ADC -> U1 TOUCH3_GPIO3_A2_D2
  • FSR4_ADC -> U1 TOUCH4_GPIO4_A3_D3
  • FSR5_ADC -> U1 TOUCH5_GPIO5_SDA_A4_D4
그리고 U1 datasheet 기준으로도:
  • A0 / D0 = GPIO1
  • A1 / D1 = GPIO2
  • A2 / D2 = GPIO3
  • A3 / D3 = GPIO4
  • A4 / D4 = GPIO5
즉, 펌웨어는 이렇게 바꾸면 됩니다:

Cpp


const int SENSOR_PINS[] = { A0, A1, A2, A3, A4 };
혹은 GPIO 번호로 직접 쓰면:

Cpp


const int SENSOR_PINS[] = { 1, 2, 3, 4, 5 };
원하시면 제가 바로 이 매핑 반영한 최종 펌웨어 전체 코드로 다시 정리해드릴게요.
최종 펌웨어로 정리
회로값도 같이 확인
ADC 핀 충돌 점검
28 days

To get started, talk to Flux or create a New Document.

Documents

    Documents are markdown text files which describe project goals, capture details, or even simulation outputs.

    Assets

    labs_regular_black 1.svg

    labs_regular_black 1.svg

    labs_regular_black 1Default
    glove thumbnail
    Glove interface board using Seeed Studio XIAO ESP32S3. Manufacturing path updated for partial assembly: preserve existing glove interface circuitry (FSR inputs on J3-J7, I2C on J8, SPI on J9, pull resistors R1-R7, decoupling C1) and source U1 separately because JLCPCB stock for MPN 113991114 is unavailable. Assemble all other parts normally, leave U1 for customer-supplied/manual installation, and do not substitute U1 unless a verified XIAO-format pin-compatible replacement is explicitly approved.

    Properties

    Pricing & Availability

    Distributor

    Qty 1

    Arrow

    $7.42

    Digi-Key

    $7.68

    LCSC

    $12.51

    Mouser

    $8.18

    Verical

    $6.98–$7.47

    Controls