I'm having trouble with the software, the interface says it is connected but there is no data coming to the excel
const int flexPin0 = A0; //pin A0 to read analog input
char string0 = 'W';
//Variables:
int value0; //save analog value
void setup(){
Serial.begin(9600); //Begin serial communication
Serial.println("LABEL,Sensor value");
}
void loop(){
value0 = analogRead(flexPin0); //Read and save analog value from potentiometer
Serial.println(value0); //Print value
delay (1000);
But now I have another problem regarding the naming of columns.
By default it shows Date Time Timer Counter and Millis
When I place this in setup
void setup(){
Serial.begin(9600);
// while the serial stream is not open, do nothing:
while (!Serial)
{
// do nothing
} ;
Serial.println("CLEARDATA");
Serial.println("LABEL,A,B,C, D,E");
}
The column name does not change but the values enter into excel one by one
When I place it at loop
void loop(){
value0 = analogRead(flexPin0); //Read and save analog value from potentiometer
Serial.println("LABEL,A,B,C, D,E");
//Serial.print("DATA,TIME,TIMER");
Serial.println(value0); //Print value
delay (1000);
}
The column name changes but the data keeps on replacing itself.