| Arduino Forum ::  Members :: Gablagar
 Show Posts Pages: [1]
 1 International / Software / Re: Arduino Mini light on: November 19, 2013, 12:29:30 pm Buenas, Tengo la misma combinación. Arduino Mini ATmega 328 y el USB2SERIAL LIGHT y me da exactamente el mismo error. Habéis podido solucionarlo. En mi caso no dispongo del condensador de 100nF puede ser por esto? (ahora mismo no tengo condensadores de esa capacidad?Ayuda por favor.
 2 Using Arduino / Storage / Re: Read int values from the SD card on: February 14, 2013, 06:50:07 am Thank you  johnwasser, for your reply and help. About your comment...QuoteAre you sure you have to have every value in memory before you an do your calculations?Really is not needed, I would explain you better the application and may be you can help me in found a solution. The values stored in the file, "1.txt" (for example) are the values of the acceleration is x, y and z coordenates, once I storage this values (that don't have a fixed size) I need open this file and compound the resultant acceleration as ar=(ax^2+ay^2+az^2)^1/2; and calculate the integral of these points as v=time/2 (ar[i-1]+ar) newton rapson methode, and evaluate the maximun of this value V. For me is interesting evaluate storage all the values v for with a PC and Excel obtain the graphics. I am thinking, and I hope that you can evaluate this possibility, use another file 1_v.txt when i storage all values of v and with this don't initializate any array, is possible this?I am thinking in a code as this (in this I writte some doubts that I have):Code:File myFile = SD.open(nomfichero);      if (myFile) {        Serial.println(nomfichero);        while (myFile.available()) {          //Serial.write(myFile.read());          int x = myFile.parseInt();          int y = myFile.parseInt();          int z = myFile.parseInt();          File myfile2 = SD.open(nomfichero2,FILE_WRITE); //I DON'T KNOW IF I CAN OPEN AT THE SAME TIME TWO DIFFERENTS FILES.          ar = sqrt((sq((x*0.007-3.6)) + sq(0.007*y-3.6) + sq(0.007*z-3.6)));// MY FUNCTION TRANSFER SENSOR         myfile2.println(ar);                                        // I DON'T KNOW IF IS POSSIBLE PRINT A FLOAT VALUE IN THE SD.              myfile2.close();              }// close the file:          myFile.close();         if (myFile2) {              // CALCULATE THE INTEGRAL ECUATION AND FOUND THE MAX VALUE.          }      } else {  // if the file didn't open, print an error:      Serial.println("error opening test.txt");      }     }