797
edits
mNo edit summary |
mNo edit summary |
||
Line 19: | Line 19: | ||
*Pulse= Height of the line | *Pulse= Height of the line | ||
Line 43: | Line 38: | ||
; | ; | ||
} | } | ||
Serial.print("Initializing SD card..."); //initializing the SD card | |||
if (!SD.begin(10)) { | |||
Serial.println("initialization failed!"); // signal if connection failed | |||
while (1); | while (1); | ||
} | } | ||
Serial.println("initialization done."); // signal if connection succeded | |||
myFile = SD.open("test.txt", FILE_WRITE); //naming file | |||
if (myFile) { | |||
Serial.print("Writing to test.txt..."); | |||
myFile.println ("Spaziergang"); //naming the section of the file, date, place, number of walk | |||
myFile.close(); | |||
Serial.println("done."); | |||
} | } | ||
else { | else { | ||
// if the file didn't open, print an error: | // if the file didn't open, print an error: | ||
Serial.println("error opening test.txt"); //signal if opening failed | |||
} | |||
} | } | ||
void loop() { | void loop() { | ||
//if the communication started successfully- | //if the communication started successfully- | ||
myFile = SD.open("test.txt", FILE_WRITE); | |||
if (myFile) { | |||
//collect incoming data from sensors | //collect incoming data from sensors | ||
//light | //light | ||
Serial.print("Writing to test.txt..."); | |||
int light = analogRead(A0); | |||
myFile.print( "Licht: "); | |||
myFile.println(light); | myFile.println(light); | ||
//temperature | //temperature | ||
Line 118: | Line 113: | ||
*(Gerhard Richter) | *(Gerhard Richter) | ||
''Experimenting/sketching/collection of how to visualize'' | |||
[[File:Screenshot (48).png|400px]] | |||
[[File:Linearroute.png|400px]] [[File:Anhang 1 (2).jpeg|400px]][[File:razm.jpeg|400px]] | |||
[[File:rotgelbrauml.jpeg|400px]] | |||
[[File:Hintergrund.png|400px]] |
edits