AndyAguilo/qrng_optimized_dual-amp

This hardware design implements a quantum noise detection circuit comprising power filtering, a Zener diode-based noise source, dual transistor amplifier stages for signal boosting, and a 3.3V Zener clamp output protection, assembled with discrete resistors, capacitors, and transistors on a PCB.

Version
0.0.1
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone AndyAguilo/qrng_optimized_dual-amp  # download the package files into ./qrng_optimized_dual-amp
tsci add AndyAguilo/qrng_optimized_dual-amp    # add it to your project as @tsci/AndyAguilo.qrng_optimized_dual-amp

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

dist/index.js

import { jsxs, jsx } from 'react/jsx-runtime';

/**
 * OPTIMIZED QUANTUM RANDOM NUMBER GENERATOR
 *
 * BEST OF BOTH WORLDS:
 * - Two-stage amplification (from advanced) → 100× gain
 * - Direct 3.3V Zener clamp (from advanced) → simpler protection
 * - Single components (from simple) → lower cost, easier assembly
 *
 * vs SIMPLE: Better gain (100× vs 10×), simpler protection
 * vs ADVANCED: 80% fewer components, half the cost
 *
 * MOUSER PARTS (per detector):
 * - Zener 12V: 512-1N4742A (×1)
 * - Zener 3.3V: 512-1N5226B (×1)
 * - Transistors: 863-2N3904TAR (×2)
 * - Resistors 1kΩ: 71-CMF551K0000FHEK (×3)
 * - Resistors 10kΩ: 71-CMF5510K000FHEK (×2)
 * - Resistors 100kΩ: 71-CMF55100K00FHEK (×2)
 * - Capacitors 100nF: 594-K104K15X7RF53L2 (×4)
 * - Capacitor 10µF: 647-UPW1E100MDD (×1)
 * - Capacitor 1µF: Film type (×1)
 *
 * COST: ~€8 per detector (vs €5 simple, €15 advanced)
 * COMPONENTS: 17 (vs 11 simple, 35 advanced)
 */
