Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
OPA square wave generator, single supply OPA is not working
Please don't post such long netlists. Few of us will try to help using a netlist. Upload your .ASC file AND all the other files required to run the simulation, but not .RAW? and .LOG files or pictures,? in a ZIP archive to Files => Temp. On 2025-05-04 09:02, wai wai via groups.io wrote:
--
Best wishes John Woodgate RAYLEIGH Essex OOO-Own Opinions Only If something is true: * as far as we know - it's science *for certain - it's mathematics *unquestionably - it's religion |
wai wai,
?
I have edited your message to remove the nonsense schematic that you attached to your message.? DON'T EVER DO THAT!
?
Go back and read (actually read!) the instructions about using this group.? Notice where it says:
Now, if you want help, upload your schematic file to the group's Temp folder.? Then tell us that you uploaded a file there.
?
You almost did the right thing earlier today, by uploading a schematic (humidity_sensor.asc), but then you deleted it!? Why?
?
I also deleted your schematic text because it has an unrecognizable character which even LTspice can't use.? That might have been caused by attaching your schematic code to a message.? Instead, UPLOAD the file, which preserves the characters.
?
Andy
?
?
? |
wai wai,
?
The schematic you attached to your message today has several mistakes.? I am just letting you know.? It was a very sloppy schematic and you should not have used it as an example.
?
Apparently the question was about the LT1006.? But your schematic also has three other op-amps, which are apparently unrelated to the question, and you forgot to connect any power to those op-amps.? Without power, they can not operate.? Leaving inoperable circuits on the same schematic can cause problems with the simulation.? It might even have caused the oscillator to not oscillate (although that was not the reason in this case).
?
You used multiple net names on the same nets.? That is unwise and should be avoided.? Nets (wires) can have only one net name.
?
The comment on your schematic asked:
The answer to that question is because your circuit is wrong.? It does not oscillate because the voltage on the "voltage" "vcharge" net (across the capacitor) never drops below the voltage at the R7/R6 junction, when the op-amp drives Low.? That voltage must become lower in order for the op-amp's output to go High, which it can never do.? The circuit has a stable operating point when the amp's output is Low.
?
You must re-arrange the bias conditions of your circuit to make it oscillate with a single supply.? The LT1006 op-amp is operating correctly.
?
Andy
?
? |
On Sun, May 4, 2025 at 04:11 AM, wai wai wrote:
Suggestion: ?
Connect the bottom end of R7, to a voltage which is between VEE and VCC.? That allows the voltage across the capacitor to ramp above and below that voltage.
?
By connecting the bottom end of R7 to VEE itself (to a grounded negative supply), the voltage across the capacitor is unable to swing to both sides of it, which is necessary for it to oscillate.
?
Andy
? |
I uploaded "LT1006 oscillator.zip" to the Temp folder.? It has three schematics:
?
?
Why was the original file corrupt?? (Sorry, long story ahead.)? LTspice uses the Greek letter "mu" (?) to mean micro.? By default, if you have a capacitor, inductor, or resistor with a value in micro-anything - even if you physically type a "u" - LTspice converts it to a mu (?).? (You can disable that if you like, in the Settings / Control Panel.)? That letter is represented by the single byte hex B5 (0xB5).? Some may think of it as if it was part of the ASCII character set, but it is not.? PCs with MS-Windows knew 0xB5 meant "?".
?
All is well if those schematics stay within LTspice, and move to and from your computer's drive and most other drives.? But if you take the actual text code (of an LTspice .ASC schematic file) and open it or copy-and-paste it into a text editor, bad things might happen to it.? Some editors preserve it.? Others do not; they notice it is a non-ASCII character and attempt to convert it into something else, which might be either one or two bytes.? We saw that a lot before 2020 when this group was hosted on Yahoo!Groups, because Yahoo's editor would corrupt those bytes if anyone ever edited an LTspice schematic file that had been previously uploaded.
?
In this particular case, when wai wai copied-and-pasted the contents of their original schematic file into their message for the group, those characters found themselves converted from ? to Ϥ and they were now corrupt and not recognized by LTspice.? (That is one of the reasons why you should never ever paste a schematic file into your messages in this group!)? I think LTspice interpreted the "1Ϥ" capacitor as a 1 (Farad) capacitor.? And similarly for the others.? Like all good SPICE programs, unrecognized multipliers are ignored.
?
In the second file inside the .ZIP, I fixed those corrupt values.? I assumed that all six bad values were supposed to be microfarads.
?
Most of the circuitry on that schematic was entirely unrelated to wai wai's question about the oscillator.? So I deleted it.? The third schematic has just the oscillator, with one small change so that it oscillates with either dual or single supplies.
?
Andy
?
? |
to navigate to use esc to dismiss