Skip to the content
PCBKitNew board
2 layers65 × 56 mmDebounce shield, the printed circuit board in 3D

Fully isolated, input debounce Hat for Raspberry Pi, for up to 6 switches, relays and powered devices

Size
65 × 56 mm
Copper layers
2
Thickness
1.6 mm
Parts
83
Nets
87
Pads
284
Tracks, vias
552, 62
Pours
27
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
15 Mar 2018
Updated
8 May 2020

Overview

Debounce shield is an open-source printed circuit board by MayaPosch, from the MayaPosch/DebounceHat repository on GitHub, published under the BSD-3-Clause licence. It is a 2-layer board of 65 × 56 mm with 83 parts on 87 nets, routed with 552 tracks and 62 vias.

It is built around the RKZE-0505S/H, LTV-814 and 74LV14D, with the CAT24C32LI-, MAX16914AUB+ and RLS-126 among its other parts. Its parts include 20 resistors, 14 capacitors, 9 ICs, 7 diodes and 7 connectors. It belongs with the computers and single-board computers boards of this library.

Main components

6

README

README.md

Debounce HAT for Raspberry Pi

Debounce HAT

Debounce HAT back

The Debounce HAT provides six opto-isolated digital input channels and is compatible with Raspberry Pi single board computers (SBC) with a 0.1" 2x20 pin header. The Debounce HAT is designed to protect the controller side from electrostatic discharge transients, returning currents through low voltage spark gaps and a dedicated chassis ground connection (PE).

All inputs can be driven with 3 to 24 V with arbitrary polarity. An on-board isolated 5 V DCDC converter provides an uncommitted supply of up to 400 mA for switches, active sensors or remote circuitry. The Debounce HAT implements filtering to suppress fast sequences of level changes typically encountered when using mechanical switches to provide plausible logic inputs to the target.

Further Information

A project page for this board along with ordering information can be found on the Nyantronics site.

Electrical Specifications:

  • 6 opto-isolated, uncommitted bipolar inputs (Lo: |Vin| < 1 V, Hi: 3 V < |Vin| < 24 V) with transient protection.
  • Isolated DCDC providing 5 V, 400 mA for sensors, switches and remote circuitry (functional isolation, 4 kV DC / 1 s).
  • Power terminal with two pairs of 8 A - rated contacts for easy 5 V supply daisychaining to additional devices.
  • Advanced input protection with -24 V reverse polarity and +24 V overvoltage capability (load disconnect at >=6.0 V).
  • Low ideal diode voltage drop of <200 mV at 3 A.
  • >2.4 mm clearance between logic and isolated sides (applies when PE not connected).
  • Spark gaps between input pairs.
  • Spark gaps between input pins and PE.
  • Spark gaps between isolated power and PE.
  • Channel probe points marked on pin header for easy setup and debugging.
  • EEPROM address default 0x50 can be changed via solder jumpers to resolve collision with other HATs (Multi-HAT support).

