Forum Software Ferduino code Problem with sd card

Problem with sd card


Post Number:#1 Post Sun Feb 22, 2015 6:12 pm
Posts: 8
Topics: 1
Solve rating: 0
Joined: Sat Feb 21, 2015 6:32 pm
Topics: 1
Age: 39
Gender: None specified
National Flag:
Italy
Hi fernando,
I uploaded the ferduino with ethernet code on board. It's right. When I open Serial Monitor I read this

Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD
Please insert a SD CARD


I haven't any sd card.

how can I Do?

thanks

Post Number:#2 Post Sun Feb 22, 2015 8:59 pm
Posts: 274
Topics: 6
Images: 46
Solve rating: 0
Joined: Mon Sep 08, 2014 1:35 am
Topics: 6
Age: 42
Location: Aurora
Gender: Male
National Flag:
United States of America

you have to have 1 or 2 GB sd card for Ferduino with webcontrol that is where the IP address is and other data for graft is stored.
Happy reefing to all.
Christopher Kindig

Post Number:#3 Post Sun Feb 22, 2015 11:14 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!
Welcome Matteo!
The SD card is mandatorily otherwise you will have problem with ethernet.
The IP isn't stored on SD card.
The problem is related with conflict between SPI devices, when a device doesn't receive the information the data stay on BUS so, the information mixed and others SPI device doesn't work fine.
It happens especially with w5100 that get wrong IP or stops.
Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#4 Post Mon Feb 23, 2015 9:36 am
Posts: 8
Topics: 1
Solve rating: 0
Joined: Sat Feb 21, 2015 6:32 pm
Topics: 1
Age: 39
Gender: None specified
National Flag:
Italy
Hi Fernando,
I don't understand where I have to insert the sd card on ferduino board.
I have to buy a arduino ethernet shild too?

How can i link that with ferduino board?

Thanks

Post Number:#5 Post Mon Feb 23, 2015 10:01 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Not, put the SD card on TFT.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#6 Post Mon Feb 23, 2015 11:55 am
Posts: 8
Topics: 1
Solve rating: 0
Joined: Sat Feb 21, 2015 6:32 pm
Topics: 1
Age: 39
Gender: None specified
National Flag:
Italy
Thanks Fernando,

I have a very little knowledge about arduino.

So, i have to buy a LCD ( touch) and a tft shild ? Which kind of LCD and tft do i buy?

Do i need of LCD and tft shild for link ferduino with joyreef? Can i do that with out t house those things?


Thanks

Post Number:#7 Post Mon Feb 23, 2015 12:09 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Please check this topic: viewtopic.php?f=24&t=39

The TFT shield is not needed.

The SD card is needed for dosing pumps and graphs, if you don't want buy a TFT you can not use this functions.

Otherwise buy a SD card module like this:

Image


Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#8 Post Mon Feb 23, 2015 12:57 pm
Posts: 8
Topics: 1
Solve rating: 0
Joined: Sat Feb 21, 2015 6:32 pm
Topics: 1
Age: 39
Gender: None specified
National Flag:
Italy
Hi fernando,
I have some problems with IP, the board somatimes find the right IP sometimes not.
(see the print screen serial monitor below)

screen shot serial monitor IDE

-- RESET CARD --
Ip Server: 192.168.8.99
Free memory: 3868
Free memory: 3868
Free memory: 3868
Free memory: 3868
64.40.8.10
64.40.8.10
64.40.8.10
Free memory: 3868
64.40.8.10
64.40.8.10
Free memory: 3868
Free memory: 3868
Free memory: 3868
Free memory: 3868
Free memory: 3868

-- RESET CARD --
Ip Server: 0.0.0.0
Free memory: 3868
-- RESET CARD --
Ip Server: 0.0.0.0
Free memory: 3868
-- RESET CARD --
Ip Server: 0.0.0.0
Free memory: 3868


when the IP is right, the board work and it is link with joyreef

sometimes the bord suddenly loses the Ip

finally, If i move the board there are three cases

1) the board find the right IP
2) the Board loses the IP
3) the board loses the connection with serial

Can you help me?

