Skip to content

Add example circuits from community contributions#281

Open
esaruoho wants to merge 1 commit intopfalstad:devfrom
esaruoho:add-example-circuits
Open

Add example circuits from community contributions#281
esaruoho wants to merge 1 commit intopfalstad:devfrom
esaruoho:add-example-circuits

Conversation

@esaruoho
Copy link
Copy Markdown

@esaruoho esaruoho commented Mar 3, 2026

Summary

  • Add MOSFET super-diode example circuit: N-channel MOSFET configured as an ideal diode replacement with near-zero forward voltage drop (from sharpie7/circuitjs1#415)
  • Add switching regulator example circuit: Buck regulator with bridge rectifier input, feedback loop using op-amp comparator (from sharpie7/circuitjs1#404)
  • Add RTL logic gates example circuit: Complete set of RTL gate implementations (NOT, AND, OR, NAND, NOR, XOR, XNOR) built from discrete transistors and resistors (from sharpie7/circuitjs1#909)
  • Add star-delta transformation example circuit: Demonstrates star (wye) to delta (triangle) resistor network equivalence (from sharpie7/circuitjs1#719)

Each circuit is placed in the appropriate section of setuplist.txt:

  • MOSFET super-diode → MOSFETs section
  • Switching regulator → Power Converters section
  • RTL gates → RTL subsection under Logic Families
  • Star-delta → Other Passive Circuits section (next to Wheatstone Bridge)

All circuit data was sourced directly from the original issue submissions.

Test plan

  • Load each circuit from the Circuits menu and verify it simulates correctly
  • Verify MOSFET super-diode shows near-zero forward voltage drop on scope
  • Verify switching regulator output stabilizes at ~3.3V
  • Verify RTL gates produce correct logic outputs for all gate types
  • Verify star-delta transformation shows equivalent impedance between configurations
  • Confirm no existing menu entries are broken

🤖 Generated with Claude Code

Add four new example circuits sourced from community issue submissions:
- MOSFET super-diode (sharpie7#415): N-channel MOSFET
  configured as an ideal diode replacement with near-zero forward
  voltage drop
- Switching regulator (sharpie7#404): Buck regulator with
  bridge rectifier input, feedback loop, and op-amp comparator
- RTL logic gates (sharpie7#909): Complete set of RTL gate
  implementations (NOT, AND, OR, NAND, NOR, XOR, XNOR) built from
  discrete transistors and resistors
- Star-delta transformation (sharpie7#719): Demonstrates
  the star (wye) to delta (triangle) resistor network equivalence

Each circuit is registered in setuplist.txt under the appropriate
section.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@esaruoho esaruoho force-pushed the add-example-circuits branch from 28d6e2e to 0f58c05 Compare April 15, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant