eCircuit  Center 
EE Design Series - DVM 1

About SPICE | SPICE Basics | Running SPICE | CIRCUIT COLLECTION
SPICE Commands | SPICE Downloads | About | Contact | Home

Advanced SPICE Simulation

sch

INTRO

Simulations typically start out with a sanity check of the basic topology (see Part 1.) Then more advanced models can be created by adding more details. A couple of things to keep in mind

This simulation focuses more on learning then verifying specs. We'll perform basic measurements of 1.5V and 9V batteries, get familiar with the ADC's operation and the digital outputs that drive the input LED of analog switches. This preview prepares us for the actual lab testing of our DVM.

For an intro to the DVM simulations, goto Basic SPICE Simulation

Back to Design Series

 

SPICE CIRCUIT

sch
sch

LTSPICE Schematic: DVM1_advanced1.asc
PSPICE Netlist: DVM1_advanced1_netlist.cir
Right Click on filename, select "Save link as...",

 

ADC FUNCTION

Let's include the Analog Input Multiplexer, Sample/Hold and ADC for this simple ADC model of the Arduino Analog inputs.

sch

HOW IT WORKS

 

OPTO ISOLATED RELAYS

Also called a Photo MOS Switch, these devices Turn ON when sufficient current is driven through an input LED.

sch

HOW IT WORKS

 

 

BATTERY MEASUREMENTS

Let's perform some basic measurements of the 1.5V and 9V batteries. We'll view the overall landscape regarding setup, voltage levels and ADC output.

 

SPECIFICATION:  Battery Measurement, 1.5V.

SET INPUT AND CONDITIONS

SELECT OUTPUT AND MEASUREMENT

RUN SPICE

MEASURE AND CHECK (adc_word)

 

SPECIFICATION:  Battery Measurement, 9.0V.

SET INPUT AND CONDITIONS

SELECT OUTPUT AND MEASUREMENT

RUN SPICE

MEASURE AND CHECK (adc_word)

 

LED CURRENTS

The Photo-voltaic MOS relays require >3mA through the input LED to turn ON.

 

SPECIFICATION:  PhotoMOS Relay, LED Current >3mA.

SET INPUT AND CONDITIONS

SELECT OUTPUT AND MEASUREMENT

RUN SPICE

MEASURE AND CHECK

 

HANDS-ON TEST TRACKER

Play in the Excel file - modify values, see what happens!

Test Result Checker

DATA FOR SIMULATION

PhotoMOS Relay: TLP592A Datasheet
Arduino ADC (from Open Music Labs): ATmega328p ADC

NEXT UP

With two essentiial simulations completed, our confidence in our design has gone up a level!

Next, we apply the powerful (and challenging) analysis tool to verify the circuit's accuracy - the Error Budget Analysis.

 

Back to Design Series