Author Topic: 555 LT Spice issues (trying to produce ~7kHz ~sine wave)  (Read 2018 times)

0 Members and 1 Guest are viewing this topic.

Offline jpyeronTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: us
    • PD Inc
555 LT Spice issues (trying to produce ~7kHz ~sine wave)
« on: November 28, 2019, 04:42:27 pm »
I was simulating a circuit 880476-0 (spice model: * 7khz-carrier-wave.asc) and I was surprised that my calculated RC values were significantly off. I expected to use a R2 resistance of 10307 ohms, but had to use 9857.6 ohms.

After a bunch of googling I ran across alternate (1.38) [1] calculations for a 555 when calculating the period which is what LT spice seems to be using. The datasheet is using 1.44 [2].

I tried to edit the builtin model and got a restriction error - .

I tried to import a TI spice model [3] and got this error - .

Thoughts?

1: http://www.embeddedcomponents.com/blogs/2008/03/simulating-the-555-ic-with-ltspice/
2: http://www.ti.com/lit/ds/symlink/ne555.pdf
3: http://www.ti.com/product/TLC555/toolssoftware


« Last Edit: November 28, 2019, 04:44:05 pm by jpyeron »
 

Offline jpyeronTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: us
    • PD Inc
Re: 555 LT Spice issues (trying to produce ~7kHz ~sine wave)
« Reply #1 on: November 28, 2019, 04:50:41 pm »
The final circuit will be tuned at assembly. At the same time, still frustrated by my building blocks 5% out from the datasheet.
 

Offline jpyeronTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: us
    • PD Inc
Re: 555 LT Spice issues (trying to produce ~7kHz ~sine wave)
« Reply #2 on: November 28, 2019, 04:57:28 pm »
How do I fix this in LT Spice?
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 5570
  • Country: va
Re: 555 LT Spice issues (trying to produce ~7kHz ~sine wave)
« Reply #3 on: November 28, 2019, 05:39:09 pm »
The DS is using 0.69 for a different circuit, imho.

Readers discretion is advised..
 

Offline jpyeronTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: us
    • PD Inc
Re: 555 LT Spice issues (trying to produce ~7kHz ~sine wave)
« Reply #4 on: November 28, 2019, 05:58:11 pm »
I ran the simulation with the DS circuit first. I had the same 1.44 vs 1.38 issue there. The LT Spice ideal 555 is using the 1.38 in its model - which is not adjustable.

I downloaded the TI spice model, but the param error is way out of my spice knowledge. I have not used spice sine the late 90s.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20363
  • Country: gb
  • 0999
Re: 555 LT Spice issues (trying to produce ~7kHz ~sine wave)
« Reply #5 on: November 28, 2019, 06:39:28 pm »
You shouldn't worry about the difference between 1.38 and 1.44, as the capacitor values will have a similar tolerance.

The 555 isn't a wise choice if you want that level of precision. Use a crystal oscillator to clock a digital sine wave generator.
https://www.analog.com/media/en/technical-documentation/data-sheets/AD5932.pdf
https://www.analog.com/media/en/technical-documentation/data-sheets/AD9833.pdf
 

Offline jpyeronTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: us
    • PD Inc
Re: 555 LT Spice issues (trying to produce ~7kHz ~sine wave)
« Reply #6 on: November 28, 2019, 07:22:32 pm »
In all the circuit will be active for about 1500ms, not really seeing this as precision, maybe I am going about this wrong.

I am looking for a cheap (in BOM $$$) way to create a carrier wave for a NFC like communications device. It is inductive coupled - think air core transformer. The shape of the "sine" wave is not super critical, just trying (assuming it is important) to remove some of the harmonics from a square wave source.

Again, at production the circuit will be tuned. I am simulating in spice to catch current and other issues going forward.

I would ideally like to get the TI lib working. So far I have been finding random 555 libs, but none of them match the TI datasheet.
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 5570
  • Country: va
Re: 555 LT Spice issues (trying to produce ~7kHz ~sine wave)
« Reply #7 on: November 28, 2019, 07:38:54 pm »
Working TI's TLC555 Pspice model..

880692-0
« Last Edit: November 28, 2019, 09:46:37 pm by imo »
Readers discretion is advised..
 

Offline jpyeronTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: us
    • PD Inc
