Circuit simulation in LTspiceIV
- Circuit simulation in LTspiceIV
- 1. Introduction.
- 2. Installing LTspiceIV.
- 3. Setup the simulation.
- 3. Startup the simulation.
- 4. Important settings
- 5. Tutorials
1. Introduction.
LTspiceIV is a Spice III simulator, it includes schematic entry and
waveform viewer , it is a free design tool from Linear - Technology
and has a huge user community.
LTspiceIV is used to setup a simulated jeeNode I/O port using a switch.
As an example the LED discharge circuit
is used. see this link http://jeelabs.org/2010/12/28/led-discharge-circuit/
Jeenode LTspiceIV (astable.asc)
2. Installing LTspiceIV.
System requirements.
Windows ,7, Vista, XP, 2000,98,ME,NT4.0
LTspiceIV works fine under linux (wine).
Download and installing LTspiceIV
Download LTspiceIV with this link
http://ltspice.linear-tech.com/software/LTspiceIV.exe
The LTspiceIV.exe is approximately 9.6Mb and is self-installing.
Version.
LTspice 4.10s December 20 2010
3. Setup the simulation.
This is the circuit wich will be simulated. JP1 is connected to a Jeenode I/O pin.
The circuit diagram in LTspice format and analysis data can be loaded.
http://projects.jeelabs.net/attachments/792/LED_discharge_circuit.asc
Startup LTspiceIV and you will get an empty canvas.
Left-click File > Open Schematic to load the file
from your download location,you will get the screen below.
3. Startup the simulation.
Left-click Simulate > Run and you will get the graph below.
Right-click on the value text of the components to change its value.
With LTspice you can simply probe the schematic. You simply point and click at a wire to plot the voltage on that wire. You can plot the current through any component with two connections(like a resistor, capacitor or an inductor) by clicking on the body of the component.
On the graph below the current through the LED is displayed at the right side.(ID1)
4. Important settings
How is the input pulsstream made .
Right-click on the V1 voltage sourcesymbol
.Vinitial[v] 0
.Von[v] 3.3 red graph value
.Tdelay[s] 1 to give a nicer picture
.Trise time[s] 500nS component specific variable rise time L to H puls
.Tfall time[s] 500ns component specific variable rise time H to L puls
.Ton[s] 1 puls width high level
.Tperiod[s] 6 the low level will be 6-1 = 5s
.N cycles 0 when free run
How is the switch setup .
Right-click on the MYSW SPICE directive (text above circuit) .
. Ron 1 resistance 1 ohm
. Roff 100Mohm resistance
. Vt threshold voltage
. Vh hysteresys voltage
How is the Time-frame setup (15s).
Left-click the Simulate tab > Edit Simulation Cmd
5. Tutorials
These links:
http://denethor.wlu.ca/ltspice/
http://kom.aau.dk/~hmi/Teaching/LTspice/restrict/LTspicedoc/LTspice_guide.pdf
(Created by JGJ Veken 2011 2 january)