Yes you can use a astable multivibrator, such as a 555 timer configured to create Square waves. Square waves are rich in harmonics so you can easilly get your 2MHz frequency that you want.
you can use ready oscillators ( see old pc cards and mobo).
if the frequency is not correct, you can use divider (i have bunch of 4MHz
oscillators). i don't know what is relay supposed to do in previous post.
relays have mechanical parts and they will hardly go faster than some 10-20Hz. even if it could run on 2000000Hz, i would suggest not to wire transistor as emiter follower and please add some resistor in the base circuit...
Here's a tutorial on using a 555 timer to generate a pulse with an approximate frequency. **broken link removed**
And yeah, what's up with the diagram above with a relay :?:
i don't know what is relay supposed to do in previous post.
relays have mechanical parts and they will hardly go faster than some 10-20Hz. even if it could run on 2000000Hz
Relay is if you are using a voltage that the can't 4011 can't handle. If you get a really good relay, it can go that fast, but then price goes up. Thats why I said buy an oscillator.
Hey Nos,
The frequency of your oscillator is only about 3KHz. The request was for a 2MHz oscillator, 666 times higher. With a 12V supply, a 27pF cap and about 3.3K for both resistors, I made a 1.6MHz oscillator like yours.
What relay can toggle that fast and if it could, what would it do?