thanks
Last edited by Fernando Garcia on Thu Mar 05, 2015 8:19 am, edited 1 time in total.
Reason: Please use tags [code][/code] to post codes here.

Post Number:#9 Post Mon Feb 23, 2015 1:02 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hey guy!

You are doing a big confusion here.

Do you have the TFT or not?
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#10 Post Mon Feb 23, 2015 1:51 pm
Posts: 8
Topics: 1
Solve rating: 0
Joined: Sat Feb 21, 2015 6:32 pm
Topics: 1
Age: 39
Gender: None specified
National Flag:
Italy
Sorry for confusion.

I haven't a tft.

My friend Samuele, Who know arduino code, bypassed the Request of sd card, but the board doesn't jeep the right ip

Post Number:#11 Post Mon Mar 02, 2015 10:31 pm
Posts: 8
Topics: 1
Solve rating: 0
Joined: Sat Feb 21, 2015 6:32 pm
Topics: 1
Age: 39
Gender: None specified
National Flag:
Italy
Hi Fernando,
I bought the tft with sd card . The tft model is ITDB02-3.2WD. I use 1gb sd card.i upload on board utouch calibration code, but i can't calibrate the tft. The LCD monitor print the first page, but when i touch the screen it doesn't change the page. I don't understand Who it workshop in tris way. There are any problems with the code?

Post Number:#12 Post Tue Mar 03, 2015 12:06 am
Posts: 274
Topics: 6
Images: 46
Solve rating: 0
Joined: Mon Sep 08, 2014 1:35 am
Topics: 6
Age: 42
Location: Aurora
Gender: Male
National Flag:
United States of America


Post Number:#13 Post Tue Mar 03, 2015 6:58 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Have you checked this topic?

Are you using this line on code?

UTouch myTouch(7,6,5,4,3);


Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.


Post Number:#15 Post Wed Mar 04, 2015 6:43 pm
Posts: 8
Topics: 1
Solve rating: 0
Joined: Sat Feb 21, 2015 6:32 pm
Topics: 1
Age: 39
Gender: None specified
National Flag:
Italy
Hi guys,
Thanks for your answers. Finally Ferduino works!

Now i have another problem:
At the first loop board run the right ip, but just at the second loop the ip is uncorrect. Sometime right io returns just for one loop.

Sometime when i move board, right ip returns


Thanks

Post Number:#16 Post Wed Mar 04, 2015 7:01 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Are you using a SD card of 1 or GB?

The SD card is working fine? Have tested with examples?

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#17 Post Wed Mar 04, 2015 7:36 pm
Posts: 8
Topics: 1
Solve rating: 0
Joined: Sat Feb 21, 2015 6:32 pm
Topics: 1
Age: 39
Gender: None specified
National Flag:
Italy
i use an 1 gb sd card

yes i have tested.

the serial monitor print this, i added print ip server in the loop code

Ip Server: 192.168.0.25
Free memory: 3831
Ip Server: 0.0.0.0
Free memory: 3831
Ip Server: 0.0.0.0
Free memory: 3831
Ip Server: 0.0.0.0
Free memory: 3831
Ip Server: 0.0.0.0
Free memory: 3831
Ip Server: 64.0.0.0
Free memory: 3831
Ip Server: 0.0.0.0
Last edited by Fernando Garcia on Thu Mar 05, 2015 8:18 am, edited 1 time in total.
Reason: Please use tags [code][/code] to post codes here.

Post Number:#18 Post Thu Mar 05, 2015 8:27 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Put this lines on code again to make sure that the program can find the SD card.

  while(!card.init(SPI_HALF_SPEED, ChipSelect_SD)) // Inicia a comunicação com o cartão SD.
  {
    setFont(LARGE, 255, 0, 0, 0, 0, 0);
    myGLCD.print("PLEASE INSERT A SD CARD.", CENTER, 115);
    Serial.println(F("Please insert a SD CARD"));
  }


Try add a shunt on pad called J1 on bottom side of TFT. Like this:

Image


Try change:

 SPI_HALF_SPEED


To:

SPI_FULL_SPEED


Or:

SPI_QUARTER_SPEED


Try other SD card.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest

cron