jchengroa
2026•De La Salle University - Velasco Hall•J.C. Cheng Roa, J.C. Almera, G.C. Balboa, L.E. Figueroa, J.P. Fronda

Single-Digit Random Number Circuit Design & PCB Implementation

[DIGITAL LOGIC]•[PCB IMPLEMENTATION]•[SEQUENTIAL LOGIC]•[COMBINATIONAL LOGIC]

A digital sequential and combinational logic circuit utilizing an astable 555 timer, 74LS90 decade counter, and 74LS47 decoder to simulate an unpredictable single-digit dice roller on a custom PCB.

Fig 1.0 — Primary assembly / circuit overview for Single-Digit Random Number Circuit Design & PCB Implementation

System Architecture & Functional Logic

Astable Clock & Gated Trigger Architecture

An NE555P timer in astable mode produces continuous ~19.24 Hz clock pulses (51.98ms period). A momentary pushbutton with a 10kΩ pulldown resistor gates the clock signal into pin 14 (CP0) of the 74LS90, maintaining a stable LOW level when released to prevent floating logic triggers.

Decade Counting & BCD-to-7-Segment Display

The 74LS90 increments through 10 BCD states (0000–1001) and automatically resets at 10. The 4-bit output directly drives a 74LS47 active-LOW decoder linked to a common-anode 7-segment display, alongside 4 binary monitoring LEDs and a pulsed piezo buzzer for audiovisual cues.

Technical Implementation Steps

1. 555 Timer Frequency Configuration

Configured with R1 = 10kΩ, R2 = 10kΩ, and C1 = 2.5µF (charging t1 = 34.65ms, discharging t2 = 17.33ms, 66.7% duty cycle) to cycle 19 times per second, outmatching human reaction time (~200ms) to ensure randomness.

2. Staged Breadboard Verification

Tested modularly: first inspected slow clock pulses with a 470µF capacitor, verified the 74LS90 0–9 BCD sequence with push-pulse inputs, and confirmed 74LS47 segment mapping before stepping down to high-speed oscillation.

3. KiCad Schematic & Single-Layer PCB Routing

Designed schematic and routed single-layer PCB tracks in KiCad with dedicated 5V VCC power rails, star ground plane, and component headers for the SPST button, buzzer, and 7-segment LED.

Engineering Challenges & Diagnostics

Breadboard Even-Number Bias

Solderless breadboard prototype testing showed an unexpected bias toward even numbers due to loose contact resistance and bouncing on clock lines. Transferring and soldering components onto the copper PCB eliminated contact noise, restoring uniform distribution.

Floating Clock Line Stabilization

Addressed input noise susceptibility by placing a 10kΩ pulldown resistor at the button-to-74LS90 junction, ensuring pin 14 stays firmly grounded when the button is open.

Results & Performance Verification

19.24 Hz Oscillation Speed

Achieved ~19 counts per second, executing ~4 full counting cycles during human button press duration, making timing prediction impossible.

Accurate 0–9 Decimal Decoding

Confirmed 10-state truth table mapping with active-LOW 74LS47 driving segments without blanking or invalid digit outputs.

Hardware PCB Reliability

The fabricated PCB board successfully consolidated the 3 IC stages into a compact, portable 5V standalone random number generator unit.

Discussions & Design Tradeoffs

Reaction Time vs. Hardware Frequency Mismatch

Demonstrates how combining high-frequency digital clocking with human tactile latency achieves effective pseudorandomness without microcontrollers or firmware.

Physical Construction Integrity

Highlights the necessity of solid PCB solder joints over temporary breadboard jumpers when designing noise-sensitive, edge-triggered digital logic systems.

Bill of Materials (BOM) & Cost Schedule

Component / HardwareQtySource / SpecCost
74LS90 Decade Counter IC1 pcElectronics SupplyPHP 45.00
74LS47 BCD to 7-Segment Decoder1 pcElectronics SupplyPHP 50.00
NE555P Precision Timer IC1 pcElectronics SupplyPHP 20.00
Common Anode 7-Segment Display1 pcElectronics SupplyPHP 35.00
Resistors (300Ω ¼W, 10kΩ ¼W)7 pcsElectronics SupplyPHP 14.00
Electrolytic Capacitors (2.5µF)2 pcsElectronics SupplyPHP 10.00
Piezo Buzzer & 5mm LEDs5 pcsElectronics SupplyPHP 30.00
SPST Momentary Pushbutton1 pcElectronics SupplyPHP 15.00
Single-Sided Copper Clad PCB1 pcFabricationPHP 60.00

Schematics, Blueprints & Layouts

Fig 1.1 — KiCAD PCB Layout

PCB layout designed in KiCAD for the 74LS90, 74LS47, and NE555P ICs with corresponding power and ground planes.

Project Documentation & Archives

Peer-reviewed papers, design schematics, and raw CAD files.