Skip to the content
4 layers70.2 × 71 mmC3-27-epaper touch, the printed circuit board in 3D

An epaper switch project with 2 PCBs, controller+touch, and 220AC to 3DC with Relay (Latch or solid-state)

Size
70.2 × 71 mm
Copper layers
4
Thickness
1.6 mm
Parts
64
Nets
74
Pads
251
Tracks, vias
658, 75
Pours
2
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
17 Feb 2023
Updated
12 May 2023

Overview

C3-27-epaper touch is an open-source printed circuit board by martinberlin, from the martinberlin/bistable-smart-switch repository on GitHub, published under the Apache-2.0 licence. It is a 4-layer board of 70.2 × 71 mm with 64 parts on 74 nets, routed with 658 tracks and 75 vias.

It is built around the ESP32-C3-WROOM-02-N4, CP2102N-A02-GQFN28R and PCF8563T/5, with the RT9013-33GB, MBR0530 and BC817 among its other parts. Its parts include 21 capacitors, 17 resistors, 5 diodes, 5 connectors and 4 ICs. It belongs with the lEDs and displays boards and the ESP32 and RISC-V boards of this library.

Main components

10

README

README.md

IMPORTANT: This repository contains components added as github submodules. Please clone it using

text
git clone --recurse-submodules https://github.com/martinberlin/bistable-smart-switch.git
    or if you already cloned it without them just run additionally:
git submodule update --init --recursive

Bistable-smart-switch

This is a project that started with the idea to use small, and inexpensive, SPI epapers with touch. The ones that I've found available and met that criteria are produced by Good-Display in Dalian. The idea is very simple:

Use this bistable displays, or any others with very low consumption, to design a Switch that can replace a standard European one.

I know is a lot of technology to turn on the light and at some point I though that no-one will buy a digital switch for a spaceship.

But it turns out that it got some attention since there are some interesting points that drive this:

  • ESP32-C3 is also an unexpensive, single Core, RISC-V Espressif MCU with 4 MB flash and the usual BLE/ WiFi combination
  • Having touch and UX with a bistable display, using our own component CalEPD and our own touch fork, gives us the freedom to be Code-light and make versatile examples that everyone can extend and collaborate
  • ESP-Rainmaker is a possibility that we already tested, so you can also turn ON/OFF the light with their application
  • There are no similar smart switches that come with full schematics, PCB's and example Firmware. If there are please tell us where since I'm interested to see what others are doing (We know already jung.de the zamel.com polish brand and more) But none of them offers a hackeable switch.

All that we have already but it was around different repositories, where you had to configure CMakeFiles to point it to the right example and more... The goal of this repo is to put all this Switch ideas and code demos in a single place, make a WiKi with configuration tutorials and documentation. Just make it easy for the user to get started and build his first working Firmware in 10 minutes.

With the current hardware and demo examples what you can do is straight-forward. You can design a switch, since we provide a very basic example, and detect touch X & Y events. Based on that you can send signals to the Latch relay PCB and move the switch to the ON or OFF position. But is your switch. You could draw something using GFX over. Soon we will add examples to load images from WiFi and other cool things. And Latch relay is low consumption, you just move it with a 50 ms signal, then it stays in that position. It has no way to tell in what position is from outside but we know it since by default the ESP32 C3 moves it to OFF as the Firmware starts.

The hardware

It consists in two PCBs and the display using C3 as Microcontroller:

  1. ESP32-C3 controller with touch
  2. 220AC to 3.3DC adapter with a Latch relay switch. 54x54 mm so it fits in the small black box inside the wall Can be also a solid-state relay or you can design your own
  3. The 2.7" display with touch GDEY027T91-T

C3 controller

3D-mains-power

2.7 touch FocalTech

This is the touch panel that comes already on top of the display. Check the GOODISPLAY product page for specifications and datasheet.

More pictures and documentation will be added in the WiKi section, that is better to keep things organized and inter-linked than a single readme page.

IO configuration

