Baud rate off I am a little confused

little confused right now my baud rate seems off when I am monitoring.
code

void setup(){
Serial.begin(9600);
}
void loop(){
Serial.println(test);
}

when I go to serial monitor I have to set the baud rate to 4800 if I set the baud to 9600 I get a bunch of gibberish.
If I change the baud in the code to 4800 and I have to monitor at 2400.

this is using Arduino IDE 1.0.5... I plan on switching to 1.6.1 in the near future but I have had some issues with my libraries.
IDE settings
board selected is Arduino pro mini 5V, 16mhz ATmega328
programmer selected is USBTinyISP

I am using FTDI to interface to a atmega 328P-au opperating at 5V

I am getting a compiler error:

sketch_may10a.cpp: In function 'void loop()':
sketch_may10a:5: error: 'test' was not declared in this scope

when I go to serial monitor I have to set the baud rate to 4800 if I set the baud to 9600 I get a bunch of gibberish.
If I change the baud in the code to 4800 and I have to monitor at 2400.

Sounds like you are running it at 8 MHz, TBH.

Hi,

Serial.println("test");

Will help for a start, as Nick has said the sketch you posted won't even compile without doing the above change.

Tom.... :slight_smile:

the issue was the 8mhz...

thanks.