| i've been doing a lot of small circuit simulations in paul falstad's circuit.js lately i've learned a lot of interesting things: - it's free software under the gnu gpl - you can download the repo and run the javascript locally when you're offline. for this purpose the 'export as text' file menu option is useful; it gives you a textual representation of the circuit you can copy and paste, so you aren't dependent on tinyurl.com to get your circuit back. like spice, it ignores leading whitespace, which is super convenient if you keep your notes in markdown - you can set the background to white (under options) - the list of available devices isn't extensive but it does include a tl431 - the svg export (file menu) is great for including in a web page, but it only includes 'undocked' scopes, and the data that's plotted in them may not be the same as what you see - the simulations are generally in good agreement with the ngspice simulations i've done, but you have to use a smaller timestep than spice usually chooses (i guess because of the lower order of integration), and unless it's much smaller, it can still have some numerical stability problems - they run slower than spice, but often the faster feedback loop for interactivity makes up for it - you can simulate an avr in it at the instruction level with avr8js: https://hackaday.com/2021/06/11/circuit-vr-arduino-virtually... which i don't know how to do in ngspice or any other spice — ⁂ — i have some questions, maybe someone knows the answers: - is there a way to convert spice netlists into circuit.js designs? because that would be pretty useful, especially if i could, say, import a spice model of a 7805 as a subcircuit - is there a way to convert circuit.js designs into spice netlists? because i feel like the schematic view is a lot clearer than the textual netlist - is there a way to import and/or export to kicad? - is there a way to do monte carlo simulation in circuit.js? or at least sensitivity analysis? — ⁂ — here are some circuits i've put together in circuit.js this week: http://tinyurl.com/27m6usjw http://tinyurl.com/23u2y4w8 http://tinyurl.com/2cf5kgxc http://tinyurl.com/23qvuylw http://tinyurl.com/27agyg4q http://tinyurl.com/2bssxwjq and last week: http://tinyurl.com/2889h6o8 http://tinyurl.com/2a8by2mq (happy to explain any of these if anyone is curious) |