# Variable Frequency Generator

1. Jun 6, 2012

### mearvk

What I am looking for is a cheap, lightweight way to generate a range of specific frequencies.

To expand a little, a microwave uses a constant frequency but may vary its power to cook the food. I've heard it tries to match the resonant frequency of the water molecule in order to agitate it which in turn creates heat. What I'd like is a way to input the desired frequency and amplitude and if possible have as many emitters as possible (think max. potential emission) per unit of surface area. I was thinking for starters just a flat board with unidirectional emitters hooked up to a power source with some kind of frequency control piece in the middle. I'm new to electronics but am reasonably intelligent.

What I'm looking for specifically is if this kind of thing already exists and if not can it be built cheaply and if so what is the parts list looking like?

Thanks.

2. Jun 6, 2012

### DragonPetter

Is your purpose to vary the power absorbed by the food in a microwave?

3. Jun 6, 2012

### Staff: Mentor

Welcome to the PF.

You have no experience with electronics, but want to build your own microwave oven? We do not discuss dangerous activities here. Sorry, thread is closed.

4. Jun 6, 2012

### Staff: Mentor

After a PM discussion, I'll re-open the thread. Please keep in mind that there are regulations regarding transmitting radio waves. Anything you build will have to abide by these regulations.

5. Jun 6, 2012

### mearvk

Thanks Berkeman. My interest is in resonant frequencies I was just using a microwave as a common example of such a thing. I do see how one might be confused. And I do see the need for the board to keep things safe.

6. Jun 6, 2012

### Staff: Mentor

Can you say more about the application? There are a number of ways to generate oscillations at different frequencies (both analog and digital methods).

7. Jun 6, 2012

### sas3

If you describe more about the application "frequency range, power and what do you hope to accomplish " that would be a big help.

"berkeman" I see you are a ham, do we have many hams on this forum? just curious?
KB9JNA

8. Jun 6, 2012

### Staff: Mentor

[hijack] There are a few HAMs here on the PF, especially among the regulars in the EE forum. Always good to have folks with a range of practical RF knowledge! [/hijack]

9. Jun 6, 2012

### sas3

Sorry about the (HiJack) but I certainly would not want the guy next door running a 5 watt signal generator that is spitting out signals all over the place, a call to the FCC would not be fun for anyone.

10. Jun 6, 2012

### Staff: Mentor

Exactly!

11. Jun 6, 2012

### mearvk

My interest in EE is pretty broad. I have a strong computer science background and am looking for fun projects in which to invest my time. For now I would be quite happy understanding how we generate frequencies and then transmit (send/receive).

If you all would be more comfortable about this if we stuck to the reception side that would be OK. But essentially I would be quite happy making a homemade radio with some intelligent, programmable controls from scratch. I have maybe $200 I could dump into this. Blah blah blah and thanks. 12. Jun 6, 2012 ### berkeman ### Staff: Mentor A common way to make frequencies is with a frequency synthesizer IC: http://en.wikipedia.org/wiki/Frequency_synthesizer Although those are square wave frequencies used for clock signals, typically. You can also feed a higher speed clock into a memory circuit to read out codes that you convert to analog waveforms (like how a CD player works, or the sound card in your laptop). You can also use analog oscillators to make sine waves, although you generally have less control over those in terms of changing their frequency by much. The problem with making a radio transmitter is that it is easy to cause electromagnetic interference (EMI), which in many cases is a violation of federal law. With enough knowledge and equipment, it is very practical to build radio transceivers that comply with the law and do not cause EMI with other RF devices (like police and Fire radio systems...). HAM radio folks do it all the time, for example, and I work on such devices in my job as an EE. You can start with experiments with wired communication with analog waveforms -- kind of like the radios without the antennas. Using wired connections will teach you a lot about the circuits, without the concern over causing RF EMI. 13. Jun 6, 2012 ### mearvk I'd like to understand how signal is actually generated. Supposed I have a simple constant frequency that a quartz can provide. How do I sample the crystal at a given time, t, to derive the corresponding point in the output wave? What is the actual physical process that is happening at the nuts and bolts level? Am I feeding constant current into the crystal and listening as it oscillates naturally? From here I would need to map the quartz' frequency onto a real space/time map from which presumably I could do something useful (reception, generation, etc). How does this mapping occur? At this point I'm trying to understand the theory so that I have a more solid foundation from which to operate. Edit: Couple more questions. If I want to receive radio (for example) frequencies of say 105.1 MHz I would need to receive the signal at that frequency and then subtract the carrier signal then do something with the remnants (output to speakers). What parts would I need to only receive a range of frequencies? The antenna receives a range of frequencies all the time, so from this how do I isolate only the desired frequency? Is it as simple as sampling the antenna data at the desired frequency, i.e. 105.1 million times per second? Wouldn't you also get harmonic frequencies (2x, 1x, .5x, etc) using this thinking? Wouldn't you also get some non-harmonic data? Would I then need a 'CPU' that operates at least as fast as the signal I'm trying to sample? Thanks. Last edited: Jun 6, 2012 14. Jun 6, 2012 ### mearvk 15. Jun 6, 2012 ### sas3 16. Jun 7, 2012 ### berkeman ### Staff: Mentor 17. Jun 9, 2012 ### mearvk I've been looking around and I have a few simple questions. I was thinking of using a 9v battery to power the breadboard for now. The oscillator mentioned by sas3 works on either 5v or 3.3v and supply current says <80mA. I take this to mean that I should feed its input no more than 80 mA. How do I know what the minimum mA is? Anything from 1 to 80 mA is OK? So my first step was to try and change the 9v to a 5v. Radioshack has a voltage regulator that takes up to 35dcv and moves it down to 5v. So my next question was how to know how much amperage a 9v battery can push so that could be regulated as well. 9v batteries are rated, evidently, in terms of amphours and not just amps. So how do I have to worry about regulating a 9v battery from its normal output of 100 to 200 mA back down to under 80mA or do I just trust that the oscillator won't pull more than 80? Final question, does regulating the voltage have an effect on the current? If I lower the voltage from 9v to 5v would I also lower the current from 9x to 5x? Or would I merely be lowering the wattage from 9x to 5x? Thanks. 18. Jun 9, 2012 ### vk6kro The oscillator works on 5 volts and that is all you have to supply. As a matter of information, the data supplied says that the oscillator will draw less than 80 mA if you supply it with 5 volts. You don't have to control the 80 mA. This is just the current the device will draw if you supply 5 volts. You can find the ground terminal of a packaged crystal oscillator by measuring the resistance from each of the pins to the metal case. The ground terminal will be connected to the case and the +5 volts input will usually be diagonally opposite this terminal. The other pins are used for the output and for a voltage control input. This voltage control gives you a little bit of control over the frequency so that it can be set to an exact value. Computer oscillators are usually cheap ones that are not very accurate and do not have this voltage control. If you buy a crystal oscillator, get one with a frequency you can listen to on a radio or observe on an oscilloscope. 50 MHz is too high a frequency for common short wave receivers and it is also too high for many older oscilloscopes. Computer cards often have these crystal oscillators in them. A very common frequency is 14.318 MHz but other lower frequencies would be interesting to collect. Forget about microwave signals. They are very hard to generate with simple devices and test equipment. 9 volt batteries are a very expensive way of getting power. You can get holders that will accept 6 alkaline 1.5 volt batteries and this would be a much better way of providing power. A discarded computer will often have a fully functioning power supply in it and this already has 5 volt outputs. A linear regulator (like the 7805) will drop the voltage from, say, 9 volts to 5 volts so the load (if it is resistive) will draw current according to the formula I=E/R (Ohm's Law). So, for example, a 100 ohm resistor will draw 9 volts / 100 ohms or 90 mA from a 9 volt supply, but it will draw 5 volts / 100 ohms or 50 mA from a 5 volt supply. 19. Jun 9, 2012 ### mearvk Lots of good ideas in that response; thanks! I guess my next question is about providing current at a given voltage. Say I have a 10 amp source at 5v and a 1 amp source at 5v. Would it hurt the crystal oscillator to hook it up to the 10 amp supply at 5v? I know you said you could hook up a computer PSU so I'm guessing you can do it without liability but I'd like to be sure. How many amps at 5v should I start to be concerned about electrocution? Or does electrocution only occur above some voltage threshold? Also, I'll probably be looking for an oscilloscope as a confirmatory tool. Don't really want to spend more than$200 to $300. From what I can see they get expensive quickly. Since radios operate from 88 to 108 how would I verify what's going on with a fast crystal or a signal generator? Can't see paying$1000+ for that ability. Suggestions very welcome.

20. Jun 9, 2012