Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 26
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
All today's birthdays', congrats!
rev (49)
Cheech707 (35)
M_Gargantua (35)
nyditch (39)


Next birthdays
07/21 Gagazet (33)
07/21 Chris Cristini (36)
07/22 Reaching (40)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: General Science and Electronics
« Previous topic | Next topic »   

ne555 sine wave ?

1 2 3 
Move Thread LAN_403
Duality
Mon Feb 02 2009, 05:12PM Print
Duality Registered Member #1951 Joined: Sun Feb 01 2009, 01:59PM
Location:
Posts: 105
is it possible to make a sinewave generator with a ne555,
can't seem to find it? (on the net)
(i have a stupid comp anny way)

anny way i just want to know if it's possible ;)
Back to top
Dave Marshall
Mon Feb 02 2009, 05:22PM
Dave Marshall Registered Member #16 Joined: Thu Feb 02 2006, 02:22PM
Location: New Wilmington, PA
Posts: 554
Yes and no. It is possible to make something pretty close to a sine wave.

Since you can't achieve a perfect 50% duty cycle with a 555, you can't achieve a perfect sine wave. However, by getting as close as possible to 50%, and filtering the output with a couple of chebychev or similar low-pass op amp filters, you get something pretty darn close to sine wave.

This works because a square wave is basically a number of sine waves (the fundamental frequency plus its harmonics) all wrapped together. By filtering out the harmonics, you're left with the single sine wave at the fundamental frequency.

Dave
Back to top
Dr. Dark Current
Mon Feb 02 2009, 06:22PM
Dr. Dark Current Registered Member #152 Joined: Sun Feb 12 2006, 03:36PM
Location: Czech Rep.
Posts: 3384
Dave Marshall wrote ...

Since you can't achieve a perfect 50% duty cycle with a 555, you can't achieve a perfect sine wave. However, by getting as close as possible to 50%, and filtering the output with a couple of chebychev or similar low-pass op amp filters, you get something pretty darn close to sine wave.
Well if you were going to use a "couple of" op-amps, you can as well make a sine wave oscillator with just a single op amp. And it will be a nearly perfect sine wave. Link2

Back to top
KLH
Mon Feb 02 2009, 06:55PM
KLH Registered Member #1819 Joined: Thu Nov 20 2008, 04:05PM
Location:
Posts: 137
Dave Marshall wrote ...
Since you can't achieve a perfect 50% duty cycle with a 555, you can't achieve a perfect sine wave. However, by getting as close as possible to 50%, and filtering the output with a couple of chebychev or similar low-pass op amp filters, you get something pretty darn close to sine wave.
Dave

It is possible to achieve an exactly 50% duty cycle with the 555; just put a diode (1N914 or similar) with cathode to pin 2 and anode to pin 7. Making the 2 resistor values equal gives a duty cycle of very close to 50% (varies with resistor tolerance, so I recommend using Xicon's 271-XX-RC 1% metal film resistor series).

You can then use a capacitor-based low pass filter, but an LC filter will be much more effective at eliminating harmonics.

But as Dr. Kilovolt said, it's better to make an op-amp based sine wave oscillator. However, I prefer the phase shift oscillator (it's on Wikipedia) because I think it's simpler and easier to get working. It requires only an op-amp and a handful of passives.
Back to top
Duality
Mon Feb 02 2009, 07:06PM
Duality Registered Member #1951 Joined: Sun Feb 01 2009, 01:59PM
Location:
Posts: 105
really thanks for replying ;P
i asked because i have toooooo much ne555's laying around XD
i have two high-speed comparator's can't i use them instead, or do it need to be op-amps?
if so are the lm386 good for this?
Back to top
Bored Chemist
Mon Feb 02 2009, 07:41PM
Bored Chemist Registered Member #193 Joined: Fri Feb 17 2006, 07:04AM
Location: sheffield
Posts: 1022
If you run two 555 square waves with similar frequebncies into a comparator then low pass filter the output you get a sine wave with a frequency equal to the difference in frequency between the two 555s. The heterodyne oscilator or beat frequency generator. This is usually a daft way to generate a sinewave- unless you happen to have lots of 555s and lots of comparators
Back to top
Duality
Mon Feb 02 2009, 07:44PM
Duality Registered Member #1951 Joined: Sun Feb 01 2009, 01:59PM
Location:
Posts: 105
ne555's enough comparators not :(
Back to top
Dr. Dark Current
Mon Feb 02 2009, 07:51PM
Dr. Dark Current Registered Member #152 Joined: Sun Feb 12 2006, 03:36PM
Location: Czech Rep.
Posts: 3384
Bored Chemist wrote ...

If you run two 555 square waves with similar frequebncies into a comparator then low pass filter the output you get a sine wave with a frequency equal to the difference in frequency between the two 555s. The heterodyne oscilator or beat frequency generator. This is usually a daft way to generate a sinewave- unless you happen to have lots of 555s and lots of comparators
I would think that would generate a triangle wave confused

Back to top
Bored Chemist
Mon Feb 02 2009, 09:02PM
Bored Chemist Registered Member #193 Joined: Fri Feb 17 2006, 07:04AM
Location: sheffield
Posts: 1022
You might be right, what about adding the 2 square waves?
Back to top
Steve Conner
Tue Feb 03 2009, 10:25AM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
The "industry standard" way of doing this is to use switched current sources to make the 555 generate a triangle wave on its timing capacitor, instead of the usual exponential sawtooth. An overdriven transistor long-tailed pair is then used to "soft clip" the triangle wave into a sine wave.

This is mathematically exact, because the transfer function of a long-tailed pair is tanh something or other. In practice you can make it work with about 1% distortion. It works over a very wide frequency range without adjustment, unlike all of the proposed schemes here using filters.

It's also how the sinewave output works on function generator chips like the ICL8038 and MAX038.
Back to top
1 2 3 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.