Arduino pro mini and strange data

Hello,

Im using the Arduino pro mini 5V (16MHz) and Ardunio mini usb. It is possible to program the pro to blink on led 13. However, I programmed it with this code:

const int redPin = 0;            // sensor to control red color
const int greenPin = 1;            // sensor to control green color
const int bluePin = 2;            // sensor to control blue color

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

void loop()
{
  Serial.print(analogRead(redPin));
  Serial.print(",");
  Serial.print(analogRead(greenPin));
  Serial.print(",");
  Serial.println(analogRead(bluePin));
}

The correct print should be:

R440
G493
B487
R436
G467
B499
R444
G436
B491
R471
G430
B468
R489
G440
B436
R484
G459
B418

but my pro prints out only strange data such as:

?Åb¡E#ÄEó?Åb¡F#?Eó?Åb?D#?Eó??b?E#?Dó?¥b?E

I wonder if the pro mini does not work properly with the usb mini (with both DTR and RST) and needs to be connected to a FTDI 232R cable?

I have successfully use the 3.3V pro mini (8MHz) for a long time which is powered by a TTL cable such as FTDI232R without DTR.

Any suggestions?

Boye

Hi again.

It was possible to use the Arduino pro mini 3.3V with the usb mini so the problem has to be the Arduino pro mini 5V.

Any suggestions?

just looks like wrong baud rate

Thanks for the replay!

Hi - I think I have a similar problem (Arduino pro mini 5V - 16MHz, Arduino 16, via Freeuino 1.16 to borrow the USB serial)

The program is transferred fine, but the Serial comms in execution are all mixed-up, changing the baud rate doesn't fix things.

Cheers,
Dave

Hello.

Same problem here.

What is the processor on your board guys? ATmega128 or ATmega328?

Is there a possibility that the problem come from the arduino core libraries?

const int ledPin = 13;

void setup()
{
  Serial.begin(9600);
  pinMode(ledPin, OUTPUT);
}

void loop() {
  byte brightness;

  if (Serial.available()) {
    brightness = Serial.read();
    digitalWrite(ledPin, HIGH);
    delay(1000);
    Serial.write(brightness);
    digitalWrite(ledPin, LOW);
    delay(100);
  }
}

Program upload correctly.
Swith to "Serial Monitor" tab.
Baud rate is set to 9600.
I write "1234", push "Send".
Led blink 6 times..
Arduino reply : "ùòöóòó".

My config :
Arduino Pro Mini 328 - 3.3V/8MHz
FTDI Basic Breakout - 3.3V

Got your ide version 0016.
The board selected in ide is Arduino Pro Mini (3.3V, 8Mhz) w/ ATmega328.

Any suggestions plz?
Bye,
Jiboo.

EDIT : Same result on Linux and XP.
EDIT2 : Sorry, googling it sent me to the comment on the product page and the comment by Greg Miller, sorry...

I write "1234", push "Send".
Led blink 6 times..
Arduino reply : "ùòöóòó".

"I write 0x31 0x32 0x33 0x34 CR LF"
Led blinks six times (as it should - it has received six characters)."

328 Pro, 3.3V, 8 mHz.

Similar problem. Initialize Serial.begin(9600), get garbage on IDE Serial Monitor, switch baud rate to 19,200, everything is fine. Must be a CPU frequency defined wrong somewhere.

This is on Arduino 16, haven't had a chance to try it on 15 yet.

Yes, if I set the baud rate to 19200 mine works too

Cheers,
Dave

I just borrowed a friend's 16 MHz 328 board and it doesn't have the problem. Must be a "feature" of the 8 MHz boards. Are you using Arduino 16 as well?

oh that's odd.. mine is a pro mini 5V - 16MHz with Arduino 16

Dave

Hmmm, the 16 MHz that that I found no problem with was a Duemilanove.

OK, my problems are solved now... for my Pro Mini (5v, 16Mhz) I have to set the board in the Arduino environment (v16) to "Arduino Duemilanove w/ ATmega328" - it is documented on http://www.arduino.cc/en/Guide/Environment, but it's not super clear

Dave

Hi,

Im working on a project and want to send larger packages.

How is it possible to change the default baud rate from 19200 to 115200?

thanks

Problem solved:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1245508129

How is it possible to change the default baud rate from 19200 to 115200?

Just set it to whatever you want in Serial.begin();

void setup() {
  Serial.begin(115200);
// more setup
  }