We will keep mostly the same "proven to work" IOs along the PCB versions but it might be that routing is simpler using different pins for SPI. To keep it organized the default sdkconfig will point to PCB latest release (In this case 1.1) and we will keep track of the right IO config for different versions in the sdk-config-board directory.

As an example if you have a 1.0 PCB, you can simply cp that sdkconfig to your project one doing this from the project root folder:

text
$ cp sdk-config-board/1.0/sdkconfig .

Alternatively you can configure this the usual way with ESP-IDF using menuconfig:

text
idf.py menuconfig

SPI configuration is located in: **Component config → SPI epaper configuration**

I2C and RTC configuration: **Root → RTC & I2C Configuration**

WiFi connection for RTC sync: **Root → Example Connection Configuration**

The code examples

  1. Getting started a simple ON-OFF basic switch. No configuration required.

More will soon land here. For the moment they are in mother repository cale-idf that is an incredible mess where I develop the components and is full of examples, that I promised myself to reorganize, and I will probably never do. Just be patient, life takes it's times, just like the hardware design part and examples.

Parts

64
QtyValueFootprintReferences
74.7uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C2, C3, C7, C9, C10, C19
41uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC4, C5, C6, C8
310 KResistor_SMD:R_0603_1608MetricR2, R4, R5
34.7KResistor_SMD:R_0603_1608MetricR8, R9, R12
3MBR0530Diode_SMD:D_SOD-123D1, D2, D3
210uFCapacitor_SMD:C_0805_2012MetricC14, C15
212 pFCapacitor_SMD:C_0603_1608MetricC20, C21
2220uFCapacitor_Tantalum_SMD:CP_EIA-3528-21_Kemet-BC17, C18
247KResistor_SMD:R_0603_1608MetricR15, R17
25.1KResistor_SMD:R_0603_1608MetricR6, R7
2BC817Package_TO_SOT_SMD:SOT-23Q2, Q3
2MountingSwitchMountingHole:MountingHole_3.2mm_M3H1, H2
10.47RResistor_SMD:R_0603_1608MetricR11
110KResistor_SMD:R_0603_1608MetricR1
110uHfootprint:SWPA4030S1R0NTL1
11KResistor_SMD:R_0603_1608MetricR13
11N5819WSDiode_SMD:D_SOD-323D4
122KResistor_SMD:R_0603_1608MetricR14
122ΩResistor_SMD:R_0603_1608MetricR16
13.6KResistor_SMD:R_0603_1608MetricR10
132KhzTestPoint:TestPoint_Pad_D1.5mmTP3
13RResistor_SMD:R_0603_1608MetricR3
14.7uFCapacitor_SMD:C_0603_1608MetricC12
14.7uFCapacitor_SMD:C_0805_2012MetricC13
14.7uF 50VCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC11
1AFC24-S24FIC-00footprint:AFC24-S24FIC-00J1
1CP2102N-A02-GQFN28Rfootprint:CP2102-QFN50P500X500X80-29N-DU2
1C_Polarized 100uFCapacitor_Tantalum_SMD:CP_EIA-3528-21_Kemet-BC16
1Conn_01x06Connector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalJ3
1Conn_01x06_Femalefootprint:FH34SRJ-6S-0.5SH50-HiroseJ4
1Crystal_Smallfootprint:Q13FC1350000400-CrystalY1
1ESP32-C3-WROOM-02-N4footprint:ESP32-C3-WROOM-02-N4U1
1Groove sensorfootprint:MOLEX-I2C-532530470J5
1PCF8563TPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU4
1PREVGHTestPoint:TestPoint_Pad_D1.5mmTP5
1PREVGLTestPoint:TestPoint_Pad_D1.5mmTP4
1RESEfootprint:switch-MK-12C02-G020JP1
1RT9013-33GBfootprint:RT9013-33GBU3
1SP0503BAHTGfootprint:SP0503BAHTGD5
1Si1308Package_TO_SOT_SMD:SOT-323_SC-70Q1
1USB_C_Programmingfootprint:USB_C_Receptacle_HRO_TYPE-C-31-M-12J2
1VCOMTestPoint:TestPoint_Pad_D1.5mmTP1

