I tried using my old 2n3904 model on your most recent sawtooth simulation (post timestamp 3:26AM) for "cyberheater" and the traces are not what I've expected. The transistor cannot fully turns ON to discharge the 22n capacitor so the integration ramp sometimes start from 6V instead of 3.2V
I tried using my old 2n3904 model on your most recent sawtooth simulation (post timestamp 3:26AM) for "cyberheater" and the traces are not what I've expected. The transistor cannot fully turns ON to discharge the 22n capacitor so the integration ramp sometimes start from 6V instead of 3.2V
I just tried that sim. By changing the base resistor to 1k, and the base coupling cap to 2.2nF, it seems to work. It's interesting that the beta (Bf) on the Fairchild part (Bf=416.4) is higher than that of the Phillips part (Bf=300), yet on the simulated curve tracer (see attached), it is about half that of the Phillips transistor. It must have something to do with the other parameters.
There is a PNP in the .ASC file that I removed from the posted schematic, just to avoid the distraction.
When I first looked at the traces, I immediately switched to use another transistor (2N2222) and the traces look neat. Therefore I know my 2N3904 model is somehow broken. I did go back to 2N3904 and increase the coupling cap to 3n3 and it also simulates better.
I asked for the model because I have remembered reading somewhere that the 2N3904 model has problem and somehow different models give better simulation performance under different applications.
When I first looked at the traces, I immediately switched to use another transistor (2N2222) and the traces look neat. Therefore I know my 2N3904 model is somehow broken. I did go back to 2N3904 and increase the coupling cap to 3n3 and it also simulates better.
I asked for the model because I have remembered reading somewhere that the 2N3904 model has problem and somehow different models give better simulation performance under different applications.
It might be interesting to breadboard the circuit with both brands of transistors and see if either or both models are "broken". Furthermore, the model is typical, so a rigorous design with worst case beta would be imperative if this circuit was intended to be produced in volume. The transistor is really just a saturating switch, and the design should take this into account.
Hi. I breadboarded the design but didn't have any 2n3904 transistors so substituted a BC108. I kinda got a strange looking ramp waveform but I'm sure it wasn't right.
I'm going to get hold of some 2n3904 after work tomorrow and try again.
I glanced through this thread and it looks like your more interested in the wave shape. If frequency locking becomes a concern you might want to look over this thread for some ideas using microcontroller and VCO: Aaron's Homepage Forum - Building a PLL Synthesizer
And I got a nice looking ramp waveform
I'm outputting a 5v square wave from the arduino 1000hz and I'm using a potentiometer as a voltage divider to create my control voltage.
But I'm a bit confused why the output isn't higher. I'm using a power supply of +/- 12v and I was expecting an output swing close to that. I seem to be getting around 0.5v. Does that seem right. Apologies. I'm very new to this...
We need to see the schematic of what you built, including part numbers. Your ramp should have a positive slope. It looks like you are providing a control voltage greater than 3.2V. The control voltage goes from zero to 3.1V, as shown in the schematic. I probably need to provide you with a detailed schematic, instead of a simulation.
I thought you wanted to use a single supply. With dual supplies, it's a little simpler, conceptually, anyway.
We need to see the schematic of what you built, including part numbers. Your ramp should have a positive slope. It looks like you are providing a control voltage greater than 3.2V. The control voltage goes from zero to 3.1V, as shown in the schematic. I probably need to provide you with a detailed schematic, instead of a simulation.
I thought you wanted to use a single supply. With dual supplies, it's a little simpler, conceptually, anyway.
I'm using this design (yours I think) with the same part numbers.
**broken link removed**
And yes. I'm using dual supplies. I figured it would be better in the long run.
One other thing. I'm taking the ground from the '+' leg of the opamp straight to ground and in your drawing you have a voltage source. Could that account for it?
I'm using this design (yours I think) with the same part numbers.
**broken link removed**
And yes. I'm using dual supplies. I figured it would be better in the long run.
One other thing. I'm taking the ground from the '+' leg of the opamp straight to ground and in your drawing you have a voltage source. Could that account for it?
With ground on Vin+, you will have to have a negative control voltage, which sends you back to your original circuit.
The 3.2V in my single-supply circuit does not have to be a battery or a power supply. If you decide to pursue the single-supply version, let me know and I can draw up something that should work.
With ground on Vin+, you will have to have a negative control voltage, which sends you back to your original circuit.
The 3.2V in my single-supply circuit does not have to be a battery or a power supply. If you decide to pursue the single-supply version, let me know and I can draw up something that should work.
No. I am confused about what you have. You need to post a schematic.
I am saying that, with a single supply, the +input has to connect to 3.2V, and the control voltage goes from 0V to 3.1V.
With the dual supplies, you can connect the +input to GND, but you will need the inverting unity-gain amp between your control voltage and the integrating op amp, which you have in your original circuit. I think it will work OK. All the stuff I designed was so you could use a single supply, you turkey!
You might want to try this. It still uses a dual op amp, but you get a buffered output, with the sawtooth centered around zero volts. It works well in simulation.
I resurect this post, because I want to give a try to an arduino DCO... The problem is, I'm really not knowledgeable with electronics, so I apologize in advance for dumb thoughts.
I tried to replicate Ron's design in the previous post, but by replacing some parts with the parts I own: the op-amp is an LM324, and the transistor a BC547. I could not get the same power supply icon with last LTSpice, I hope the replacement are ok.
I tried to simulate the circuit, but I do not get a ramp for 'out'.
- I want the final schematics to use a single supply, no +12v or -12v, only the arduino power supply. I tried Ron's design first to replicate a working design, and to familiarize myself with ltspice... no chance though...
Is there someone kind enough to inspect the file, and spot any errors ?