Hi,
How can I create a sine wave using an atmega328P? Is there any good method (analogue or digital)?
I need to send remote information using FM radio waves or by using PWM.
Thanks in advance.
Hi,
How can I create a sine wave using an atmega328P? Is there any good method (analogue or digital)?
I need to send remote information using FM radio waves or by using PWM.
Thanks in advance.
What frequency of sine wave do you want to create? How many bits of resolution do you want? (freq and res are hard to get at the same time). What info do you want to send using FM? text? speech? music?
One technique is to use PWM and output samples of a sine. The other is to create a DAC output using an R-2R resistor ladder (this method costs 8 pins). The latter can be seen here:
http://www.myplace.nu/avr/minidd...
which produces this:
Or have a look at Jesper's DDS, Found Here .
JC
DocJC,
Can I be the first to say "SNAP!" ? ;-)
Cliff
Or, use a serial DAC to save pins.
Thanks everyone for your answers!
What frequency of sine wave do you want to create? How many bits of resolution do you want? (freq and res are hard to get at the same time). What info do you want to send using FM? text? speech? music?
What I want is basically write any characters to an LCD remotely from the computer. Using FM radio waves to communicate with the receiver.
What's the best method you recommend me? I read an article that it was better to use sine waves, instead of an square wave, because of its frequency.
You want to generate FM RF with an AVR? What frequency? It will be illegal in most countries.
It's been a while since we had a Monty Python reference so here goes:
"And now in stereo..."
The latter can be seen here:
Or have a look at Jesper's DDS, Found Here .
(From The Man With A Tape-recorder Stuffed Up His Nose which has to be one of MPFC's most brilliant moments! http://www.youtube.com/watch?v=M... )
Using FM radio waves to communicate with the receiver.
There are also cheaper solutions for one way communication using ASK http://www.blitzlogic.com/rf.htm
An alternative is to use one of the ATMEL controllers wth RF support ie AT86RF401
The title of your post does not really suggest what you want to do!
When you say "FM or PWM", those are not exclusive.
You can send PWM via FM. Easy. You can FM a PWM. Easy.
Do you need wireless communication? Then, use one of those 433MHz receiver/transmitter pairs such as you will find at SparkFun - pretty low cost. 100m or so should work. Send your data as on/off coding (amplitude modulation). There are slightly better ones that transport async serial transparently. Similar frequency and distance.
Jim