var index = () => (jsxs("board", { width: "90mm", height: "50mm", children: [jsx("chip", { name: "PWR_IN", footprint: "dip2", pcbX: -35, pcbY: 18, pinLabels: { pin1: "V12", pin2: "GND" }, pinAttributes: {
                pin1: { requires_power: true },
                pin2: { requires_ground: true }
            } }), jsx("capacitor", { name: "C_PWR1", capacitance: "100nF", footprint: "axial0.3", pcbX: -28, pcbY: 18, supplierPartNumbers: { mouser: ["594-K104K15X7RF53L2"] } }), jsx("capacitor", { name: "C_PWR2", capacitance: "10uF", footprint: "radial0.2", pcbX: -22, pcbY: 18, supplierPartNumbers: { mouser: ["647-UPW1E100MDD"] } }), jsx("resistor", { name: "R_BIAS", resistance: "1k", footprint: "axial0.3", pcbX: -35, pcbY: 0, pcbRotation: 90, supplierPartNumbers: { mouser: ["71-CMF551K0000FHEK"] } }), jsx("diode", { name: "D_ZENER", footprint: "axial0.3", pcbX: -35, pcbY: -10, pcbRotation: 90, supplierPartNumbers: { mouser: ["512-1N4742A"] } }), jsx("capacitor", { name: "C1", capacitance: "100nF", footprint: "axial0.3", pcbX: -22, pcbY: 0, supplierPartNumbers: { mouser: ["594-K104K15X7RF53L2"] } }), jsx("transistor", { name: "Q1", type: "npn", footprint: "to92", pcbX: -10, pcbY: 0, supplierPartNumbers: { mouser: ["863-2N3904TAR"] } }), jsx("resistor", { name: "R1C", resistance: "10k", footprint: "axial0.3", pcbX: -10, pcbY: 13, pcbRotation: 90, supplierPartNumbers: { mouser: ["71-CMF5510K000FHEK"] } }), jsx("resistor", { name: "R1E", resistance: "1k", footprint: "axial0.3", pcbX: -10, pcbY: -13, pcbRotation: 90, supplierPartNumbers: { mouser: ["71-CMF551K0000FHEK"] } }), jsx("resistor", { name: "R1B", resistance: "100k", footprint: "axial0.3", pcbX: -16, pcbY: 6, supplierPartNumbers: { mouser: ["71-CMF55100K00FHEK"] } }), jsx("capacitor", { name: "C2", capacitance: "100nF", footprint: "axial0.3", pcbX: 3, pcbY: 0, supplierPartNumbers: { mouser: ["594-K104K15X7RF53L2"] } }), jsx("transistor", { name: "Q2", type: "npn", footprint: "to92", pcbX: 15, pcbY: 0, supplierPartNumbers: { mouser: ["863-2N3904TAR"] } }), jsx("resistor", { name: "R2C", resistance: "10k", footprint: "axial0.3", pcbX: 15, pcbY: 13, pcbRotation: 90, supplierPartNumbers: { mouser: ["71-CMF5510K000FHEK"] } }), jsx("resistor", { name: "R2E", resistance: "1k", footprint: "axial0.3", pcbX: 15, pcbY: -13, pcbRotation: 90, supplierPartNumbers: { mouser: ["71-CMF551K0000FHEK"] } }), jsx("resistor", { name: "R2B", resistance: "100k", footprint: "axial0.3", pcbX: 9, pcbY: 6, supplierPartNumbers: { mouser: ["71-CMF55100K00FHEK"] } }), jsx("capacitor", { name: "C_OUT", capacitance: "1uF", footprint: "axial0.3", pcbX: 28, pcbY: 0, supplierPartNumbers: { mouser: ["Film 1µF"] } }), jsx("diode", { name: "D_CLAMP", footprint: "axial0.3", pcbX: 35, pcbY: -5, pcbRotation: 90, supplierPartNumbers: { mouser: ["512-1N5226B"] } }), jsx("chip", { name: "OUT_TEENSY", footprint: "dip2", pcbX: 40, pcbY: 0, pinLabels: { pin1: "SIG", pin2: "GND" }, pinAttributes: {
                pin1: { requires_power: false },
                pin2: { requires_ground: true }
            } }), jsx("trace", { from: ".PWR_IN .pin1", to: "net.V12" }), jsx("trace", { from: "net.V12", to: ".C_PWR1 .pos" }), jsx("trace", { from: "net.V12", to: ".C_PWR2 .pos" }), jsx("trace", { from: "net.V12", to: ".R_BIAS .pin1" }), jsx("trace", { from: "net.V12", to: ".R1C .pin1" }), jsx("trace", { from: "net.V12", to: ".R1B .pin1" }), jsx("trace", { from: "net.V12", to: ".R2C .pin1" }), jsx("trace", { from: "net.V12", to: ".R2B .pin1" }), jsx("trace", { from: ".PWR_IN .pin2", to: "net.GND" }), jsx("trace", { from: ".C_PWR1 .neg", to: "net.GND" }), jsx("trace", { from: ".C_PWR2 .neg", to: "net.GND" }), jsx("trace", { from: ".D_ZENER .anode", to: "net.GND" }), jsx("trace", { from: ".R1E .pin2", to: "net.GND" }), jsx("trace", { from: ".R2E .pin2", to: "net.GND" }), jsx("trace", { from: ".D_CLAMP .anode", to: "net.GND" }), jsx("trace", { from: ".OUT_TEENSY .pin2", to: "net.GND" }), jsx("trace", { from: ".R_BIAS .pin2", to: ".D_ZENER .cathode" }), jsx("trace", { from: ".D_ZENER .cathode", to: ".C1 .pos" }), jsx("trace", { from: ".C1 .neg", to: "net.Q1_BASE" }), jsx("trace", { from: "net.Q1_BASE", to: ".Q1 .base" }), jsx("trace", { from: "net.Q1_BASE", to: ".R1B .pin2" }), jsx("trace", { from: ".Q1 .collector", to: "net.Q1_COLL" }), jsx("trace", { from: "net.Q1_COLL", to: ".R1C .pin2" }), jsx("trace", { from: ".Q1 .emitter", to: ".R1E .pin1" }), jsx("trace", { from: "net.Q1_COLL", to: ".C2 .pos" }), jsx("trace", { from: ".C2 .neg", to: "net.Q2_BASE" }), jsx("trace", { from: "net.Q2_BASE", to: ".Q2 .base" }), jsx("trace", { from: "net.Q2_BASE", to: ".R2B .pin2" }), jsx("trace", { from: ".Q2 .collector", to: "net.Q2_COLL" }), jsx("trace", { from: "net.Q2_COLL", to: ".R2C .pin2" }), jsx("trace", { from: ".Q2 .emitter", to: ".R2E .pin1" }), jsx("trace", { from: "net.Q2_COLL", to: ".C_OUT .pos" }), jsx("trace", { from: ".C_OUT .neg", to: "net.SAFE_SIG" }), jsx("trace", { from: "net.SAFE_SIG", to: ".D_CLAMP .cathode" }), jsx("trace", { from: "net.SAFE_SIG", to: ".OUT_TEENSY .pin1" })] }));

export { index as default };