More from martinberlin/bistable-smart-switch

3
  • 4 layers65.4 × 71 mmS3-27-epaper touch, the printed circuit board in 3D

    S3-27-epaper touch

    martinberlin/bistable-smart-switch

    An epaper switch project with 2 PCBs, controller+touch, and 220AC to 3DC with Relay (Latch or solid-state)

    57 parts32Apache-2.0
  • 2 layers54 × 53 mm220AC mini C3-board square-54mm, the printed circuit board in 3D

    220AC mini C3-board square-54mm

    martinberlin/bistable-smart-switch

    An epaper switch project with 2 PCBs, controller+touch, and 220AC to 3DC with Relay (Latch or solid-state)

    21 parts32Apache-2.0
  • 2 layers2.7 × 52.7 mm220AC mini C3-board, the printed circuit board in 3D

    220AC mini C3-board

    martinberlin/bistable-smart-switch

    An epaper switch project with 2 PCBs, controller+touch, and 220AC to 3DC with Relay (Latch or solid-state)

    18 parts32Apache-2.0

Similar boards

  • 2 layers65.4 × 71 mmC3-27-epaper touch, the printed circuit board in 3D

    C3-27-epaper touch

    martinberlin/H-spi-adapters

    PCB design for SPI adapters (HATs)

    54 parts23
  • 4 layers83.4 × 42.1 mmH C3-ulp29, the printed circuit board in 3D

    H C3-ulp29

    martinberlin/H-C3-029-eink

    This is a joint project between Larry Bank and Fasani Corp with the purpouse to make an easy and unexpensive nRF52 BLE badge with a SPI 2.9", a QWIIC connector, and on board RTC

    54 parts5MIT
  • 4 layers53.5 × 33 mmH C6-ulp, the printed circuit board in 3D

    H C6-ulp

    martinberlin/H-C6-ulp

    ESP32C6 in a very low power design with a 24 pin FPC for a small SPI Epaper

    82 parts4GPL-3.0
  • 2 layers65.4 × 68 mmS3-27-epaper touch, the printed circuit board in 3D

    S3-27-epaper touch

    Uspizig/WifiWallSwitch

    A WallSwitch with a clever EINK Display that measures your Air Quality, measures Temperature, detects movement, measures Light Conditions... and many more.

    159 parts4
  • 2 layers38 × 38 mmSyldra, the printed circuit board in 3D

    Syldra

    ambraglow/syldra

    87 parts1CERN-OHL-W-2.0
  • 2 layers137.9 × 57.6 mmBadge2, the printed circuit board in 3D

    Badge2

    urish/aramcon-badge

    Just a badge

    75 parts18
  • 4 layers91.4 × 88.4 mmSAcre, the printed circuit board in 3D

    SAcre

    Cosmin-DB/SAcre

    Diseño electrónico de un dispositivo portátil basado en ESP32.

    93 parts
  • 4 layers110 × 54 mmVFD IV6, the printed circuit board in 3D

    VFD IV6

    nerovny/IV-6-VFD-Clock

    IV-6 VFD Clock based on the STM32f103 MCU

    134 parts1

Questions

How big is the C3-27-epaper touch PCB?

It measures 70.2 × 71 mm and has 4 copper layers, 1.6 mm thick.

What parts does the C3-27-epaper touch use?

64 parts, built around the ESP32-C3-WROOM-02-N4, CP2102N-A02-GQFN28R, PCF8563T/5 and RT9013-33GB. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the C3-27-epaper touch KiCad files?

From the martinberlin/bistable-smart-switch repository on GitHub, at the commit this page was made from: the board is Hardware/C3-27-epaper-touch/C3-27-epaper-touch.kicad_pcb and its schematic Hardware/220AC-mini-C3-board/220AC-mini-C3-board.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the C3-27-epaper touch design in my own project?

Its repository publishes it under the Apache-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).