Maker Pro
Maker Pro

Clean square waves using a 555 timer?

I'm experimenting with simple circuits to generate square waves, for use as inputs and clock sources for use in more complex circuits.

I tried the "50% Duty Cycle Astable Oscillator" based on a 555 timer from this site:
http://www.electronics-tutorials.ws/waveforms/555_oscillator.html

Here's the schematic, from the above web page:

tim58a.gif


I built it and it works, but I'm getting a large amount of overshoot on the rising edge of the square wave and would like to clean it up.

Here's a scope trace, showing the problem. The yellow trace is the output (pin 3) and the blue trace is the threshold (pin 6), representing the charge stored in C1.

upload_2016-3-13_21-52-53.png

Here's a closer look at the rising edge: The vertical white line is the point in time when the capacitor (C1) stops discharging and begins charging again.

upload_2016-3-13_21-53-29.png

I'm using a Vcc voltage of 9V (from six AA alkaline batteries) and the peak on this overshoot is 12V.

Because it exceeds the voltage of the batteries, my first thought was that it might be parasitic inductance or voltage fluctuations from the batteries. (I haven't tried a well-regulated power supply.)

So, I put a large electrolytic capacitor across GND to Vcc to even out the voltage.

That reduced the magnitude of the overshoot, but prolonged the duration:

upload_2016-3-13_21-47-59.png

Do you know what might be causing the 350-400ns 1V overshoot on the waveform above?

Given the stable and non-oscillating shape of the overshoot, I suspect it's a 'feature' of the 555 circuit shown at the beginning of this post.

---Xeno
 

Attachments

  • upload_2016-3-12_23-4-27.png
    upload_2016-3-12_23-4-27.png
    7.6 KB · Views: 202
  • upload_2016-3-12_23-5-35.png
    upload_2016-3-12_23-5-35.png
    10.7 KB · Views: 486
  • upload_2016-3-12_23-12-28.png
    upload_2016-3-12_23-12-28.png
    8.5 KB · Views: 280
  • upload_2016-3-13_21-51-37.png
    upload_2016-3-13_21-51-37.png
    5.9 KB · Views: 235
  • upload_2016-3-13_21-51-51.png
    upload_2016-3-13_21-51-51.png
    5.9 KB · Views: 225
How did you build it?
Please post a good photo of the actual build.

I would place a good quality ceramic 0.1uF cap between pins 1 and 8,
with shortest leads possible.
and change the "large electrolytic" to be a tantalum 10uF,
again between pins 1 and 8,with shortest leads possible.

Is there anything connected to the output?
What are you probing it with?
You should measure on the output itself with a scope-probe and the shortest GND lead possible?
 
@Harald Kapp : Thanks for the link to the other discussion. It gave me several things to try.

@dorke : If I'm still having problems after trying the suggestions in Harald's link, I'll post a photo of the build. The scope and probe read clean square waves off other circuits just fine. If it's the probe somehow causing it, I'd like to fix it circuit-side. I don't have any additional loads on the output, other than the scope probe and the feedback resistor R2, as shown in the schematic. The scope probe is connected directly to GND and the output (pin 3), as you recommend.
 
With the electrolytic cap, try a Schmitt trigger to act as a rise time improver. Of course, at higher frequencies, this will potentially have the opposite effect, making signals more noisy. But you could try it.
 
555 is a very nasty chip. It is not an "engineering chip" but just an electrical chip for a car project, where nothing matters.
For low frequencies you will need to add a 10k and 1n between the 555 and the chip you are clocking with the 1n on the input of the chip you are clocking. Some chips don't even like the 555.
 

CDRIVE

Hauling 10' pipe on a Trek Shift3
"Nasty Chip"! Is that a technical term? :rolleyes: I looked that spec up in the datasheets but I couldn't find it.

Chris
 

CDRIVE

Hauling 10' pipe on a Trek Shift3
Dork, I didn't bother Googling it but I suspect there's no such class of IC found under the heading of "Engineering Chip" either. Then there's the "car project" comment, "where nothing matters"???!!! o_O

Chris
 
It's a nasty chip, no more than a swiss army knife is nasty, in an emergency they both could potentially save your life....
 
Xeno, one other thing, it's not 50% duty cycle, for that you require a diode, on Android look for electrodroid to do the calculation for you...
 

CDRIVE

Hauling 10' pipe on a Trek Shift3
While there's nothing wrong with that circuit and it will produce a near 50% duty cycle, it won't cure his overshoot issue. For that he needs good power rail bypassing techniques, good ground plane and definitely not rely on results produced using a solderless protoboard.

Also, if this astable osc is going to be used as a single frequency time base the OP can use a simple RC filter on the output pin.

Chris

Edit: Yes a 1KΩ load on the output pin should reduce his overshoot, possibly to acceptable level.
 
Thanks again, everyone!

I'm convinced that the "overshoot" I was seeing wasn't an overshoot at all, but rather a feature of the circuit.

I've confirmed it on multiple NE555 chips, with and without loads. Here's the output again:

upload_2016-3-13_21-47-59-png.25585


The trace rises to 9V (Vcc) as expected and stays there for around 300ns. It then drops to about 7.75V (which is unexpected) and stays there for the remainder of the 'high' phase of the square wave cycle.

7.75V is well below Vcc and takes longer to charge the capacitor than 0V takes to discharge it. This is what causes the duty cycle to be closer to 60/40 rather than 50/50.

If anyone knows why the output drops from 9V to 7.75V after 300ns, I would like to understand the effect.

Meanwhile, I also tried the 50% duty cycle circuit based on a diode to shunt Rb:

upload_2016-4-17_22-35-8.png

Almost everywhere I've seen this circuit, the description claims that the duty cycle will be 50% when Ra = Rb. However, that's clearly wrong, both in theory and in practice. When operating in the forward direction and shunting current, the diode has a voltage drop across it (e.g., 0.7V for a silicon diode) and therefore the capacitor C charges more slowly than it discharges.

To obtain a 50% duty cycle, it's easiest to use a variable resistor for Rb (or Ra), so the circuit can be tuned until the duty cycle is 50%. The exact resistance needed for 50% varies with the voltage at Vcc.

Why aren't these important details provided with 555 timer circuit schematics?

The best advice I read for getting an accurate 50% duty cycle was to drive the 555 at twice the desired frequency and send its output to flip-flop, which will act as a frequency divider and toggle its output on each rising edge from the 555.
 

CDRIVE

Hauling 10' pipe on a Trek Shift3
Please post some photos of the circuit with the scope probes included.
Also, I'm not familiar with Rigol digital scopes so I don't know if your text readouts convert values based on whether the probe is in x1 or x10 mode. Are you using x1 or x10 mode? Yes, grabbing at straws!

Chris
 
Top