Community project

Untitled Project

Photo of Untitled Project
Generated with AI

Abdul Jabbar (Abdullah)

Published November 29, 2026

This project combines an ESP32 microcontroller with a capacitive touch sensor and OLED display to create an interactive interface. The TTP223 touch sensor detects button presses without mechanical switches, while the SSD1306 OLED screen provides visual feedback, making this setup ideal for building responsive control panels or interactive displays.

This guide includes a complete wiring diagram showing how to connect the touch sensor and OLED display to the ESP32, a full parts list, step-by-step assembly instructions, and the firmware needed to get the system running. Builders will learn how to integrate capacitive sensing with display output to create a functional prototype.

Wiring diagram

Wiring diagram for Untitled Project
Loading diagram…

Gather all the parts

QtyComponent
1

SSD1306 OLED

0.96-inch 128 x 64 white monochrome OLED display module driven by an SSD1306 controller over I2C (address 0x3C). It runs from 3 V to 5 V and connects through a 4-pin 2.54 mm header (GND, VCC, SCL, SDA); the self-emitting pixels need no backlight.

1

TTP223 Capacitive Touch Sensor Module

Single-pad capacitive touch sensor module based on the TTP223 IC. Outputs a digital HIGH/LOW signal on touch/release. Operates at 2.0–5.5V (3.3V compatible). No firmware library required — output is read as a standard digital GPIO input. Default mode is momentary (active HIGH on touch); solder pads on module allow toggling to active-LOW or self-locking (toggle) mode.

Assemble it in 2 steps

1. Connect the OLED with USB unplugged

Connect VCC to 3V3, GND to GND, SDA to GPIO21 (data), and SCL to GPIO22 (clock).

2. Connect the touch sensor

Connect VCC to 3V3, GND to GND, and SIG (sometimes marked OUT or I/O) to GPIO27. Use momentary, active-high mode.

  • Do not use 5 V for the touch sensor; its output could damage the ESP32.

Review all connections

1. Connections between "oled" and "ESP32"

FunctionoledESP32
powerVCC3V3
groundGNDGND
i2cSDAGPIO 21
i2cSCLGPIO 22

2. Connections between "touch" and "ESP32"

FunctiontouchESP32
powerVCC3V3
groundGNDGND
digitalSIGGPIO 27

Deploy the firmware

#include "../include/Nexus.ino"

Remix this project

Make it yours in one click

Open a full copy of this project in your own Schematik workspace, diagram, code, parts, and assembly steps included. Swap the sensor, add features, or redesign the whole thing with AI. The author's original stays untouched.

Open in Schematik