Glyph ESP32-H2 Pinouts

The Glyph ESP32-H2 board is packed with versatile pins and features. This guide will help you navigate the pinout details for efficient use.
Power Pins and Connections
- GND: This is the common ground for all power and logic.
- BAT: This is the positive voltage to/from the Battery(+) Positive terminal (This pin is usual at voltage between 2.7v-4.2v)
- USB: This is the positive voltage to/from the USB C jack, if USB is connected (This is usual at voltage 5v)
- EN: This is the enable pin of esp32, you can pull down this using a external button or other controller to reset the board.
- 3.3V: These pins are the output from the 3.3V regulator, they can supply 600mA peak current.

- Lipo Battery PADS: 2 Pads behind the board to solder Lipo or li-ion batteries to power the Glyph board.
- MSR PADS: Short this MSR pad to measure battery capacity using IO1 (Marked as A1 on board).

Communication Pins
I2C, SPI, and UART on ESP32-H2
The ESP32-H2 is capable of handling I2C, SPI, and UART on many pins. However, to simplify things we have assigned few of the IO pins to make things simpler for users.
I2C Pins
- I2C0 SCL: SCL, IO5
- I2C0 SDA: SDA, IO4

SPI Pins
- SPI0 SCK : SCK, IO11
- SPI0 MOSI: MO , IO22
- SPI0 MISO: MI , IO25
- SPI0 CS : ANY IO That's available

UART Pins
- UART0 TX: TX, IO24
- UART0 RX: RX, IO23

Addtional Ports / Pins
GLYPH GLINK PORT
This is a QWIIC / STEMMA compatible connector which makes it easy for users to connect to 100's of sensors and modules made by Adafruit & Sparkfun.

USB PINS
This is used for power and data transfer. Connect to your computer via a USB C cable to update firmware and at the USB pin you would receive 5v

PWM PINS
The ESP32-H2 supports PWM on all pins. However, it is not capable of PWM on all pins at the same time. There are multiple PWM channels, each with configurable frequency and duty cycle. The important thing to know is that you cannot use the same channel on different pins at the same time. Please refer to ESP32H2 DATASHEET
Analog Pins
The ESP32-H2 has four ADC channels. These pins are the only pins capable of handling analog (12-bit), and they can also do digital.
- A1/IO1: ADC1 channel 0
- A2/IO2: ADC1 channel 1
- A3/IO3: ADC1 channel 2
- SDA/IO4: ADC1 channel 3
- SCL/IO5: ADC2 channel 4

Digital Pins
These are the digital I/O pins. They all have multiple capabilities but can be used only one at a time.
- D0/GPIO0: Digital I/O pin 0(GPIO0, FSPIQ).
- A1/GPIO1: Analog I/O pin 1(GPIO1, FSPICS0, ADC1_CH0).
- A2/GPIO2: Analog I/O pin 2(GPIO2, FSPIWP, ADC1_CH1, MTMS).
- A3/GPIO3: Analog I/O pin 3(GPIO3, FSPIHD, ADC1_CH2, MTDO).
- SDA/GPIO4: The main I2C1 data pin(GPIO4, FSPICLK, MTCK,ADC1_CH3).
- SCL/GPIO5: The main I2C1 clock pin(GPIO5, FSPID,ADC1_CH4,MTDI).
- D8/GPIO08: Digital I/O pin 8(GPIO8).
- D9/GPIO09: Digital I/O pin 9(GPIO9).
- D10/GPIO10: Digital I/O pin 10(GPIO10, ZCD0).
- SCK/GPIO11: The main SPI0 SCK(GPIO11, ZCD1).
- D12/GPIO12: Digital I/O pin 12(GPIO12).
- D13/GPIO13: Digital I/O pin 13(GPIO13, XTAL_32K_P).
- D14/GPIO14: Digital I/O pin 14(GPIO14, XTAL_32K_N).
- MO/GPIO22: The main SPI0 MOSI(GPIO22).
- RX/GPIO23: The main UART0 RX pin(FSPICS1, U0RXD).
- TX/GPIO24: The main UART0 TX pin(GPIO23,FSPICS2, U0TXD).
- MI/GPIO25: The main SPI0 MISO(GPIO24,I2C0 SDA, SPI0 CS).
- D-/GPIO26: Digital I/O pin 26(GPIO26,FSPICS4,USB_D-).
- D+/GPIO27: Digital I/O pin 27(GPIO27,FSPICS5,USB_D+).

Schematic Diagram For Glyph-H2

For better view you can download the schematic diagram from here