Skip to the content
2 layers28.4 × 50.8 mmPCB Receiver, the printed circuit board in 3D

This project is for a general-purpose, capacitive-touch keypad powered by a ESP32 and a matching receiver.

Size
28.4 × 50.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
34
Nets
28
Pads
75
Tracks, vias
124, 8
Pours
1
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
30 Sep 2024
Updated
21 Oct 2024

Overview

PCB Receiver is an open-source printed circuit board by michaelruppe, from the michaelruppe/touch-keypad repository on GitHub. It is a 2-layer board of 28.4 × 50.8 mm with 34 parts on 28 nets, routed with 124 tracks and 8 vias.

It is built around the BSS138. Its parts include 8 resistors, 4 connectors, 3 diodes, 3 transistors and 2 capacitors. It belongs with the SAM D and SAM boards of this library.

Main components

1

README

README.md

Touch Keypad

This project is for a general-purpose, capacitive-touch keypad powered by a ESP32 and a matching receiver.

This project was originally designed as a keypad entry system for my garage door, but could easily be modified to other purposes. It is essentially a touch-keypad and receiver pair, where all authorisation is handled by the receier. The keypad only transmits information about what key sequence has been pressed.

Instructions for Use

Opening the Door

  1. Enter your authorised code on the keypad.
  2. Press the UP key.
  3. If the code is correct, you'll hear an ascending tone, and the door will begin to open.
  4. If the code is incorrect, you'll hear a descending tone. The door will not open.

Closing the Door

  1. Simply press the DOWN button on the keypad.
  2. The door will begin to close immediately. No code is required.

Stopping the Door

  1. Press the STOP button on the keypad at any time during door movement.
  2. The door will stop immediately. No code is required.

Setting a New Code

  1. Press the CODE button on the receiver. The status light will flash continuously.
  2. On the keypad, enter your new code (must be 4-12 digits long).
  3. Press the UP key to confirm.
  4. If accepted, you'll hear 3 ascending tones.

Understanding Keypad Sounds

The keypad provides audible feedback to guide you:

  • Ascending tone: Your code was authorised.
  • Descending tone: Your code was not authorised.
  • 3 low beeps: The system is locked out due to too many unauthorised attempts.
  • 3 ascending tones: A new code has been successfully set.

Important Notes

  • The UP command always requires an authorised code for security reasons.
  • DOWN and STOP commands can be used at any time without entering a code.
  • If you enter too many incorrect codes, the system will lock out. Wait for the lockout period to end before trying again.
  • Keep your code confidential to ensure the security of your property.

How it works

When the user enters a code on the keypad, the numerical code and the control key (Up, Down, or Stop) are sent as an encrypted message to the receiver. The receiver decrypts the message and determines if the code is correct. It responds with the authorisation status and the number of attempts remaining. If too many unauthorised attempts are made the Receiver locks-out the system.

mermaid
sequenceDiagram
    participant User
    participant Keypad
    participant Receiver
    
    User->>Keypad: Enter code + control key
    Keypad->>Keypad: Encrypt message
    Keypad->>Receiver: Send encrypted message
    Receiver->>Receiver: Decrypt message
    
    alt UP command
        Receiver->>Receiver: Check authorization
        alt authorised
            Receiver->>Keypad: Send authorization status
            Receiver->>Receiver: Execute UP command
        else Unauthorised
            Receiver->>Keypad: Send status + remaining attempts
            alt Too many attempts
                Receiver->>Receiver: Lock out system
            end
        end
    else DOWN or STOP command
        Receiver->>Receiver: Execute command without authorization
        Receiver->>Keypad: Send execution status
    end

Keypad PCB Features

  • Capacitive touch sensors - simplify assembly
  • All components are on the back side
  • Prototyping connections Vin, GND, Tx, Rx
  • Gerbers pre-generated and LCSC components specified in BOM file

Receiver PCB Features

  • 3ch open-drain outputs
  • Wide input voltage
  • Pass-through terminals for daisy-chaining other controllers

Parts

