Hello
I make a project with arduino mega.
I want to measure more than 6 voltages at once and export the data to excell.I try to finish my code but my problem is that i cant send data to different columns.The only data that i read to excell is the time and the voltage from A0 Pin
void setup()
{
Serial.begin(9600);
Serial.println("CLEARDATA");
Serial.println("LABEL,Time,Block 1,Block 2,Block 3,Block 4");
Serial.println("RESETTIMER");
}
void loop()
{
int sensorValue = analogRead(A0);
float voltage = sensorValue * (5.0 / 1023.0);
Serial.println(voltage);
delay(1000);
sensorValue = analogRead(A2);
voltage = sensorValue * (5.0 / 1023.0);
Serial.println(voltage * 3);
delay(1000);
Serial.print("DATA,TIME,");
}