Pages: [1]   Go Down
Author Topic: Atlas pH serial/terminal string repeating  (Read 591 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 1
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for any help guys. 

Current setup:
Arduino Uno r3
Arduino IDE v1.0.1 (1.0.3 gives terrible errors)
Digole serial LCD
Dallas DS18b20

Circuit concept:  pretty simple.  UNO gets temp from sensor, sends to Atlas pH stamp for compensation, gets a (compensated) pH measurement.  Prints pH to LCD and to Serial output (currently terminal monitor, but eventually xbee radio).

What works: LCD display, temperature retrieval and conversion, sending commands to the Atlas stamp.

Problem: while LCD prints the pH result fine, the terminal monitor regularly shows the pH data as a much longer, redundant string of data.  For instance, the LCD prints the returned pH as 6.99  but the terminal monitor shows: 6.996.99
I can't figure out why the LCD never prints redundant data but the terminal regularly does.  It suggests that the Arduino has received the correct single string from the Atlas stamp, but is somehow not delivering it to the uart serial output correctly
Eventually, it's the serial/terminal output that matters more to me than the LCD.

What I've tried:
I have already tried to limit the sensorstring to (5) instead of the default (30) but that hasn't helped.
I've removed any "continuous" measurements and limited to single "r" commands or (just sending the temp).
sending multiple /r following a command to be sure it's finished with the previous command.
clearing the sensorstring before/after commands to clear any residual data
using Arduino IDE monitor under both windows and Mac environments
using Termite under windows (gets same result)

Thanks again for any advice.

Offline Offline
Faraday Member
Karma: 111
Posts: 5251
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Where's your (complete) code?

Global Moderator
Offline Offline
Shannon Member
Karma: 224
Posts: 13917
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

One of the professional problem descriptions I've seen .

Rob Tillaart

Nederlandse sectie -,77.0.html -
(Please do not PM for private consultancy)

New Jersey
Offline Offline
Faraday Member
Karma: 70
Posts: 3743
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Rather than /r you should be using \r or likely \n instead. Better yet, use serial.println and the function will take care of the newline for you.

Pages: [1]   Go Up
Jump to: