Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 14
  • 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!
Finn Hammer (72)
Blue Adept (43)
Nickel (68)


Next birthdays
05/18 AlexRU73 (39)
05/19 cbfull (52)
05/19 Steve Ward (39)
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 »   

4Mhz square wave generator

 1 2 3 
Move Thread LAN_403
Sulaiman
Fri Feb 19 2016, 08:01PM
Sulaiman Registered Member #162 Joined: Mon Feb 13 2006, 10:25AM
Location: United Kingdom
Posts: 3140
I'm not sure exactly what you are constructing
but with Class-E (or any resonant circuits) if you fix your clock frequency
then every other frequency dependant circuit will need to be tuned to the clock.
It will be easier if you have a variable frequency clock
which would allow 'tuning' by varying the clock frequency rather than adjusting capacitance or inductance
at least for one tuned circuit.

I also doubt that a fixed frequency is best because tuned circuits vary their resonant frequency when loads/environment changes.
So,
Is there a reason to operate at exactly 4 MHz ?
How accurate and stable do you NEED the frequency to be ?

I would go for a simple variable frequency oscillator and an accurate frequency meter
(or estimate frequency from your oscilloscope)
or something like this digital sig.gen./freq.counter Link2

many microcontrollers used to operate at 4 MHz - masses of info on the web
the 5v crystal oscillator that I linked to just needs 0v and +5v, and the output will drive the gate driver ic input directly.
I would not add any protection as the cost of an XTO on eBay makes it not worth the complication
e.g. Link2
(look for TTL or HCMOS'output to be safe, some crystal oscilllators give a distorted sinewave of about 1v)
Back to top
jdub1581hv
Fri Feb 19 2016, 09:41PM
jdub1581hv Registered Member #55219 Joined: Tue Jun 09 2015, 11:21PM
Location:
Posts: 80
klugesmith wrote ...

jdub's circuit is for using a bare 2-terminal crystal (passive component). Change the crystal to change the frequency.
Sulaiman pointed to some crystal oscillator components, which are easier to use. Connect appropriate power voltage (3.3 or 5 volts) and get a corresponding logic signal out.
In both cases the frequency is fixed. Worst case frequency error of +/- 100 ppm (0.01%) is a pretty loose tolerance for crystal controlled oscillators.

Your 74LS624 is a voltage controlled oscillator chip. No crystal is involved, and you can tune the frequency over a substantial range. How are you planning to measure the frequency, if you don't have an oscilloscope? You could divide it down into the audible range (e.g. with CD4040 or CD4060) and listen with headphones or a small loudspeaker. Or adapt an old auto service dwellmeter/tachometer, which I could send you for cost of postage.

It's time you learned a little about logic IC's. Jump on in; they don't bite. Get a plug-in breadboard to play with -- apparently as popular now as they were decades ago. There are other forums to learn at.

Cool, I am using the 4mh xtal and 7493ic as a divider -outputs: A=fo/2, B fo/4, C=fo/8, D = fo/16 Which should give me a 2mhz, 1mhz, 500khz, 250khz clocks to choose from..
Back to top
ZakWolf
Sat Feb 20 2016, 12:06AM
ZakWolf Registered Member #3114 Joined: Sat Aug 14 2010, 08:33AM
Location:
Posts: 608
Sulaiman wrote ...

I'm not sure exactly what you are constructing
but with Class-E (or any resonant circuits) if you fix your clock frequency
then every other frequency dependant circuit will need to be tuned to the clock.
It will be easier if you have a variable frequency clock
which would allow 'tuning' by varying the clock frequency rather than adjusting capacitance or inductance
at least for one tuned circuit.

I also doubt that a fixed frequency is best because tuned circuits vary their resonant frequency when loads/environment changes.
So,
Is there a reason to operate at exactly 4 MHz ?
How accurate and stable do you NEED the frequency to be ?

I would go for a simple variable frequency oscillator and an accurate frequency meter
(or estimate frequency from your oscilloscope)
or something like this digital sig.gen./freq.counter Link2

many microcontrollers used to operate at 4 MHz - masses of info on the web
the 5v crystal oscillator that I linked to just needs 0v and +5v, and the output will drive the gate driver ic input directly.
I would not add any protection as the cost of an XTO on eBay makes it not worth the complication
e.g. Link2
(look for TTL or HCMOS'output to be safe, some crystal oscilllators give a distorted sinewave of about 1v)


Perfect, thats exactly the information I was looking for. I am working on a class e tesla coil. I can check the frequency witht he scope no problem. I want to drive the FET's like this guy is Link2 From reading the site he doesn't seem to have a class e drive arrangement, just the X Mhz signal feeding the IXDD614 MOSFET driver which outputs the square wave to the FQA11N90 gate. With that setup I would need the GDT's or to match impedance,further more i wouldn't need the classe e mosfet drive stage before the final class e circuit like Erik has.. Or am I missing something.

Its hard enough for me to grasp all this without the added effect of high frequency and resonance messing with everything.


1455926410 3114 FT175553 Proper 4mhz Classe Sstc 1
Back to top
jdub1581hv
Sat Feb 20 2016, 01:38AM
jdub1581hv Registered Member #55219 Joined: Tue Jun 09 2015, 11:21PM
Location:
Posts: 80
ZakWolf wrote ...


Perfect, thats exactly the information I was looking for. I am working on a class e tesla coil. I can check the frequency witht he scope no problem. I want to drive the FET's like this guy is Link2 From reading the site he doesn't seem to have a class e drive arrangement, just the X Mhz signal feeding the IXDD614 MOSFET driver which outputs the square wave to the FQA11N90 gate. With that setup I would need the GDT's or to match impedance,further more i wouldn't need the classe e mosfet drive stage before the final class e circuit like Erik has.. Or am I missing something.

Its hard enough for me to grasp all this without the added effect of high frequency and resonance messing with everything.


1455926410 3114 FT175553 Proper 4mhz Classe Sstc 1


I'm with ya man... The matching networks are a pain, and right when I think it's making sense, I go and confuse myself again.. Then again I may be going backwards in my process .. Adapting to what I have available..
My math is pretty good, but part reduction and circuit simplicity still trouble me.
Back to top
jdub1581hv
Sat Feb 20 2016, 01:42AM
jdub1581hv Registered Member #55219 Joined: Tue Jun 09 2015, 11:21PM
Location:
Posts: 80
Also, Perezx (member) has a nice feedback driven class e you could look up.. simpler than the pic you posted..
Back to top
Claude
Sun Feb 21 2016, 12:35AM
Claude Registered Member #3379 Joined: Mon Nov 01 2010, 06:34AM
Location: Sydney, Australia
Posts: 24
Reaching has a good simple 4Mhz class E audio modulated coil which I have built. Works very well. You don't have to add the audio modulation part if you don't want to.
Claude.
Back to top
ZakWolf
Sun Feb 21 2016, 12:43AM
ZakWolf Registered Member #3114 Joined: Sat Aug 14 2010, 08:33AM
Location:
Posts: 608
So I lashed up a circuit with a 3.6Mhz crystal I have and used a Link2 74HC14N Hex Schmitt-Trigger. Flowed this schematic... I used random values 500k pot (Fres adjust) for R1, 10k for R2 and 240pF for C1&C2
1456014909 3114 FT175553 Osc32a


Scope Shot: The yellow trace is the Xtal ( 8 MHz is not accurate it was jumping all over the place but was most commonly at aroun 2.2 MHz)
Blue: square wave output at ~6v
1456015064 3114 FT175553 Newfile2


Looks like bad ringing.. stable up to about 4MHz limited by crystal probably... LM7805 with heavy filtering supplying Vcc. How to I go about calculating correct values? This produces square wave into the 100kHz range and up so if I get a high rated Xtal I should be able to achieve a 4Mhz zignal

How do I reduce the ringing ?

Edit: didnt have my POT in the right place, added the 1Mohm resistor across pins 1 and 2. Adjusting cap values I can get a range of different frequency's but the ringing is still an issue. I was able to achieve higher then 4Mhz with fixing my build
Back to top
klugesmith
Sun Feb 21 2016, 01:13AM
klugesmith Registered Member #2099 Joined: Wed Apr 29 2009, 12:22AM
Location: Los Altos, California
Posts: 1714
Hi Zak.
Nothing wrong with plugging in components at hand to see what happens.
But that circuit, with your reported values of R and C, is not a crystal oscillator. It's a tunable schmitt-trigger oscillator that would run, probably better, if you omit the crystal. Link2 R1 and the C on left side determine the frequency. To shift the tuning range to higher frequencies, put a smaller C over there (or both of your 240-pF C's in series).

The schematic image you posted tells how to choose values for a better shot at making it a _crystal_ oscillator. In that mode it would oscillate at 3.6 MHz +/- 0.01%, a frequency insensitive to modest changes in R and C values. The table in the schematic might give the impression that C and R2 determine the frequency. No! Frequency is set by the nominal value marked on the crystal package. Then you choose C and R2 values from the table to make a functional oscillator. You would have to extrapolate to pick likely values to work with a 3.6 MHz crystal. Or use values posted elsewhere in this thread for use with 4 MHz crystals (close enough). Good luck!

[edit] the ringing in your scope picture is probably an artifact of power and ground routing to the oscillator components and/or the scope probe. Can we see a picture? What's the nominal bandwidth (not the sampling rate) of the scope? Does it have a menu option to artificially reduce the bandwidth?


Back to top
ZakWolf
Sun Feb 21 2016, 01:28AM
ZakWolf Registered Member #3114 Joined: Sat Aug 14 2010, 08:33AM
Location:
Posts: 608
klugesmith wrote ...

Hi Zak.
Nothing wrong with plugging in components at hand to see what happens.
But that circuit, with your reported values of R and C, is not a crystal oscillator. It's a tunable schmitt-trigger oscillator that would run, probably better, if you omit the crystal. Link2 R1 and the C on left side determine the frequency. To shift the tuning range to higher frequencies, put a smaller C over there (or both of your 240-pF C's in series).

