21

I've built a simple RC and Schmitt-trigger-based square wave pulse generator. On the breadboard, it has some obvious unwanted qualities due to jumper length, the breadboard itself, etc.

Schematic and breadboard version:

Fast Edge Pulse Gen Schematic! Fast Edge Pulse Gen Breadboarded

And the waveform output:

Overshoot and Ringing Output

In particular, the rising edge of the square wave has a substantial amount of overshoot (about 200mV over 500mV peak) and ringing. It is easy to make it worse, by physically touching R1. See edits for correct info.

In looking for solutions I've ran into terms like snubbers and dampening for RF circuits and things beyond my hobbyist pay grade.

Anindo suggests in an answer to a related question that one should use a 50Ω resistor for a load. I am measuring the output from the first Schmitt trigger (IC1D, at pin 2). The remaining triggers are used with 220Ω resistors to create an approximately 50Ω impedance, but I get almost identical results measuring at the output node.

This fast-edge pulse generator is purely for my own experimenting/education, so there is nothing critical about it. If I decide to make a soldered board of it, what sort of things can I do to ensure it's better than its breadboard cousin?


Edit:

I mistakenly was in AC coupled mode for the previous screenshots and measurements. Here are some more screens showing the signal at pin 1 and 2 of the IC (input triangle wave on 1, output square on 2). They are now DC coupled. The probes were always in X10 but the scope itself was in X1 (brand new scope, oops!). The overshoot however is still significant: on the output which is 0-5V, the overshoot (shown by the dashed white cursor lines) is 2.36V. Note that the overshoot on the input is only about 500mV. Is the input ripple due to the proximity of pins 1 and 2 on the breadboard?

Input (ch. 2/blue) on pin 1, and output (ch. 1/yellow) on pin 2:

FEP Input on Pin 1 and Output on Pin 2, 100us Time Base

Overshoot measured w/ DC Coupling:

FEP Overshoots, DC Coupled, 50ns Time Base

Removing resistor R2 and measuring at pin 4 (IC1E output) did not yield any noticeable difference from the signal at pin 2.

I should mention that the original tutorial/video by W2AEW from where I got the information for this circuit also has some overshoot, but not to the degree I have. His circuit is soldered on a board which probably helps a lot.

Original author's (W2AEW) waveform (at node OUT) with maybe 500mV over 5V:

Original Author W2AEW Scope Pic

Original author's soldered version:

Original Author W2AEW Soldered Circuit


Edit 2:

Here's a picture of the overall setup including lead lengths to the PSU and scope:

Overview


Edit 3:

And finally, VCC (yellow) and the OUT node (blue) on the scope to show the coinciding ripple:

VCC and OUT, coinciding ripple

