Sensors and I/O

EDA-Piano: 12-Key Touch Piano (ESP8266 + SC12B)

A low-cost 12-key touch piano based on ESP8266 and SC12B, with chord support, OLED display, and WiFi control.

Sensors and I/O touchaudiooledwifi ESP8266, SC12B, TP4056

Official path: https://oshwhub.com/course-examples/eda-piano2

01 Overview

EDA-Piano is an ESP8266-based 12-key touch piano project designed for low cost and easy learning.

Core components are the ESP8266 module and the SC12B touch controller; the TP4056 charger is optional.

It supports simultaneous 12-key detection, chord playing, real-time OLED feedback, and WiFi-based web control.

02 Hardware

MCU: ESP8266 module, providing WiFi and GPIO interfaces.

Touch sensing: SC12B chip, supports 12-key simultaneous detection with high accuracy for chords.

Audio output: buzzer driven via PWM or GPIO.

Display: OLED screen showing current keys and note information.

Power: TP4056 Li-ion charging module (optional; can be removed to cut cost).

Total BOM cost is low, dominated by the ESP8266 and SC12B.

03 Software flow

Firmware features: 12-key simultaneous touch detection with chord playing.

OLED shows real-time key presses and note names.

WiFi connectivity with a web-based control interface.

Flashing instructions and 3D structure files are provided in the attachments.

04 Core points

ESP8266 firmware development

SC12B touch driver

OLED display driver

Web control interface

中文

传感器与外设

EDA-Piano 简易电子琴(ESP8266 + SC12B)

基于 ESP8266 和 SC12B 触摸芯片的 12 键电子琴,支持和弦、OLED 显示和 WiFi 控制。

传感器与外设 touchaudiooledwifi ESP8266, SC12B, TP4056

官方路径: https://oshwhub.com/course-examples/eda-piano2

01 项目概述

EDA-Piano 是一个基于 ESP8266 的 12 键触摸电子琴项目,硬件成本低,适合入门和教学。

核心器件为 ESP8266 模组和 SC12B 触摸芯片,可选 TP4056 锂电池充电管理。

支持 12 键同时触摸检测、和弦演奏、OLED 实时显示,以及通过 WiFi 进行 Web 控制。

02 项目硬件描述

主控:ESP8266 模组,提供 WiFi 和 GPIO 接口。

触摸检测:SC12B 芯片,支持 12 键同时检测,精度高,可实现和弦。

音频输出:蜂鸣器,通过 PWM 或 GPIO 驱动。

显示:OLED 屏幕,实时显示按键和音符信息。

电源:TP4056 锂电池充电模块(可选,可删除以降低成本)。

整体 BOM 成本较低,主要成本集中在 ESP8266 和 SC12B。

03 项目软件流程描述

固件功能:12 键同时触摸检测,支持和弦演奏。

OLED 实时显示当前按键和音符。

支持 WiFi 连接,提供 Web 控制界面。

烧录说明和 3D 结构文件见附件。

04 项目核心点

ESP8266 固件开发

SC12B 触摸驱动

OLED 显示驱动

Web 控制界面