I was trying to make an FM transmitter and, because I have no mic, I thought I could just use an Arduino (Uno) to generate some tones for testing. It turned out I never got a signal from the circuit but from the Arduino alone.
I'm connecting it to pin 9, battery- to GND, battery+ to Vin and no other connections. The transmitter circuit is gone.
I tested it with multiple antenna lengths. Every time, it produces a signal that can clearly be picked up by my radio on multiple different FM frequencies. I know this radio works, since it can receive multiple radio stations in my area.
How could this be happening?
Here is the code I'm producing the sound with. Both times, the same thing happens.
void setup() {
pinMode(9,OUTPUT);
}
void loop() {
while(millis()%1000<500){
delayMicroseconds(1136);
digitalWrite(9,HIGH);
delayMicroseconds(1136);
digitalWrite(9,LOW);
}
while(millis()%1000>=500){
delayMicroseconds(757);
digitalWrite(9,HIGH);
delayMicroseconds(757);
digitalWrite(9,LOW);
}
}
void setup() {
pinMode(9,OUTPUT);
}
void loop() {
delay(500);
tone(9,440);
delay(500);
tone(9,660);
}
it would be nice ...
andi would be glad ...
are not questions ..... what exactly is your question? ... you said that you somehow connected an antenna to an arduino ... you did not say how you connected the antenna, and you did not ask a question about it \$\endgroup\$