© 2024 EasyEDA Some rights reserved ISO/IEC
1.Easy to use and quick to get started
2.The process supports design scales of 300 devices or 1000 pads
3.Supports simple circuit simulation
4.For students, teachers, creators
1.Brand new interactions and interfaces
2.Smooth support for design sizes of over 5,000 devices or 10,000 pads
3.More rigorous design constraints, more standardized processes
4.For enterprises, more professional users
STD Voltage controlled resistors
License: Public Domain
Mode: Editors' pick
How to simulate voltage controlled resistors and potentiometers in EasyEDA.
Resistors in spice cannot be set to zero. They must always have a small minimum value.
Resistors should also not normally be allowed to go negative.
So, to prevent them transitioning through zero and also to stop them going negative, the
resistors in these examples use the LIMIT function to apply upper and lower limits to
their values.
The resistor, R1, has a value, R1val, that is scaled by the controlling voltage, V(CTRL).
It has a minimum positive resistance defined by R1min and, to prevent accidentally setting
a resistance above the generally recommended maximum value of 1G due to a combination of
R1val and the maximum applied V(CTRL), R1max is set to 1G.
The pot in this example is controlled by a voltage that represents the angular rotation of
the pot spindle, in degrees. It has an end to end resistance value, Rpotval.
The resistance making up each side of the slider has a minimum positive resistance defined by
Rpotmin and, to prevent accidentally under or over-rotating the pot via the controlling voltage,
it has a minimum and maximum resistance limits, Rpotmin and Rpotmax.
F8 to run.
ID | Name | Designator | Footprint | Quantity |
---|---|---|---|---|
1 | sine(0 10 1k) | VSIG1 | HDR1X2 | 1 |
2 | PULSE(-1 10 0 10m 10m 1p) | VCTRL1 | HDR1X2 | 1 |
3 | PULSE(-45 315 0 10m 10m 1p) | VCTRL2 | HDR1X2 | 1 |
4 | 1mA | I1 | 2P-5.08 | 1 |
5 | R=LIMIT(Rpotmin, Rpotval*(1-V(deg_rotation)/270), Rpotmax) | RTOP1 | AXIAL-0.3 | 1 |
6 | R=LIMIT(Rpotmin, Rpotval*V(deg_rotation)/270, Rpotmax) | RBOT1 | AXIAL-0.3 | 1 |
7 | R=LIMIT(R1min, R1val*V(CTRL), R1max) | R1 | AXIAL-0.3 | 1 |
Unfold
Loading...
Do you need to add this project to the album?