Eyes

Wiki

ES Configurator

Wiring

Always unplug USB before wiring. Follow the GPIO labels printed on the ESP32-C3 Super Mini. The GPIO signals and displays use 3.3 V. The microSD reader’s supply voltage depends on the module.

One display

GC9A01 displayESP32-C3
VCC3.3 V
GNDGND
SCL / SCKGPIO4
SDA / MOSIGPIO6
DCGPIO10
RSTGPIO20
CSGPIO3

One GC9A01 display with CS on GPIO3

Two displays

The two displays share all signals except CS, which has its own pin for each display.

SignalDisplay 1Display 2
VCC3.3 V3.3 V
GNDGNDGND
SCL / SCKGPIO4GPIO4
SDA / MOSIGPIO6GPIO6
DCGPIO10GPIO10
RSTGPIO20GPIO20
CSGPIO3GPIO7

Two GC9A01 displays with a shared bus and separate CS lines

After wiring, choose 2 displays in the Eyes web interface (1 · Pantallas in Base or Dispositivo → Pantallas in Studio and Visor). If the left eye appears on the right display, select Intercambiar (Swap). Available CS pins are GPIO3, GPIO7, GPIO5 and GPIO2.

Two displays and an SPI microSD reader

The pictured reader is a six-pin MicroSD Card Adapter measuring about 41 × 24 mm. With the socket and components facing you, the pins are labeled CS, SCK, MOSI, MISO, VCC and GND. Follow the labels printed on your module, since the connector appears reversed in some views.

The blue board shown appears to be the version with a 3.3 V regulator and a logic-level buffer. If the module specifies 5 V at VCC, connect VCC to 5 V/VBUS on the USB-powered ESP32. If the module specifies a direct 3.3 V input, use 3V3. Verify that MISO uses 3.3 V logic before connecting it to the ESP32. Follow the table for power and signal connections.

ConnectionDestinationESP32-C3 Super MiniESP32-S3
GNDBoth displays and readerCommon GNDCommon GND
Display VCCBoth GC9A01 displays3V33V3
Reader VCCmicroSD adapter5V/VBUS for the regulated version described above5V/VBUS for the same version
SCK / SCLBoth displays and readerGPIO4GPIO4
MOSI / SDABoth displays and readerGPIO6GPIO6
MISOReader onlyGPIO0GPIO11
DCBoth displaysGPIO10GPIO10
RSTBoth displaysGPIO20GPIO8
Left display CSDisplay 1GPIO3GPIO7
Right display CSDisplay 2GPIO7GPIO2
Reader CSmicroSD adapterGPIO5GPIO5

Tested setup with the ESP32-C3 SuperMini V1601

The tested setup uses the regulated adapter at 5V/VBUS, MISO on GPIO0 and CS on GPIO5. The diagram shows the reader alone. Use the table above for both GC9A01 displays and share SCK, MOSI and GND.

Tested setup: GND to G, VCC to 5V, MISO to GPIO0, MOSI to GPIO6, SCK to GPIO4 and CS to GPIO5

Use one shared breadboard row for SCK and one for MOSI, and wire each of the three CS lines to its own GPIO. Keep the SPI wires short. MicroSD mode disables the GPIO5 button. On the C3, leave the joystick disconnected because GPIO0 is used for MISO. On the S3, the joystick can still use GPIO1, GPIO9 and GPIO21.

In Eyes, select 2 displays and SPI microSD card. If the picture or card reads are unreliable, start with the display SPI at 20 MHz, check GND and boot with the card inserted. See how to prepare the card and install the firmware.

References: sharing the SPI bus with SD (Espressif) and ESP32-C3 GPIO.

HW-504 joystick (optional)

Connect the module pin marked +5V to 3.3 V. Its analog outputs go directly into the ESP32-C3.

JoystickESP32-C3
VCC / +5V3.3 V
GNDGND
VRxGPIO0
VRyGPIO1
SWGPIO21

HW-504 joystick wired to 3.3 V

Two displays and a joystick on the same ESP32-C3

Enable Physical joystick in the configurator or use Dispositivo → Joystick e inicio on the device. Release the stick and click Calibrar centro (Calibrate center). Invert any axis that moves the wrong way. Pressing the stick makes the eyes blink.

Leave the feature disabled if you have no joystick. Floating inputs pick up noise and would make the eyes jerk.

Momentary push button (optional)

With the ESP32-C3 Super Mini turned off and unplugged, connect one wire from the button to GPIO5 (marked 5) and the other to GND. A simple two-contact button has no polarity. Keep the 5V power pin out of this circuit.

Use GPIO3 and GPIO7 for the displays’ CS lines. If a display already uses GPIO5, change its CS wire and setting before enabling the button.

Enable Features → Momentary push button in the configurator and download the BIN. Physical joystick can stay disabled. One press triggers an expression on the visible eyes, which then return to their original expression. Holding the button does not repeat the action. It works with automatic expressions disabled.

Breadboard setup

Power

Use the computer’s USB port or a 5 V / 1 A charger. Two displays at full brightness draw more power. Try a different cable or charger if the ESP32 resets when Wi-Fi starts.