half-sine

Apr 26, 2016 16 Replies

I need to Spice a pretty good Gaussian pulse. So I'm thinking square pulse and a biggish, like 6 pole, Bessel lowpass filter. But wait, will Spice make somethig better as the starting point? Duh, it will generate a half-sine.



formatting link



That should be a lot easier to filter than a pulse.



Any other ideas for making a nice Gaussian pulse?



I'm simulating the reflection off a particle zipping through a laser beam, to test the sort-of-constant-fraction discriminator.



John Larkin Highland Technology, Inc picosecond timing precision measurement jlarkin att highlandtechnology dott com http://www.highlandtechnology.com

Well, the FT of a Gaussian is another Gaussian, so you don't need too many sinusoids to do a good job. Depends on the rep rate you want, of course, but you can always cut one pulse out with switches.

Another approach would be to use the LTspice switch with negative hysteresis, which makes a nice smooth differentiable curve. Apply a constant voltage across the switch, stick a triangular pulse into the control input, and subtract off a little of the triangle to cancel the cusp in the output. It won't be perfect, of course, but then neither will the laser beam (especially if it's from a diode).

Cheers

Phil Hobbs

Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC Optics, Electro-optics, Photonics, Analog Electronics 160 North State Road #203 Briarcliff Manor NY 10510 hobbs at electrooptical dot net http://electrooptical.net

Half_Sine.jpg

Uh -- use the equation for a Gaussian in a behavioral source? Or do you need to launch the pulses at arbitrary times?

Version 4 SHEET 1 880 680 WIRE 160 160 160 96 WIRE 160 272 160 240 FLAG 160 272 0 FLAG 160 96 Vpulse SYMBOL bv 160 144 R0 SYMATTR InstName B1 SYMATTR Value V=exp(-((200 * (time - 0.02))**2)) TEXT 126 296 Left 2 !.tran 0 50m 0 10u

Tim Wescott Wescott Design Services http://www.wescottdesign.com

Sine squared, or better, cosine squared might be a better starting point.

-TV

You mean a pulse that looks like a Gaussian distribution... the bell curve. Or something with Gaussian filter.

Hmm I guess the two are the same...

formatting link

Well if the pulse response of a Gaussian filter is the Gaussian distribution, Then hit your filter with a (narrow) pulse and not a 1/2 sine.

George H.

Well, that's approximately perfect. Thanks. I don't use Spice enough to use all the tricks.

John Larkin Highland Technology, Inc picosecond timing precision measurement jlarkin att highlandtechnology dott com http://www.highlandtechnology.com

Better yet: instead of a half sine, use a full sine.

Offset the sine by +1, start it from -90 degrees and run it to 270 degrees phase, that will likely need less filtering.

Dimitrij

See...

and "RealPulse.pdf" on the Simulation Tools & Macros Page of my website. ...Jim Thompson

| James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | San Tan Valley, AZ 85142 Skype: Contacts Only | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at http://www.analog-innovations.com | 1962 | The touchstone of liberalism is intolerance

You could use Python or Matlab to generate the Gaussian and write it to a .wav file and use that as input...

----Android NewsGroup Reader---- http://usenet.sinaapp.com/

Tim's B source that depends on the TIME variable is perfect for the simple Gaussian. The .wav thing would be good for something more complex.

John Larkin Highland Technology, Inc lunatic fringe electronics

Is LTSpice sophisticated enough to convolve two sources with each other? Repeatedly convolve a square pulse with itself enough times and you get a Gaussian...for a square it actually converges really quickly.

Oops nevermind, looks like you can plug the equation right in! Cool.

Someone should use that to run audio through an LTSpice simulation of a tube preamp, and also a solid state preamp. See if audiophiles can tell the difference.

Once computing power gets fast enough someone is going to make a lot of money selling "component level real-time digital tube preamp simulations" I think.

Audiophools will still "hear" the difference.

Dip it in liquid oxygen and charge $12k for it and it will be the best thing they've ever heard.

Make sure that it doesn't have any graphite foam components. Charcoal soaked in liquid oxygen used to be an industrial explosive.

Liquid nitrogen is much more widely available because it is safer.

Bill Sloman, Sydney

I've already done that. I had built a small vacuum tube guitar amp and didn't like the tone, so I recorded my guitar into a wav file, threw the schematic into LTSpice, and started changing component values and topologies until I got something that behaved a little better. Then I pulled out the soldering iron.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required