Show Posts
Pages: [1]
1  Using Arduino / Storage / Re: SD writer code ultra light on: December 08, 2012, 11:19:45 am
Well well now i'm working with your code, but...

I'm using the LCD shield in this proyect, so the first code i used have this:

Code:
...
pinMode(10, OUTPUT);
if (!SD.begin(4))
...{
***pi 4 and 10 are no connected to LCD shield, and before use Fat16 my code was working smiley-sad ***

Do i need this part? because i read on SDCARD this must to be declared:

Code:
SdCard::init(uint8_t speed, uint8_t [b]chipSelectPin[/b])


Thanks for you help with this! smiley-grin
2  Using Arduino / Storage / Re: SD writer code ultra light on: December 05, 2012, 09:11:15 am
Mr fat16lib:

Check this! "Binary sketch size: 29,932 bytes (of a 32,256 byte maximum)"


Thank you so much!
3  Using Arduino / Storage / Re: SD writer code ultra light on: December 04, 2012, 11:30:16 pm
Two examples:

Code:
#include <SdFat.h>
SdFat sd;
SdFile myFile;

void setup() {

  if (!sd.begin(4, SPI_HALF_SPEED)) sd.initErrorHalt();

  if (!myFile.open("test.txt", O_RDWR | O_CREAT | O_AT_END)) {
    sd.errorHalt("opening test.txt for write failed");
  }
  myFile.println("testing 1, 2, 3.");

  myFile.close();
}

void loop() {
}
10,842 bytes smiley-sad

Code:
#include <SD.h>
File myFile;

void setup(){

   pinMode(10, OUTPUT);
   
  if (!SD.begin(4)) {
    Serial.println("initialization failed!");
  }

  myFile = SD.open("test.txt", FILE_WRITE);

  if (myFile) {
    myFile.println("testing 1, 2, 3.");
    myFile.close();
  }
}

void loop(){
}
12,856 bytes smiley-sad

Thxs y gracias again! smiley-grin
4  Using Arduino / Storage / SD writer code ultra light on: December 04, 2012, 11:13:08 pm
Hello friends!

I need your help. I have 25,142 byte used (of 32,256 byte available) for my code.

So, I need to write on SD a datastream [name, time, value x8] in a .csv file, but just with 7 kb smiley-sad

there's someone can help with this?


Really really thanks for your help! smiley-grin i've tried all day and i cant do it (SD or SdFat)   smiley-cry
5  Using Arduino / Networking, Protocols, and Devices / Re: continuity in SD cover and ICSP pin? on: December 04, 2012, 09:50:12 am
Code:
Starting SD...Failed
Starting w5100...
ok
Setup complete

I've tried SD and SDHC, FAT and FAT32, and nothing's working smiley-sad
6  Using Arduino / Networking, Protocols, and Devices / Re: Bad connection? on: December 04, 2012, 09:32:53 am
I'm using this:

LCD: http://dx.com/p/lcd-keypad-shield-for-arduino-duemilanove-lcd-1602-118059

Eth: http://dx.com/p/ethernet-shield-with-wiznet-w5100-ethernet-chip-tf-slot-118061

i've tried all example code from SD and SDFAT libraries.

Thanks
7  International / Hardware / ICSP y SD en corto? on: December 04, 2012, 09:28:24 am
Estimados:

Junto con saludarlos, les envío la siguiente pregunta que nacio después de trabajar con LCD + Ethernet c/SD

Ocurre que logre que funcionara todo el proyecto aunque habían incompatibilidades entre los shield, pero hay algo que aún no logro correr..

La SD no guara/lee. Como es un Shield Chino quizás sea por su fabricación, pero dentro de las pruebas que les hice noté que un pin del icsp esta conectado con el cover metálico de la SD.

Esto esta correcto o we have a problem?

Gracias por su pronta ayuda!
8  Using Arduino / Networking, Protocols, and Devices / continuity in SD cover and ICSP pin? on: December 04, 2012, 09:24:18 am
Hello friends!

I'm working in a proyect with LCD + Ethernet w/SD, but i had a little problem smiley-sad

Everything is worrking, but i cant save/read date in my SD card. I know, my shield is from China and nobody likes it
anyway, i realized that one of the ICSP pin is connect with the SD cover...

is it connect or is it a manufactured failure?!

Please help, i need to know this to my thesis!

Thanks for you help!!!
Pages: [1]