The schematic image you posted tells how to choose values for a better shot at making it a _crystal_ oscillator. In that mode it would oscillate at 3.6 MHz +/- 0.01%, a frequency insensitive to modest changes in R and C values. The table in the schematic might give the impression that C and R2 determine the frequency. No! Frequency is set by the nominal value marked on the crystal package. Then you choose C and R2 values from the table to make a functional oscillator. You would have to extrapolate to pick likely values to work with a 3.6 MHz crystal. Or use values posted elsewhere in this thread for use with 4 MHz crystals (close enough). Good luck!

[edit] the ringing in your scope picture is probably an artifact of power and ground routing to the oscillator components and/or the scope probe. Can we see a picture? What's the nominal bandwidth (not the sampling rate) of the scope? Does it have a menu option to artificially reduce the bandwidth?




Awesome, Thanks for that I will try in a min. to omit the Crystal. My scope is a rigol DS1054z only had it a couple weeks so Im still learning how to use it
Back to top
ZakWolf
Sun Feb 21 2016, 01:59AM
ZakWolf Registered Member #3114 Joined: Sat Aug 14 2010, 08:33AM
Location:
Posts: 608
Sorry for the double post but I wanted to add a new scope picture. A bit jittery


1456019801 3114 FT175553 Newfile3


This is the square wave without the crystal. Using 120pF and a 1Mohm pot to adjust frequency. I switched my probe to 1x and scope as well and that seem to have cleaned up the input. Was it looking so messy before because of the 10x setting? I know there is a capacitance in the probe at higher ranges right ?
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.