Pages: [1]   Go Down
Author Topic: SD_uFAT - Problem  (Read 1168 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 5
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everyone I have an Arduino Duelminove and a MicroSD Module from libelium.
I have just tried to write in a USD Card by using the SD_uFAT code from http://blushingboy.net/p/SDuFAT/ but I have a problem, I can only save the data if I have the
Arduino IDEʼs Serial Monitor open.
Has you see bellow I want to continuous write in the uSD Card when I power supply the sensor board without using the Arduino IDEʼs Serial Monitor
Can you help me?
 
Tanks in Advance.
 
#include "SDuFAT.h"
 
// define the pin that powers up the SD card
#define MEM_PW 8
 
// help string to be sent to the serial port
#define HELP "H help\nL file info\nD delete\nP append string\nW init file and write\nR dump to serial\nA append text\n"
 
void setup()
{
  // on my MicroSD Module the power comes from a digital pin
  // I activate it at all times
  pinMode(MEM_PW, OUTPUT);
  digitalWrite(MEM_PW, HIGH);
  // configure the serial port to command the card and read data
  Serial.begin(19200);
 
}
 
void loop()
{
 
    SD.print("hola.txt","hola caracola\n");
    SD.print("hola.txt","Teste\n");
    Serial.print("Esta Aberta: \n");
 
       
}
Logged

Pages: [1]   Go Up
Jump to: