Thank you. I am simulating a temperature sensor circuit similar to Jim Williams' circuit in Linear Tech application note AN-45. A BJT is used and the circuit requires no calibration.
When the simulator runs at 27 C, is it converted to 300.15 kelvin, or 300 kelvin?
This could be done easily with some XSPICE models, either digital or analog switches.
I once tried to make a timer with a capacitor in the range of the 330 µF, and with the model from the forum, it will simulate, but it is not practical, due to leakage. Clyde On Fri, Dec 12, 2025 at 11:51 AM Dario Martin Lobos dariolobos@users.sourceforge.net wrote: I wil do that. Thanks XSPICE 555 Timer Model https://sourceforge.net/p/ngspice/discussion/ngspice-tips/thread/f535c0f1b9/?limit=25&page=2#baa6 Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/ngspice/discussion/ngspice-tips/...
I have always deiined my own version of PI to use in .params, PI=4.0*atan(1.0) Thanks for showing the command listing param Giles. This is new to me and helpful.
You could use a digital file source and bridge from digital to analog, the d_source XSPICE model. I can share an example of this, if desired.
You could use a digital file source and bridge from digital to analog, the d_source XSPICE model. I can share an example of this, if desired.
Cai, I put a little block in my spinit to tel me what is going on.