Go Down

Topic: Changing Baud Rate Doesn't Work (Read 1 time) previous topic - next topic

Arrch


I'll test it later but can anyone verify the answer to add a delar?


It takes about 20 seconds to test...

liudr

There is no reason this won't work. Anyway, have you tried the examples in Arduino example yet?

dmor574

Sorry, I wasn't home when I posted this question. The following code gives me an output of: "áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'áfr'á" endlessly with the serial monitor set to 14400 baud with newline. I tested other options in serial monitor drop down as well.

Code: [Select]
void setup() {
  Serial.begin(14400);
}

void loop() {
  Serial.println("Test");
  delay(100);
}


I also looked at other examples, but most have a baud rate with 9600 (which always works perfectly).

liudr

Some why do you have to use that non-working baud rate? Read the source code and see what actual rate is used?

dmor574

#9
Feb 23, 2013, 02:42 am Last Edit: Feb 23, 2013, 02:45 am by dmor574 Reason: 1
bump.

Edit: I recently purchased a Pololu Dual VNH5019 Motor controller and tested it for the first time using their arduino library downloaded here: https://github.com/pololu/Dual-VNH5019-Motor-Shield

I uploaded the "demo" example to my Mega and the serial connection worked with 115200 baud rate! This makes no sense since I tried this earlier today with a barebones program like the following without success:

Code: [Select]
void setup() {
Serial.begin(115200);
}

void loop() {
Serial.println("Test");
}


I tried it again now and it works. Although no other baud rates work still. For those telling me to deal with it or just use what works, this doesn't answer my question! Why could this possibly happen... All I did was drag-n-drop the library into my arduino folder and a new baud rate works.

It appears all the answers to these questions just "randomly work"..I don't accept this :P

Go Up