What I would Like to know is if this script will work between 32 and 63487 hz as a carrier frequency as an fm transmitter but i do not have a radio that picks up fm in that range so i can not test it myself. A microphone with a max of 5v and min of 0v is hooked up to analog pin A0. The antenna is on pin 9. You will be able to control the carrier frequency via serial if I programmed it right.
unsigned int micro = 0;
String freq = 0;
unsigned int gump = 0;
unsigned int final = 0;
unsigned int mains = 0;
void setup(){
Serial.begin(9600);
pinMode(9, OUTPUT);
Serial.println("enter carrier freq in hz, the possible range is 32-63487 hz, 65 khz clock max");
}
void loop(){
if (Serial.available() > 0){
freq = Serial.readString();
gump = freq.toInt();
Serial.println("the carrier has been set to " + freq);
delay(1);
}
micro = analogRead(A0);
mains = micro * 2;
final = gump + mains;
noTone(9);
tone(9, final);
}
Plus I would like to know if it is possible to trick the arduino uno into making a tone faster than 65535 hz.
!!! PLEASE NOTE, THAT I AM NOT RESPONSIBLE FOR ANY MISUSE OF THIS SCRIPT!!!
Unfortunately no.
All your script does is generate tones on pin 9.
If you connected a speaker or buzzer to pin 9 you would hear some of the tones in the audio frequency range.
To make a transmitter you have to generate a frequency that has a mathematical relationship to the antenna being used, so that the antenna will actually work as an antenna.
In its simplest form , the most basic antenna you can make is whats called a 1/4 wave vertical, where the antenna length is equal to 300 / freq in Mhz * 4.
From a practical perspective for the purposes of building the antenna, this means using high frequencies.
Most FM Transmitters in the world operate in the range of 88 - 108 Mhz .
It is possible to transmit very low frequencies in the Khz range, but the antennas needed are immensly large.
The original Omega system used carrier frequencies in the range of 10 - 14 Khz but needed antennas 1000s of feet tall.
mauried:
Unfortunately no.
All your script does is generate tones on pin 9.
If you connected a speaker or buzzer to pin 9 you would hear some of the tones in the audio frequency range.
To make a transmitter you have to generate a frequency that has a mathematical relationship to the antenna being used, so that the antenna will actually work as an antenna.
In its simplest form , the most basic antenna you can make is whats called a 1/4 wave vertical, where the antenna length is equal to 300 / freq in Mhz * 4.
From a practical perspective for the purposes of building the antenna, this means using high frequencies.
Most FM Transmitters in the world operate in the range of 88 - 108 Mhz .
It is possible to transmit very low frequencies in the Khz range, but the antennas needed are immensly large.
The original Omega system used carrier frequencies in the range of 10 - 14 Khz but needed antennas 1000s of feet tall.
So basically what you are saying is that I would need a massive amount of hardware, and what happens if I ramped up the frequency by changing the chip to a Due or a intel Edison Gen 2, which would be near fm broadcasting with the due and be able to actually broadcast with the Edison, hopefully. Then would the hardware need to be less extensive? Plus the omega system is an Arial so it has to be thousands of feet tall to be able to actually be in line of sight with the other tower due to the curvature of the earth.