Code:
// arduino controlled liquid cooling info center Code named "big brother"
// by charles gantt aka oneslowz28 http://themakersworkbench.com
// special thanks to ovride, and crenn from thebestcasescenario.com
// this is an ongoing project for my cod mw2 case mod my intention is to create an
// all in one information center that displays data from my pc watercooling system
#include <LiquidCrystal.h>
#include <math.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
// set up the LCD's number of rows and columns:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.setCursor(0,0); //set cursor to line 1 column 1
lcd.print("Satcomm Info Initializaion"); //catchy name for system
lcd.setCursor(0,1); //set cursor to line 1 column 1
}
/*void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis()/1000);
}*/
// begin temp sensor code
double Thermister(int RawADC) {
double Temp;
Temp = log(((10240000/RawADC) - 10000));
Temp = 1 / (0.001129148 + (0.000234125 * Temp) + (0.0000000876741 * Temp * Temp * Temp));
Temp = Temp - 273.15; // Convert Kelvin to Celcius
return Temp;
}
void loop() {
lcd.setCursor(0,0); //set cursor to line 1 column 1
lcd.print("Sensor 1 "); //Lable first temp sensor
lcd.print(Thermister(analogRead(0))); // display Celcius
lcd.print("c"); //lable temp format displayed
lcd.setCursor(0,1); //set cursor to line 2 colum 1
lcd.print("Sensor 2 "); //lable second temp sensor
lcd.print(Thermister(analogRead(1))); // display Celcius
lcd.print("c"); //lable temp format displayed
delay(100); //length of time screen is displayed
}
// by charles gantt aka oneslowz28 http://themakersworkbench.com
// special thanks to ovride, and crenn from thebestcasescenario.com
// this is an ongoing project for my cod mw2 case mod my intention is to create an
// all in one information center that displays data from my pc watercooling system
#include <LiquidCrystal.h>
#include <math.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
// set up the LCD's number of rows and columns:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.setCursor(0,0); //set cursor to line 1 column 1
lcd.print("Satcomm Info Initializaion"); //catchy name for system
lcd.setCursor(0,1); //set cursor to line 1 column 1
}
/*void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis()/1000);
}*/
// begin temp sensor code
double Thermister(int RawADC) {
double Temp;
Temp = log(((10240000/RawADC) - 10000));
Temp = 1 / (0.001129148 + (0.000234125 * Temp) + (0.0000000876741 * Temp * Temp * Temp));
Temp = Temp - 273.15; // Convert Kelvin to Celcius
return Temp;
}
void loop() {
lcd.setCursor(0,0); //set cursor to line 1 column 1
lcd.print("Sensor 1 "); //Lable first temp sensor
lcd.print(Thermister(analogRead(0))); // display Celcius
lcd.print("c"); //lable temp format displayed
lcd.setCursor(0,1); //set cursor to line 2 colum 1
lcd.print("Sensor 2 "); //lable second temp sensor
lcd.print(Thermister(analogRead(1))); // display Celcius
lcd.print("c"); //lable temp format displayed
delay(100); //length of time screen is displayed
}


