Show Posts
Pages: [1]
1  Using Arduino / Interfacing w/ Software on the Computer / pH probe>>pH stamp >>arduino>>LabView on: November 12, 2012, 04:52:35 am

i have constructed a pH meter using a pH stamp and arduino. i want to send the pH readings to Labview for graphical representation. i have installed all the required aruino Labview interface toolkit. I just dont know how to start from there on. Do you guys have any VI close to what i need?

another question is, once i have open LVIFA_Base ....what do i do then?
2  Using Arduino / Sensors / Re: Atlas Scientific pH stamp with arduino on: November 10, 2012, 07:23:42 am
thanks everybody. i managed to complete it. but how do i connect arduino with Labview? or any other medium so i can display in graphical form?
3  Using Arduino / Sensors / Re: Atlas Scientific pH stamp with arduino on: November 09, 2012, 08:08:52 am
sorry bro.....i guess a noob deserve that joke
4  Using Arduino / Sensors / Re: Atlas Scientific pH Stamp Issue on: November 09, 2012, 07:44:54 am
i got it running
#include <SoftwareSerial.h>           

SoftwareSerial pH =  SoftwareSerial(2, 3);  //setup and rename soft uart.
//                                  RX|TX
char stamp_data[15];      //reserve 15 bytes
byte holding;             //define holding
byte i;                    //define for loop
float ph_out = 0.00;          //set float

void setup(){
pH.begin(38400);        //open pH comms
Serial.begin(38400);    //open serial comms

void loop() {
pH.print("r");          //tell stamp to take single reading
pH.print((char)13);      //end in <CR>

pH.listen();                    //listen to pH port
while(pH.available() > 3) {    // wait until greater than 3 bytes
holding=pH.available();      //hold pH stamp info
  for(i=0; i <= holding;i++){  //assemble stamp data
Serial.print("stamp_data: ");   //print data type (added line)
Serial.println(stamp_data);    //print stamp data (added line)

Serial.print("ph_out: ");  //print data type
Serial.println(ph_out);    //print ph float

but how do i display the pH values on LCD?
5  Using Arduino / Sensors / Re: Atlas Scientific pH stamp with arduino on: November 09, 2012, 07:07:15 am
yup i got that.

but how do i get the pH values to float??
6  Using Arduino / Sensors / Atlas Scientific pH stamp with arduino on: November 08, 2012, 10:15:52 pm
Hi arduino gurus

I have ITEADUINO V2.1 WITH ATMEGA328 which same as the old Duemilanove. I also have the Atlas Scientific pH stamp. I would like to do a very simple project but since I am a complete noob, I will need help from you guys.

I would like to trigger some Leds and Buzzer when a certain range of pH is reached. I also want to display the pH on LCD

Here's my question:

1)Do i need to modify the code given by Atlas ??
2)I got this code from some one. Once i got the pH to float, I can display it on LCD......but the problem is got erros using this code. Here's the code

// -------------------------------------------------------------------------------
// Simple way to get Atlas Scientific serial PH stamp value to LCD or PC
// Author: Eric van Riet - The Netherlands
// ***************ONLY THE PART FOR PH IS LISTED!*****************

// -------------------------Set measurement interval------------------------------
long phReadInterval = 1000;
long previousMillisPH = 0;
int PHState = HIGH;
// -------------------------------------------------------------------------------

// ---------------Variable to hold PH value---------------------------------------
float PH_Val;
// -------------------------------------------------------------------------------

void setup()
  Serial.begin(38400);         // Set baudrate for hardware serial port 0 (PC)
  Serial1.begin(38400);        // Set baudrate serial port 1 to 38400 (PH)
  lcd.begin (20,4);            // initialize the lcd  

// -------------Get PH value from Atlas Scientific PH serial stamp----------------
void getPHvalue()  {                //get PH every interval (1000 ms)
  unsigned long currentMillisPH = millis();
  if(currentMillisPH - previousMillisPH > phReadInterval) {
    previousMillisPH = currentMillisPH;  
    if (PHState == HIGH)  {
        PHState = LOW;
    else  {
        PHState = HIGH;
        Serial1.print("r\r");  // 'R' reads one value, see stamp doc
        while (Serial1.available() > 0) {
                // Serial1.parseFloat looks for the next valid float number
        // in the serial stream. In this case on hardware serial 1
        PH_Val = Serial1.parseFloat();
        // look for the carriage return. That's the end of your sentence:
        if ( == '\r') {
        Serial.println(PH_Val);  // can be used for debug, pc display etc.
// -------------------------------------------------------------------------------

void loop()  

    lcd.print("PH value: ");


and here's the error:

EZ_com.ino: In function 'void setup()':
EZ_com:22: error: 'Serial1' was not declared in this scope
EZ_com:23: error: 'lcd' was not declared in this scope
EZ_com:27: error: a function-definition is not allowed here before '{' token
EZ_com:61: error: expected `}' at end of input


Moderator edit: [code] [/code] tags added.
Pages: [1]