JYelton
  • 32,302
  • 33
  • 134
  • 249
  • 2
    Underdamping will cause a system to overshoot and oscillate like this. You are trying to critically dampen the output since your driver is so strong. http://en.wikipedia.org/wiki/Damping – travisbartley Aug 22 '13 at 06:40
  • 1
    For more background, I have [a previous question](http://electronics.stackexchange.com/q/79335/2028) about measuring this same circuit. – JYelton Aug 22 '13 at 06:44
  • @trav1s I agree critical dampening is what I want, and that it is currently under-damped. I'm just not sure what ways I can achieve that. – JYelton Aug 22 '13 at 06:46
  • Well, I guess the three main approaches are 1) reduce driving strength of your driver, 2) increase the RC load, 3) add feedback from the output to correct output. – travisbartley Aug 22 '13 at 06:51
  • I'm really interested in how this is going to work out in the end. I too made the same circuit and had similar results, but I used 74HC14, since I couldn't get an AC. A number of ICs I used developed internal shorts and EEVblog guys thought it was due to overshooting. In the end, I made the oscillator with only one gate and decided to call it good enough. – AndrejaKo Aug 22 '13 at 10:30
  • 1
    Your scope and probes can introduce all kinds of distortion. Your scope should have a square wave test output. When you touch that with your probe, what picture do you get? Your probe should have a compensation adjust, you can set that to show minimal artifacts on the (supposedly clean) test output. – Wouter van Ooijen Aug 22 '13 at 15:28
  • 1
    @JYelton Can you try experimenting with some really short ground leads, like the ones [here](http://electronics.stackexchange.com/q/40420/1240) connected to IC's ground pin? I'd like to know how it affects the reading. – AndrejaKo Aug 22 '13 at 17:11
  • @AndrejaKo I will try that. I changed the PSU leads out for very short ones (5 cm) with no appreciable difference. Adding additional decoupling capacitors, including a 100uF electrolytic, had various effects, but the overshoot was still basically the same. I need to try short capacitor leads and some other things that have been suggested here. – JYelton Aug 22 '13 at 17:16
  • @Wouter When I return to the lab I'll check the test square wave and probe compensation. I should have already done that but forgot. – JYelton Aug 22 '13 at 17:17
  • @AndrejaKo I added an answer with results. Your suggestion of using the tip ground spring had the most improvement. – JYelton Aug 25 '13 at 06:49
  • put a small resistor at output(approx 150e) that how i solve the issue may be due to unbalance impedence – user150261 Dec 28 '17 at 07:14

5 Answers5

16

From the looks of the new scope traces added to the question, specifically the Vcc trace, it appears that the ringing is originating in poor regulation of the supply at the point of use - most likely not at the bench supply output. While shorter leads from the bench power supply will certainly help by reducing lead inductance, that won't be enough when the transition is as sharp as you're looking for.

  • Add a hefty capacitor on the breadboard across the supply rails, closest to the IC: Start with 100 uF.
  • In parallel with the 0.1 uF decoupling capacitor shown in your schematic, and touching the Schmitt Trigger supply pins, add a 10 uF electrolytic capacitor.
  • Trim the leads of all 3 capacitors above to the bare minimum which will still make positive contact with the breadboard contacts. Those leads are adding inductance you don't want.
  • Add a load from the output you are reading to the ground pin, as close to the output pin as possible - 220 Ohms should be fine, and again you want leads trimmed to minimum.
  • If you absolutely must avoid overshoot / undershoot beyond a few hundred milliVolts, add small signal Schottky diodes from the output pin to both supply and ground pins, thus:

    schematic

simulate this circuit – Schematic created using CircuitLab

  • This will ensure that the peak on the rising edge and trough on the falling edge of the ringing are damped - there will be some effect on the respective trough / peak of the ringing as well because of the excess energy of the peaks being dissipated across the diodes.
  • Finally, the breadboard, due to the nature of its construction, introduces capacitance, inductance, and all kinds of parasitic coupling. Even a simple perf-board will do better. Long leads simple exacerbate this problem, especially at high frequencies / sharp transitions, where even a simple wire lead is a source of coupling and inductive ringing.
Anindo Ghosh
  • 50,188
  • 8
  • 103
  • 200
  • Please explain the use of R1? – AKR Aug 22 '13 at 17:27
  • Without a load, a signal is more susceptible to EMI and inductive ringing. R1 loads the line, providing a bypass for some inductive energy in the process. When the diodes are added, this becomes less important, as the diode leakage current itself will bypass some of the ringing energy. – Anindo Ghosh Aug 22 '13 at 17:30
  • With regards to the added resistor, would this be essentially a form of impedance matching? @AnindoGhosh – Alexander Villa Sep 23 '21 at 21:23
7

I'm writing this as an answer because I didn't think there would be enough room in comments. Having said that, it's likely that several of the points I'm making could be the cause of your problems: -

Are you using a x10 scope probe? What does the output from pin 2 look like - schmitt triggers will not all trigger at the same point on a badly shaped squarewave from pin 2 - I can see evidence of this in the scope trace - it begins to settle then shoots off again. Chip decoupling from the picture is a little flaky.

Are you actually using 7414s - I'd recommend the 74AC14 for best speed - also double check the output current these devices can supply - in particular, some devices may not produce a decent o/p from the oscillator section given 6k8 load and 5 other inputs.

If you disconnected one of the 220R resistors and hung the scope directly onto the output (say pin 4) what does it look like?

What Vcc are you using - you say the overshoot is 200mV on top of the peak of 500mV - this seems strange - are you sure all the inverters are switching. From a 5V supply I'd expect to see a 5V peak with any overshoot on top of this.

Food for thought.

Andy aka
  • 434,556
  • 28
  • 351
  • 777
  • 1
    X10 probe yes. Pin 2 is the waveform included in the question. Pin 1 is an input triangle wave which does have some ringing as well (I can include if you think it would be useful). This is a 74AC14 (advanced CMOS version). VCC is 5V. And last but not least, I need to redo the measurements with DC coupling not AC coupling, so the 200mV and 500mV figures are based on AC coupling. Also I'll disconnect a 220R and update the question with new info. – JYelton Aug 22 '13 at 08:49
  • @JYelton - maybe the 500mV peak is actually 5V? – Andy aka Aug 22 '13 at 09:00
  • If pin 1 has some ringing then it's beginning to look like ground or Vcc wobble due to the breadboard layout - how long are your power leads and is your scope earth close to pin 7? Can you see Vcc wobble using the scope? – Andy aka Aug 22 '13 at 09:15
  • Power from the bench supply to the breadboard is over approximately 80 cm wires. I measured VCC at the point it connects to the breadboard and to my surprise there is a (2V) ripple that coincides with the output transitions. This is a well-regulated switching power supply. My scope GND leads are on the GND rail where the PSU connects also, a few cm from pin 7. – JYelton Aug 22 '13 at 09:27
  • 1
    @JYelton Lead inductance sounds the culprit dude. – Andy aka Aug 22 '13 at 09:41
  • I posted a pic showing VCC and the OUT node, that the ripples coincide. – JYelton Aug 22 '13 at 09:49
  • Sounds like you need more decoupling capacitors and/or shorter leads. – pjc50 Aug 22 '13 at 09:54
  • 1
    @JYelton Power lead length (inductance really), breadboard limitations, decoupling limitations and generally "nothing is easily regarded as a true 0V reference" are your problems but, don't discount variations in schmitt trigger thresholds still playing their part when these issues are sorted. – Andy aka Aug 22 '13 at 10:42
7

Per other answers and comments, I focused on bringing the overshoot down with some of the suggestions provided.

I did the following:

  • shortened the leads going to and from the breadboard,
  • adjusted compensation on the probes (one was slightly under compensated)

This reduced measured overshoot from ~2.4V to 1.8V (over 5V).

@AndrejaKo's suggestion had the greatest effect, however. I put the tip ground spring on the probe and measured again, this time only seeing 680mV overshoot.

Until this circuit is soldered to a PCB, I certainly don't expect much better. But this is a significant improvement from the original.

Measuring square wave output at pin 2: FEP 680mV Overshoot

Short ground path with tip spring: FEP tip ground spring

The photo makes it look as though the resistor is touching the ground spring, but it isn't.

I'm not convinced that the overshoot has ever really been as high as measured (or even is really at 680mV), but that improper measuring methods have been to blame. If nothing else though, this has shown definitively that trying to measure high speed events really does require attention to things like lead length (impedance), stray capacitance, and careful analysis.

Note: I removed the resistors to the other five Schmitt triggers for the photo; the results were basically the same with/without them.

JYelton
  • 32,302
  • 33
  • 134
  • 249
2

You have a power supply problem. Edit 3, showing VCC (yellow) and the OUT node (blue) is the smoking gun. Add capacitance between VCC and supply rail, as close as you can to the IC pins. Capacitor leads are currently much too long. I would use about 100 microfarad electrolytic, bypassed with a .01 microfarad film cap and a small ceramic, say 600 pF. Line these up as close as you can to the pins, and land the smallest one right on the pins if you can. BTW, many audio amps display this same problem. You can test them by connecting a speaker between VCC and ground, in series with a small value cap to block DC. You will hear music on the supply rails. Your objective is to reduce or eliminate this music.

1

In the original tutorial/video by W2AEW from where this circuit came Alan does mention that the circuit achieves fairly close to 50 ohm "Output**" impedance.

Your earlier post actually answered your own question but I suspect you didn't realize that you already had the answer.

From your earlier post: "Anindo suggests in an answer to a related question that one should use a 50Ω resistor for a load. I am measuring the output from the first Schmitt trigger (IC1D, at pin 2). The remaining triggers are used with 220Ω resistors to create an approximately 50Ω impedance, but I get almost identical results measuring at the output node"

Your 220 ohm resistors are forming the Output impedance for the launched energy, they are not the load impedance. You then needed to feed that final output signal into a corresponding characteristic impedance to fully deplete/consume the launched energy and prevent reflections. Solution: Just add the 50 ohm load either as a load resistor or, if your scope supports it, just use the Scope's 50 ohm input impedance selection. There will also be parasitic capacitance/inductance effects but the impedance mismatching will be the dominant element at present.

Brendan
  • 11
  • 1