Mechanical Specifications:

  • 3.5 mm pitch terminal block for power in / pass-through (ø 0.2-1.5 mm² / 24-16 AWG).
  • 2.5 mm pitch terminal blocks for isolated power and signal (ø 0.2-1.0mm² / 22-16 AWG).
  • PE connection via 4.8 mm spade connector and M3 mounting hole.
  • Raspberry Pi-compatible mounting hole pattern for M2.5 and M3 polyamide stand-off bolts.
  • 16 to 18 mm PCB stacking height (with pre-soldered header, defined by 2x20 pin 0.1" header, other heights available when hand soldering the header).

Typical Applications:

  • Digital inputs with ESD protection.
  • Mechanical switch / interlock inputs.
  • Isolated sensor interface.

GPIO

The six channels of the board are mapped to the following GPIO pins:

  1. BCM 23 (WiringPi 4)
  2. BCM 26 (WiringPi 25)
  3. BCM 6 (WiringPi 22)
  4. BCM 5 (WiringPi 21)
  5. BCM 22 (WiringPi 3)
  6. BCM 17 (WiringPi 0)

In the below graphic those pins are marked in yellow (DBH n):

Debounce HAT GPIO

These pins are marked as probe points on the silkscreen of the 2x20 pin header.

Power Distribution

The Debounce HAT can be powered from the SBC side. In this case the power terminals are disconnected to avoid back-driving.

When instead a 5V supply is connected to the Debounce HAT power input, the HAT provides advanced input protection, featuring load-disconnect overvoltage protection and low dropout ideal diode reverse polarity protection, making the 5V input and signal inputs +/- 24 V tolerant.

A target voltage of 2 to 5.5 V needs to be provided on pin 17 (typically 3.3 V supplied by the SBC).

With external 5V connected, additional hardware can be connected to the power terminal and draw up to 6 A.

The Debounce HAT provides an isolated source of 5 V for axuilliary circuitry (switches, sensors, other). The on-board DCDC converter is connected to the 5 V pins of the 2x20 pin header (pin 2, pin 4) and active in both above mentioned supply schemes.

Inputs

The inputs are driven with an external voltage in the range of 3 to 24V. With mechanical switches, a circuit has to be formed with the on-board isolated 5 V output, or with an external power supply.

[Note] The Debounce HAT is not intended to be connected to mains-powered appliances. When a fault condition cannot be excluded in which any contact of the isolated side (signal inputs and isolated 5V) is live, a fuse must be placed between the HAT PE contact and the contact to ground.

EEPROM Configuration

The EEPROM configuration is provided in the eeprom_setting.txt file, which can be processed with the eepmake tool, and flashed to the EEPROM with eepflash. Both tools can be found at https://github.com/raspberrypi/hats/tree/master/eepromutils. The jumper (two pin header) allows for the EEPROM to be set to write-protected/write-enabled mode (WP, WE, respectively).

[Note] When not flashing the EEPROM, the EEPROM header should be set to Write-Protect (WP) mode by removing any electrical connection between the |EEPROM| pins on the two-pin header to prevent any accidental rewriting of the EEPROM's contents.

Liability Disclaimer

This board design has passed preliminary testing and is provided as-is. No responsibilities for damage or harm caused by its use will be accepted.

Parts

83
QtyValueFootprintReferences
121kResistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolderR11, R12, R13, R14, R15, R16, R21, R22, R23, R24, R25, R26
9100nFCapacitor_SMD:C_0603_1608MetricC1, C2, C3, C4, C5, C6, C7, C12, C13
6D_TVSDiode_SMD:D_SOD-123D1, D2, D3, D4, D5, D6
6LTV-814Package_DIP:DIP-4_W7.62mmIC1, IC2, IC3, IC4, IC5, IC6
41kResistor_SMD:R_0603_1608MetricR4, R5, R6, R7
43.9kResistor_SMD:R_0603_1608MetricR1, R2, R3, R8
3RPi_Hat:RPi_Hat_Mounting_Hole, ,
3Conn_01x06Phoenix_Contact_1990041:1990041J1, J3, J4
3R_Pack04Resistor_SMD:R_Array_Convex_4x0603RN12, RN34, RN56
3SJ3_Bridged12Jumper:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mmJP1, JP2, JP3
210uF/25VCapacitor_SMD:C_1206_3216MetricC9, C14
2DMP3028LFDE7DMP2066UFDE7:U-DFN2020-6Q1, Q2
2FBInductor_SMD:L_0805_2012MetricFB1, FB2
2LEDLED_SMD:LED_0805_2012MetricOVP1, PWR1
1100nF/50VCapacitor_SMD:C_0603_1608MetricC10
110uF/35VCapacitor_SMD:C_1206_3216MetricC11
11285Keystone_1285:1285J7
11985218Phoenix_Contact_1985218:1985218J6
1220pF/440VACVaristor:RV_Disc_D12mm_W4.6mm_P7.5mmC8
174LV14DPackage_SO:SOIC-14_3.9x8.7mm_P1.27mmU1
1CAT24C32Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU2
1Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ5
1D_TVSDiode_SMD:D_SMBD7
1LOGOlibs:nyantronics_logoG***
1LOGOlibs:earth_peG***
1LOGOlibs:kitten_paw_printsG***
1LOGOoshw:oshwG***
1MAX16914AUB+MAX16914AUB+:SOP50P490X110-10NIC7
1MountingHole_PadMountingHole:MountingHole_3.5mm_Pad_ViaH1
1RKZE-0505S/H RKZE-0505S:RKZE0512SHPPS1
1RLS-126RLS-126:RLS126L1
1RPi_GPIORPi_Hat:Pin_Header_Straight_2x20J2

The 79 most common of 83 parts.

Questions

How big is the Debounce shield PCB?

It measures 65 × 56 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Debounce shield use?

83 parts, built around the RKZE-0505S/H, LTV-814, 74LV14D and CAT24C32LI-. 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 Debounce shield KiCad files?

From the MayaPosch/DebounceHat repository on GitHub, at the commit this page was made from: the board is debounce_shield.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Debounce shield design in my own project?

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

Similar boards

  • 2 layers69.9 × 51.4 mmMIDI2M4000, the printed circuit board in 3D

    MIDI2M4000

    drdpj/MidiKeyboardBluePill

    MidiKeyboard for the Blue Pill

    43 parts7GPL-3.0
  • 2 layers100 × 45 mmBasic mc6800, the printed circuit board in 3D

    Basic mc6800

    rabid-inventor/mc68xx-boards

    collection of PCB's based around the Motorola MC6800 series processor

    32 parts3MIT
  • 2 layers90 × 77 mmJetson Extension Board, the printed circuit board in 3D

    Jetson Extension Board

    MARS-UVA/Jetson_Extension_Board

    KiCad design files for the Jetson Extension Board

    28 parts
  • 2 layers99.1 × 76.2 mmSsr, the printed circuit board in 3D

    Ssr

    Miceuz/triac-bloc

    An universal power block based on triac. In essence this is a solid state relay with some bells and whistles

    39 parts54
  • 2 layers25.4 × 26 mmWirelessTeleInfo, the printed circuit board in 3D

    WirelessTeleInfo

    Domochip/WTeleInfo

    Un D1 Mini et quelques composants pour envoyer votre Téléinfo (Compteur EDF) sur votre Domotique

    9 parts22
  • 2 layers21.9 × 17.1 mmAlimTeleinfoMySensors, the printed circuit board in 3D

    AlimTeleinfoMySensors

    tdouez/TeleinfoMySensors

    Interface Téléinfo pour compteur Linky avec MySensors

    14 parts14
  • 2 layers45.8 × 40.2 mmGoProControl, the printed circuit board in 3D

    GoProControl

    synfinatic/GoProControl

    GoPro WiFi controller board using an ESP8266 allowing easy integration with other circuits

    27 parts13GPL-3.0
  • 2 layers100 × 67 mmLed controller, the printed circuit board in 3D

    Led controller

    markus-k/led-controller-hardware

    KiCAD schematics and design files for my LED controller.

    91 parts5