Re: 555 LT Spice issues (trying to produce ~7kHz ~sine wave)
« Reply #8 on: November 28, 2019, 08:20:48 pm »
Thanks!

But, I seem to be missing ZZZ\\Robertugo\\tlc555
 

Offline jpyeronTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: us
    • PD Inc
Re: 555 LT Spice issues (trying to produce ~7kHz ~sine wave)
« Reply #9 on: November 28, 2019, 08:56:58 pm »
That gets us closer, now timers.lib is missing...
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 5570
  • Country: va
Re: 555 LT Spice issues (trying to produce ~7kHz ~sine wave)
« Reply #10 on: November 28, 2019, 09:33:10 pm »
Updated the zip file above. Put all the stuff into the working folder.
Readers discretion is advised..
 

Offline jpyeronTopic starter

  • Regular Contributor
  • *
  • Posts: 116
  • Country: us
    • PD Inc
Re: 555 LT Spice issues (trying to produce ~7kHz ~sine wave)
« Reply #11 on: November 28, 2019, 10:42:07 pm »
thanks, i know see the changes you made to the lib.
removed LAMBDA=2E-3 from:
.MODEL TLC55X_NMOSD_HV NMOS LEVEL=3 L=10U W=100U KP={KPN} VTO={VTOHN} LAMBDA=2E-3 THETA=1.8E-01
+ CJ={CJN} CJSW={CJSWN} CGSO={CGSON} CGDO={CGDON} RSH= 10 PB=0.65 LD= 70N TOX={TOX}

removed LAMBDA=2E-3 from:
.MODEL TLC55X_PMOSD_HV PMOS LEVEL=3 L=10U W=100U KP={KPP} VTO={-VTOHP} LAMBDA=2E-3 THETA=2.2E-01
+ CJ={CJP} CJSW={CJSWP} CGSO={CGSOP} CGDO={CGDOP} RSH=10 PB=0.65 LD=70N TOX={TOX}

added:
.PARAM VT=BOLTZ*(TEMP+273.15)/ECHARGE
on
.MODEL DZ_18V D( IS={ISz} N={Nz} BV=18.0 IBV=5.0M EG={8*Nz*VT})

 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 5570
  • Country: va
Re: 555 LT Spice issues (trying to produce ~7kHz ~sine wave)
« Reply #12 on: November 28, 2019, 10:51:11 pm »
I have not made the changes. See the author of the changes in one of the .asc files.
Readers discretion is advised..
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20363
  • Country: gb
  • 0999
Re: 555 LT Spice issues (trying to produce ~7kHz ~sine wave)
« Reply #13 on: November 29, 2019, 11:22:47 pm »
It's possible to import the model into the .asc file to avoid multiple files.

The sine wave doesn't look great and it will require a buffer to reduce the output impedance.
 

Offline MagicSmoker

  • Super Contributor
  • ***
  • Posts: 1408
  • Country: us
Re: 555 LT Spice issues (trying to produce ~7kHz ~sine wave)
« Reply #14 on: November 30, 2019, 12:06:17 pm »
Filtering a square wave oscillator to get a sine wave is a bit kludgy, and if you are going to have to buffer the output then you might as well make an op-amp or transistor based oscillator. For example, the Colpitts configuration is a good choice that is easy to design, outputs a nice sine wave, and is fairly stable over time and temperature if NP0 ceramic capacitors are used. A good explanation can be found here:

https://www.electronics-tutorials.ws/oscillator/colpitts.html

Usually the gain element is a single NPN transistor, but an op-amp can be easier to get working; just make sure gain is at least 3 (but don't go too high or you'll get clipping). If you need a precise peak-to-peak voltage level then it is safest to feed the output of the oscillator into a voltage divider then buffer that with an op-amp follower, if necessary.

If you want to avoid using an inductor (which seems to be a common fear among beginners), then there are many other op-amp based oscillators that rely only on RC networks, though most are (somewhat ironically) more difficult to get working and/or have a less pure output (exception: Wein bridge). In any event, there are so many ways to make a decent 10kHz sine wave oscillator there's really no reason to chose filtering a square wave output from a 555 timer. See, for example, this image collection from a duckduckgo search of "op-amp RC oscillator circuits":

https://duckduckgo.com/?q=op-amp+rc+oscillator+circuits&t=ffhp&iar=images&iax=images&ia=images

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf