Circuit simulation in LTspiceIV

by JGJ Veken

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_small

                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.

Eaglefile
Eaglefile

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.

LTspiceIV
LTspiceIV

3. Startup the simulation.

Left-click Simulate > Run and you will get the graph below.

LTspice Graph
LTspice Graph

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)

LTspice Graph
LTspice Graph

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)

LED_discharge_circuit_Eagle.jpg (39.8 KB) jcw, 2012-06-21 01:40

sim_mains_remote.wmf (89.8 KB) jcw, 2012-06-21 01:40

circ_mains_remote.wmf (5.4 KB) jcw, 2012-06-21 01:40

100-400_mains_remote.wmf (70.3 KB) jcw, 2012-06-21 01:40

jeenode.jpg (12 KB) jcw, 2012-06-21 01:40

LTspiceIV_small.jpg (16.7 KB) jcw, 2012-06-21 01:40

LTspice_circ.jpg (43.9 KB) jcw, 2012-06-21 01:40

mains_remote.asc Magnifier (1.86 KB) jcw, 2012-06-21 01:40

LTspice_graph.jpg (43.3 KB) jcw, 2012-06-21 01:40

LED_discharge_circuit.asc Magnifier (1.97 KB) jcw, 2012-06-21 01:40

LTspice_graph_cur.jpg (52.9 KB) jcw, 2012-06-21 01:40