Sunday, 8 April 2018

How do you simulate voltage noise with LTSpice?


Is there a way to setup a voltage supply with voltage jitter/noise? I want to experiment with filtering out noise on various voltages etc. but not sure how to configure LTSpice to create a noisy voltage supply.



Answer



Yes, you can inject noise using the arbitrary voltage (or current) source, then use things like the random or white function to create some noise.


Here is an example circuit (I separated the noise from the signal just to make things clearer - obviously you can combine them together in one function if you wish):


Noise Circuit



Simulation:


Noise Circuit Simulation


All the functions are detailed in the help under circuit elements -> arbitrary behavioral voltage or current sources.


Noise simulation mode


Also, just in case you were not aware, SPICE has a noise simulation mode, to quote from the help files:


.NOISE -- Perform a Noise Analysis
This is a frequency domain analysis that computes the noise due to
Johnson, shot and flicker noise. The output data is noise spectral
density per unit square root bandwidth.


Syntax: .noise V([,])

Basic example:


Noise mode


Simulation:


Noise mode sim


The above is rather boring as it only models the resistor noise (I stepped the resistor through various values to show how the Johnson noise increases with resistance). But it can be very useful with more complex circuits containing diodes/transistors/opamps/etc.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...