Tuesday, September 27, 2011

Arduino Nano vs Seeduino Film

When compiling code for Arduino Nano, choose Arduino Duemilanove, when compiling for the Seeduino Film, choose Arduino Diecimila. So far, so good.

Uploading Arduino code that establishes a serial connection like this

void setup()
{
Serial.begin(9600);
}

void loop()
{
Serial.print("arduino greets");
delay(2000);
echo();
}

works fine on the Arduino Nano via USB to a serial terminal emulator (baud rate 9600) on the computer.

With seeduino film and the UartSBFrame programming adapter via USB to a serial terminal emulator, however, the terminal receives only garbage from the seeduino film.

Remedy: Set the baud rate to 4800.
Why??

If changing the baud rate to the next higher one, to be 19200 in the arduino code, one can then connect the terminal emulator with 9600. It seems to be always off by one - is this a known bug?

No comments:

Post a Comment