34
QtyValueFootprintReferences
5100Resistor_SMD:R_0603_1608MetricR1, R3, R5, R7, R8
310kResistor_SMD:R_0603_1608MetricR2, R4, R6
3BSS138Package_TO_SOT_SMD:SOT-23Q1, Q2, Q3
2LEDLED_SMD:LED_0805_2012MetricD2, D3
2Screw_Terminal_01x02TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_HorizontalJ2, J5
2Screw_Terminal_01x03TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3_1x03_P5.00mm_HorizontalJ1, J3
110uFCapacitor_SMD:C_0805_2012MetricC1
122uFCapacitor_SMD:C_0805_2012MetricC2
1CHANGE_CODEButton_Switch_SMD:SW_SPST_B3S-1000SW1
1DDiode_SMD:D_SMAD1
1G***kibuzzard-67159C4Bkibuzzard-67159C4B
1G***kibuzzard-67159A86kibuzzard-67159A86
1G***kibuzzard-67159C59kibuzzard-67159C59
1G***kibuzzard-67159B6Dkibuzzard-67159B6D
1G***kibuzzard-67159A69kibuzzard-67159A69
1G***kibuzzard-6715A150kibuzzard-6715A150
1G***kibuzzard-67159C44kibuzzard-67159C44
1G***kibuzzard-67159C53kibuzzard-67159C53
1G***kibuzzard-67159C39kibuzzard-67159C39
1G***kibuzzard-67159C0Ekibuzzard-67159C0E
1G***kibuzzard-67159A3Dkibuzzard-67159A3D
1Seeed Studio XIAO SAMD21xiao:XIAO-ESP32C3-14P-2.54-21X17.8MMU3
1Switchmode Step-DOWN 7805 footprintConverter_DCDC:Converter_DCDC_RECOM_R-78E-0.5_THTU2

More from michaelruppe/touch-keypad

1
  • 2 layers70 × 111 mmPCB Keypad, the printed circuit board in 3D

    PCB Keypad

    michaelruppe/touch-keypad

    This project is for a general-purpose, capacitive-touch keypad powered by a ESP32 and a matching receiver.

    61 parts1

Similar boards

  • 4 layers36 × 50.2 mmRacer, the printed circuit board in 3D

    Racer

    StuckAtPrototype/Racer

    These are structured into their own files. I could have used submodules, but decided against it.

    83 parts3.8kApache-2.0
  • 4 layers95 × 95 mmCube motherboard, the printed circuit board in 3D

    Cube motherboard

    willem-pennings/balancing-cube

    A cube that balances itself in a corner or edge using reaction wheels

    52 parts1.1kGPL-3.0
  • 2 layers54.6 × 70.9 mmBeagleLogic Cape, the printed circuit board in 3D

    BeagleLogic Cape

    abhishek-kakkar/BeagleLogic

    A Software Suite that implements a logic analyzer with the PRU on the BeagleBone / BeagleBone Black.

    22 parts479GPL-3.0
  • 2 layers44.2 × 29.3 mmI2c tiny usb, the printed circuit board in 3D

    I2c tiny usb

    harbaum/I2C-Tiny-USB

    Cheap and simple I²C to USB interface

    27 parts454
  • 2 layers21.6 × 52.3 mmPs2 pico hat, the printed circuit board in 3D

    Ps2 pico hat

    No0ne/ps2x2pico

    USB keyboard/mouse to PS/2 interface converter using a Raspberry Pi Pico

    17 parts399MIT
  • 2 layers45 × 45 mmAirCube, the printed circuit board in 3D

    AirCube

    StuckAtPrototype/AirCube

    Works standalone out of the box. Pairs with Home Assistant in minutes. Other platforms are supported through community-contributed extensions.

    61 parts379Apache-2.0
  • 4 layers74 × 104 mmBeepy, the printed circuit board in 3D

    Beepy

    sqfmi/beepy-hardware

    Beepy Hardware

    160 parts348MIT

Questions

How big is the PCB Receiver PCB?

It measures 28.4 × 50.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the PCB Receiver use?

34 parts, built around the BSS138. 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 PCB Receiver KiCad files?

From the michaelruppe/touch-keypad repository on GitHub, at the commit this page was made from: the board is PCB-Receiver/PCB-Receiver.kicad_pcb and its schematic PCB-Keypad/PCB-Keypad.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the PCB Receiver design in my own project?

Its repository states no licence, so its author keeps all rights: ask michaelruppe before reusing the design.