Skip to the content
2 layersDiffuino selector, the printed circuit board in 3D

Diffuino selector

elixpo/elixpo_chapter85

Elixpo’s canonical collection for public build-and-release Chapters, bringing open-source software, reproducible research, hardware, and community contributions into one attributable record.

Copper layers
2
Thickness
1.6 mm
Parts
46
Nets
31
Pads
115
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 10.0 (file 20260206)
Created
5 Oct 2024
Updated
7 Nov 2026

Overview

Diffuino selector is an open-source printed circuit board by elixpo, from the elixpo/elixpo_chapter repository on GitHub. It is a 2-layer board with 46 parts on 31 nets.

It is built around the 74AHC1G08GW, 74AHC1G04SE and 74AHC1G32GW. Its parts include 18 resistors, 11 capacitors, 6 switches, 5 diodes and 4 ICs. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

3

README

monodiffuse/hardware/diffuino_selector/README.md

Diffuino BCD selector

This KiCad project documents the hardware selector used by Diffuino. Four switches present a BCD value to Arduino UNO Q pins D2--D5. A validity network allows the generate button to reach D6 only for decimal values 0--9, and a separate reset button drives D7.

The request equation is:

text
VALID = NOT(BCD3 AND (BCD2 OR BCD1))
D6 = GENERATE_BUTTON AND VALID

BCD0 does not participate in validation because values 10--15 are identified by BCD3 together with either BCD2 or BCD1.

Revision from the breadboard prototype

The publication schematic deliberately improves the working prototype:

  • 10 kOhm pull-downs replace 220 Ohm signal pull-downs, reducing the high-state current from about 23 mA to 0.5 mA per input;
  • 10 nF switch filters and 100 nF button filters reject short transients, while the STM32 firmware independently applies a 40 ms debounce;
  • 1 kOhm series resistors limit fault current into D2--D7;
  • the trigger indicator is driven through a 2N3904 so it cannot load the logic output sent to D6;
  • every logic IC has a 100 nF local bypass capacitor and the rail has a 10 uF bulk capacitor; and
  • unused CMOS gate inputs must be tied to ground.

The final circuit uses single-gate 74AHC1G32, 74AHC1G08, and 74AHC1G04 devices powered from the UNO Q 5 V rail. This avoids the unused-input problem of the three multi-gate breadboard ICs while preserving exactly the same Boolean network. Their inputs are driven only by rail-to-rail switches. The UNO Q datasheet documents D2--D7 as 5 V-tolerant MCU digital inputs. Do not reuse this design on non-5-V-tolerant pins or on the UNO Q's 1.8 V MPU GPIO.

Pin mapping

SignalUNO Q pin
BCD0 / 2^0D2
BCD1 / 2^1D3
BCD2 / 2^2D4
BCD3 / 2^3D5
Valid generate pulseD6
ResetD7

Files

  • diffuino_selector.kicad_sch: editable KiCad schematic;
  • diffuino_selector.svg and diffuino_selector.pdf: generated exports;
  • generate_schematic.py: reproducible schematic source generator;
  • BOM.csv: component list; and
  • truth_table.csv: exhaustive validity table.

Regenerate the schematic (requires kicad-sch-api) and publication assets with:

text
python generate_schematic.py
kicad-cli sch export svg --output . diffuino_selector.kicad_sch
kicad-cli sch export pdf --output diffuino_selector.pdf diffuino_selector.kicad_sch

The external RC components improve noise immunity but are not the sole debounce mechanism. The STM32 samples the BCD lines only after accepting D6, locks out additional requests during inference, and leaves the final digit displayed until a debounced D7 reset.

Parts

46
QtyValueFootprintReferences
111kResistor_SMD:R_0805_2012MetricR5, R6, R7, R8, R9, R10, R11, R12, R14, R16, R18
710kResistor_SMD:R_0805_2012MetricR1, R2, R3, R4, R13, R15, R17
6100nFCapacitor_SMD:C_0805_2012MetricC5, C6, C7, C8, C9, C10
410nFCapacitor_SMD:C_0805_2012MetricC1, C2, C3, C4
274AHC1G08Package_TO_SOT_SMD:SOT-23-5U2, U4
110uFCapacitor_THT:C_Radial_D5.0mm_H5.0mm_P2.00mmC11
12N3904Package_TO_SOT_THT:TO-92_InlineQ1
174AHC1G04Package_TO_SOT_SMD:SOT-23-5U3
174AHC1G32Package_TO_SOT_SMD:SOT-23-5U1
1ARDUINO_UNO_QConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ1
1BCD0LED_SMD:LED_0805_2012MetricD4
1BCD0Button_Switch_THT:SW_DIP_SPSTx01_Slide_9.78x4.72mm_W7.62mm_P2.54mmSW4
1BCD1Button_Switch_THT:SW_DIP_SPSTx01_Slide_9.78x4.72mm_W7.62mm_P2.54mmSW3
1BCD1LED_SMD:LED_0805_2012MetricD3
1BCD2LED_SMD:LED_0805_2012MetricD2
1BCD2Button_Switch_THT:SW_DIP_SPSTx01_Slide_9.78x4.72mm_W7.62mm_P2.54mmSW2
1BCD3Button_Switch_THT:SW_DIP_SPSTx01_Slide_9.78x4.72mm_W7.62mm_P2.54mmSW1
1BCD3LED_SMD:LED_0805_2012MetricD1
1GENERATEButton_Switch_THT:SW_PUSH_6mmSW5
1GREENLED_THT:LED_D3.0mmD5
1RESETButton_Switch_THT:SW_PUSH_6mmSW6

Similar boards

  • 6 layers100 × 220 mmSrvant mk2, the printed circuit board in 3D

    Srvant mk2

    lwolf/srvant-board

    [WIP] Carrier board for the CM4 with BMC

    276 parts2
  • 4 layers90 × 88 mmControl, the printed circuit board in 3D

    Control

    AJain9199/AOS16

    Table of Contents About The Project Pictures Technical Details Directory Structure To-Do Acknowledgments

    129 parts1
  • 2 layers33 × 85 mmLab3, the printed circuit board in 3D

    Lab3

    moi-script/pcb_ui

    A simple one-layer PCB "drawer": read a KiCad board, extract the copper traces, and turn them into travel-optimized G-code you can plot on a pen-plotter / small CNC driven by a microcontroller (GRBL — an Arduino running…

    19 parts
  • 2 layers100 × 100 mmAS NES Mapper474-SM1, the printed circuit board in 3D

    AS NES Mapper474-SM1

    Akerasoft/AS-NROM-368

    Mapper 474 - Submapper 1 - NROM-368

    17 parts
  • 4 layers281 × 142 mmTuring Machine, the printed circuit board in 3D

    Turing Machine

    MelonMars/TuringPCB

    A Turing Machine that does not use any premade microchips, but rather is built exclusively on simple components.

    255 parts
  • 2 layers90.2 × 95.9 mmBatt Boardv1, the printed circuit board in 3D

    Batt Boardv1

    UChicago-Space-Program/pulse-hardware

    This is the central repository for documents related to PULSE-A hardware development.

    60 parts1

Questions

What parts does the Diffuino selector use?

46 parts, built around the 74AHC1G08GW, 74AHC1G04SE and 74AHC1G32GW. 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 Diffuino selector KiCad files?

From the elixpo/elixpo_chapter repository on GitHub, at the commit this page was made from: the board is monodiffuse/hardware/diffuino_selector/diffuino_selector.kicad_pcb and its schematic monodiffuse/hardware/diffuino_selector/diffuino_selector.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Diffuino selector design in my own project?

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