Easy and quick circuit simulation with 5Spice.

1. Introduction.

5Spice is a Windows-based Spice simulation, it includes schematic entry and WinSpice.
WinSpice is a port of Spice3F4 to Win32 systems. With 5Spice it is easy to quickly setup a simulated jeeNode I/O port. As an example the LED discharge circuit is used. see this link http://jeelabs.org/2010/12/28/led-discharge-circuit/

jeenode 5Spice_small

                     Jeenode                                     5Spice (Demo1.sch)

2. Installing 5Spice .

System requirements.

Windows 7, Vista, XP, or Windows 2000
Windows on Apple’s Mac computers (Intel uP)

Download and installing 5Spice.

Download 5Spice with this link http://www.5spice.com/download.htm
The 5Spiceanalysis162.exe program is approximately 3.8Meg and includes Winspice it is self-installing.

Versions.

5Spice = v1.62 December 11 2010
WinSpice = V5.0.2 August 21 2009

3. Setup the simulation.

Eaglefile

This is the circuit wich will be simulated. JP1 is connected to a Jeenode I/O pin.

First you have to construct the actual circuitdiagram with wires components, voltage sources etc
of course this is already done and can be loaded.
http://projects.jeelabs.net/attachments/783/LED_discharge_circuit.Sch

Startup 5Spice 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.

5Spice circuit

The analysis file can be loaded
http://projects.jeelabs.net/attachments/784/LED_discharge_circuit.Anl
Left-click File > Open Analysis File to load this file from your download location.

3. Startup the simulation.

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

5Spice Graph

Left-click the circuit_tab (most left) and right-click on the R1 100 symbol and change this value in 1000.

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

5Spice Graph.

This is a very quick way to test a circuit before you build it on a breadboard,the canvas is almost your breadboard and the graph your oscilloscope picture.

4. Important settings

How is the input pulsstream made .

Right-click on the Vs1 symbol > edit parameters > TRAN/FFT Analysis

    . initial level  -0.01  must be negative ,when the control input is more positive 
                            than the threshold, the switch is ON.
    . pulsed  level  3.3    red graph value 
    . initial delay  1s     to give a nicer picture
    . rise time >0   500nS  component specific variable rise time L to H puls
    . fall time >0   500ns  component specific variable fall time H to L puls
    . pulse width    1s     high level 
    . period         6s     the low level will be 6-1 = 5s

How is the switch setup .

Right-click on the Vsw1 symbol > edit parameters

    . Ron         1   resistance 1 ohm
    . Roff        1E9 resistance 1000Mohm 
    . Init Cond   Off

How is the Time-frame setup (15s).

     Left-click the Analyze_tab > Select/Edit > Change the Time-frame.

5. Good Tutorials

These links:

http://www.5spice.com/LabManual_Chpt12.pdf
http://www.5spice.com/links.htm#Tutorials1

6. Other Spice programs

LTspice this link: http://www.linear.com/designtools/software/ltspice.jsp

  - runs under Windows and GNU/Linux using wine
  - also free, no limitations
  - huge user community

(Created by JGJ Veken 2010 30 December)

5Spice_small.jpg (48.4 KB) joop, 2010-12-30 10:10

jeenode.jpg (67.9 KB) joop, 2010-12-30 10:10

LED_discharge_circuit_Eagle.jpg (39.8 KB) joop, 2010-12-30 19:12

LED_discharge_circuit.jpg (37.6 KB) joop, 2010-12-30 19:12

LED_discharge_circuit_graph_1.JPG (46.2 KB) joop, 2010-12-30 19:12

LED_discharge_circuit_graph_2.JPG (44.6 KB) joop, 2010-12-30 19:12

LED_discharge_circuit.Sch (12 KB) joop, 2010-12-30 19:34

LED_discharge_circuit.Anl (4 KB) joop, 2010-12-30 19:34

LED_discharge_circuit.jpg (38.2 KB) joop, 2011-01-01 18:44