Pages: [1]   Go Down
Author Topic: arduino serial moniter ubuntu problem  (Read 653 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

so i run the analonginserialout sketch from the pre loaded examples, but it give me garbage.
i edited the sketch down to just sending one char at a time, and its all wrong.
i send "a" and i get "O"
i send "b" and i get " ' ".

ive been using the serial monitor in the arduino IDE.
no other serial moniter seems to work on my system. (i dont know why, and yes, i tried  'sudo cutecom' ect.)

i think its related to the format used to interpret the data from the arduino, but there seems to be very little documentation on how the arduino IDE serial monitor works by default and if it can be changed.

please help. this is driving me crazy. smiley-sad
Logged

Offline Offline
Edison Member
*
Karma: 26
Posts: 1339
You do some programming to solve a problem, and some to solve it in a particular language. (CC2)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It looks like a baud rate mismatch problem.

Look in the lower right corner of the Serial Monitor window: there's a number which tells you the baud rate it expects for the incoming data.

Now look at the sketch source code: there's a Serial.begin(xxx); call, where xxx is the baud rate Arduino uses to talk to the serial monitor (or whatever application is listening to the serial port on the PC). The xxx number in the sketch and the one in the serial monitor must match.

Hope this helps...
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

monitor is expectiong 9600, and sketch is sending at 9600...
Logged

Offline Offline
Edison Member
*
Karma: 26
Posts: 1339
You do some programming to solve a problem, and some to solve it in a particular language. (CC2)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Post your sketch code, please.
Logged

Pages: [1]   Go Up
Jump to: