Arduino UNO rebooting alone

Asked

Viewed 843 times

1

Good afternoon, I have an Arduino UNO, and a Shield GSM ICOMSAT 1.1 here, was working normally with both, receiving and sending Smss, but when I added a Shield SD Card to generate a Datalogger the Arduino is rebooting alone. So I only tested the SD Card, and it worked perfectly. But the Shield GSM and the Shield SD Card don’t work together. Someone knows why?

Image of the Serial Monitor:

inserir a descrição da imagem aqui

Code Used: Github

Funny that if I comment on that part of the code:

myFile = SD.open("dados.txt", FILE_WRITE);
if (myFile){                                     
  Serial.print("Escrevendo em arquivo...");     //Escreve no arquivo
  myFile.println("hello SD Card Shield!");      //Teste de escrita

  myFile.close();                               //Fecha o arquivo
  Serial.println("Escrita finalizada");         //Informa escrita finalizada
}else{
  Serial.println("Erro ao abrir arquivo");      //Informa que há algum erro
}

Hence the engine does not restart, however, I cannot write the data to the file. txt.

  • Restart errors of Arduino are common when it reaches the limit of the current, in practice, it fails to feed the peripherals and itself, and ends up rebooting. It is possible that when he tries to write in the SD, the Shield demands more current and the Arduino can’t take it. (I’m basing this response on experiments with other peripherals) Try feeding one of the Hields from a different source, and see if the problem persists. (If it’s those Shields that fit, totally, make a jumper out of the pins you need for communication, and put the power in the other 5v supply).

  • Have you even formatted SD in Fat16 or Fat32? Because it only supports these formats. It may also be the issue of excess current, to remove this doubt connect an external source on the Arduine.

  • If using USB power probably the problem is this, use power by jack

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.