Comments on: ESP32: Guide for MicroSD Card Module using Arduino IDE https://randomnerdtutorials.com/esp32-microsd-card-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Wed, 16 Jul 2025 14:12:55 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Sara Santos https://randomnerdtutorials.com/esp32-microsd-card-arduino/#comment-1069838 Wed, 16 Jul 2025 14:12:55 +0000 https://randomnerdtutorials.com/?p=102290#comment-1069838 In reply to Miller Cambindo M..

Great!
Regards,
Sara

]]>
By: Miller Cambindo M. https://randomnerdtutorials.com/esp32-microsd-card-arduino/#comment-1069608 Wed, 16 Jul 2025 03:00:33 +0000 https://randomnerdtutorials.com/?p=102290#comment-1069608 In reply to Miller Cambindo M..

Hola Sara,
Logré resolver el problema, tenía un error casi imperceptible en una instrucción, casi me saco un ojo.
Muchas gracias.
Saludos,

Miller CM

]]>
By: Miller Cambindo M. https://randomnerdtutorials.com/esp32-microsd-card-arduino/#comment-1069599 Wed, 16 Jul 2025 02:22:56 +0000 https://randomnerdtutorials.com/?p=102290#comment-1069599 Hola Sara, yo de nuevo.
Ya corregí el error de cálculo y logré que los datos en la memoria se guarden cada 5 minutos. Ahora tengo un problema: cada vez que se reinicia el ESP32 (o hay un corte de energía), el archivo en la memoria SD comienza a grabarse desde el inicio, es decir, se borran los registros ya grabados.

Qué debo hacer para que el archivo continúe grabando desde el último registro antes que se corte la energía?

Saludos,

Miller CM

]]>
By: Miller Cambindo M. https://randomnerdtutorials.com/esp32-microsd-card-arduino/#comment-1069087 Tue, 15 Jul 2025 01:04:28 +0000 https://randomnerdtutorials.com/?p=102290#comment-1069087 In reply to Sara Santos.

Hola Sara, gracias por responder tan pronto.
Debo tener algún problema con los cálculos que hago para que los datos se guarden cada 5 minutos, le quité la restricción y permití que los datos se guarden en cada vuelta del programa y la memoria grabó 525 registros.

Voy a revisar, quizás no estoy gestionando bien la función millis(), como lo dice Dave Evans.

Gracias de nuevo.

Miller CM

]]>
By: Dave Evans https://randomnerdtutorials.com/esp32-microsd-card-arduino/#comment-1068972 Mon, 14 Jul 2025 19:21:33 +0000 https://randomnerdtutorials.com/?p=102290#comment-1068972 Can you show how you calculate and decide when is the next time to take a sample. I have seen a lot of examples where people do not properly handle the unsigned long integer return value of the Arduino millis() function.
Best regards,
Dave

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-microsd-card-arduino/#comment-1068813 Mon, 14 Jul 2025 09:17:00 +0000 https://randomnerdtutorials.com/?p=102290#comment-1068813 In reply to Miller Cambindo M..

Hi.
Do you get any information in the Serial Monitor?
Regards,
Sara

]]>
By: Miller Cambindo M. https://randomnerdtutorials.com/esp32-microsd-card-arduino/#comment-1068721 Mon, 14 Jul 2025 03:10:54 +0000 https://randomnerdtutorials.com/?p=102290#comment-1068721 Hola Sara, muchas gracias por dedicar su tiempo a compartir sus conocimientos.
Tengo un problema, adapté el programa para grabar datos de un sensor cada 5 minutos, pero la memoria solo graba 39 datos y se sobre escriben, yo quiero grabar datos hasta que se llene la memoria de 32 Gb.

¿Algún comentario sobre los pocos datos que se graban?

Saludos,

Miller CM

]]>
By: Anand https://randomnerdtutorials.com/esp32-microsd-card-arduino/#comment-1000064 Wed, 15 Jan 2025 11:44:39 +0000 https://randomnerdtutorials.com/?p=102290#comment-1000064 In reply to Sara Santos.

ok

]]>
By: Schuby https://randomnerdtutorials.com/esp32-microsd-card-arduino/#comment-998066 Tue, 07 Jan 2025 14:29:12 +0000 https://randomnerdtutorials.com/?p=102290#comment-998066 In reply to Schuby.

I now know my problem.
I create 2 text files. The first text file has 10 lines with a blank line.
The second text file has 10 lines without a blank line,
so without LF or rather without #13#10

I can read the first file without any problems, but with the second I get a blank line. Until I send another command to the ESP32, now the last line of the file comes.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-microsd-card-arduino/#comment-998018 Tue, 07 Jan 2025 11:47:38 +0000 https://randomnerdtutorials.com/?p=102290#comment-998018 In reply to Peter.

Hi.
What pins are you using for the ESP32-S3?
Do you get any errors?
Regards,
Sara

]]>