Hi Everybody,
I am using the Atlas Scientific Stamp for a PH controller with some code that i got from fritzing. pH Corrector Shield v2.0
The problem that i am am having is the PH is not being displayed properly, when i first start the Arduino i get a clear PH 10 (which is what the probe is sat in) then all of a sudden I get an error message every time the PH Stamp sends new data. Am I not giving the the lcd print command enough time to clear?
Ill post the code.
Had to open up a GitHub account and post the code there.
#include <EEPROMVar.h>
#include <EEPROMex.h> // extended library EEPROM
#include <SoftwareSerial.h> // we have to include the SoftwareSerial library, or else we can't use it.
#include <LiquidCrystal.h> // LCD Library
#define rx 2 // pin 2 for a pH Circuit
#define tx 3 // pin 3 to work with pH Circuit
#define pumpPhup 7 // pump pH Up
#define pumpPhdown 6 // pump pH Down
SoftwareSerial myserial(rx, tx); // define how the soft serial port is going to work
LiquidCrystal lcd (8, 9, 10, 11, 12, 13); // setup LCD display
int m=0; // variable for the menu screen
int addressPhlow = 0; // Addrres storing settings Phlow to screen varible in non-volatile memory
int addressPhhigh = addressPhlow+sizeof(double); // Addrres storing settings Phlow in non-volatile memory
int addressDose = addressPhhigh+sizeof(double); // Addrres storing settings PhHigh in non-volatile memory
int addressLogUp = addressDose+sizeof(double); // Addrres storing settings LogUp in non-volatile memory
int addressLogDown = addressLogUp+sizeof(double); // Addrres storing settings LogDown in non-volatile memory
int addressPhdelay = addressLogDown+sizeof(double); // Addrres storing settings PhDelay in non-volatile memory
This file has been truncated. show original
Thanks in advance