Elektrine lite

← Feed

@mathias@rhizospherelabs.com

Post #1159697

2026-04-14 16:59 UTC

Folks that do software and analog electronics: (and please boost for visibility) Is there an OSS tool that simulates analog circuits for signals? In particular, I want something that I can script and write expectations of the output signals for given inputs. And ideally that scripting would include programmatically adding/removing/changing components in the simulated circuit and then testing the outputs. Thanks! #electronics #analogElectronics #simulations #programming

Replies (4)

  • @kevin@fedi.kbg.sh 2026-04-14 17:08

    @mathias@rhizospherelabs.com if I’m understanding you right it seems like you want a SPICE simulator. LTspice is an OSS implementation

    Open ##2832510

  • @De_Treias@livellosegreto.it 2026-04-14 18:29

    @mathias@rhizospherelabs.com ngspice should be powerful enough. Your goal can be achieved in several ways. Scripts can be used to control the simulator and manipulate the netlist as a text file. Ngspice itself supports "alter" command to change the netlist. VerilogA blocks and switches can be used to perform algorithms, connect or disconnect parts. Ngspice also supports TCLspice, and circuit optimization, the manual has examples. @oblomov@sociale.network

    Open ##2832511

  • @maro@merveilles.town 2026-04-14 19:23

    @mathias@rhizospherelabs.com Perhaps this is worth a look? https://github.com/charleseidsness/eispice

    Open ##2832512

  • @cazabon@mindly.social 2026-04-15 02:51

    @mathias@rhizospherelabs.com Circuit emulators - classically SPICE, but there are many descendants from that - do what you want. A bunch are open source or free software. Getting (accurate) models for some components can be problematic, but searching the 'net will generally get you the clues you need to get there. SPICE software is a big topic. Prepare to dive in... #SPICE #CircuitEmulator

    Open ##2832513