/*-----( Import needed libraries )-----*/
#include <OneWire.h>
#include <DallasTemperature.h>
/*-----( Declare Constants )-----*/
#define ONE_WIRE_BUS 2 /*-(Connect to Pin 2 )-*/
/*-----( Declare objects )-----*/
/* Set up a oneWire instance to communicate with any OneWire device*/
OneWire ourWire(ONE_WIRE_BUS);
/* Tell Dallas Temperature Library to use oneWire Library */
DallasTemperature sensors(&ourWire);
/*-----( Declare Variables )-----*/
int fan = 3;
int fanOn = 85;
int fanOff = 80;
void setup() /*----( SETUP: RUNS ONCE )----*/
{
/*-(start serial port to see results )-*/
delay(1000);
Serial.begin(9600);
Serial.println("CLEARDATA");
Serial.println("LABEL, Temp");
delay(1000);
pinMode(fan, OUTPUT);
/*-( Start up the DallasTemperature library )-*/
sensors.begin();
}/*--(end setup )---*/
void loop() /*----( LOOP: RUNS CONSTANTLY )----*/
{
Serial.print("DATA,TIME,");
sensors.requestTemperatures(); // Send the command to get temperatures
Serial.println(sensors.getTempFByIndex(0));
if (sensors.getTempFByIndex(0)>=fanOn)
{digitalWrite(fan, LOW);}
else if (sensors.getTempFByIndex(0)<=fanOff)
{digitalWrite (fan, HIGH);
}
delay(60000);
}
/* --(end main loop )-- */
/* ( THE END ) */
From what I'm reading the x axis gets it's data from column A.
All I see in that column is ######.
Anyone know how to put data in the A column with Arduino?
I'll need RPM on that axis.