Forum Software Ferduino code Ethernet w5100 problem

Ethernet w5100 problem  [SOLVED]


Post Number:#1 Post Wed Mar 02, 2016 2:43 pm
Posts: 11
Topics: 2
Solve rating: 0
Joined: Thu Oct 08, 2015 11:58 am
Topics: 2
Age: 41
Location: México City
Gender: Male
National Flag:
Mexico
Hi all,

I'm reviewing the operation of the necessary parts for my controller , even the W5100 ethernet , i loading the last version of the Ferduino Web Control to my MEGA 2560 but It does not work in the network...

I have just connected the module arduino and W5100 , to prevent further complications
and then go connected the rest of the parts.


After some tests, it is likely that the libraries that are included with the code , are not correct, or i'll missing something.


I followed these instructions

viewtopic.php?f=24&t=36

viewtopic.php?f=8&t=266



just for a reference...

if I charge the mega code 2560 and connect the module W5100 together with the adjustments mentioned in the tutorial (viewtopic.php?f=8&t=34) , you should obtain a reply and should work without need to connect the rest of the part???

so sorry for the stupid questions , but I would like to properly understand the controller.

Best Regards.

Post Number:#2 Post Wed Mar 02, 2016 2: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!


Do you have an ethernet module without SD card slot 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:#3 Post Wed Mar 02, 2016 3:07 pm
Posts: 11
Topics: 2
Solve rating: 0
Joined: Thu Oct 08, 2015 11:58 am
Topics: 2
Age: 41
Location: México City
Gender: Male
National Flag:
Mexico
Hi Fernando, thanks for the quick reply,

yes, I have it, and try to both, without positive response.

although, I read somewhere that the module enc28j60 is no longer supported, or am I wrong ????

Best Regards.

Post Number:#4 Post Wed Mar 02, 2016 3:29 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

Yes, the support for ENC28J60 was abandoned.

Firstly connect only Arduino and ethernet module and try the example "ethernet shield with W5100" available here: viewtopic.php?f=8&t=42

Then if your ethernet module is working fine you can connect the TFT shield and TFT to test the SD card using the code "Create file on SD card" available on link above.

After you can try the example "Simple webserver running on SD card" to test the SD card together with W5100.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#5 Post Wed Mar 02, 2016 3:51 pm
Posts: 11
Topics: 2
Solve rating: 0
Joined: Thu Oct 08, 2015 11:58 am
Topics: 2
Age: 41
Location: México City
Gender: Male
National Flag:
Mexico
done...

i'll test the Mega 2560 + W5100 + Ethernet shield with W5100 by FernandoGarcia code

and the answer in Serial Monitor are:

"server is at 255.255.255.255"

the configure ip acording to my network are 10.0.1.177

something bad...

i'm thing is the library, because if i use a new library whith the basic example, they work, but if i use the library whith ferduino web control package, does not work properly...

if i try to put the Ethernet shield with W5100 by FernandoGarcia code whith the new library and upload to the mega 2560, then IDE send an Error.

Post Number:#6 Post Wed Mar 02, 2016 3:59 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

You SHOULD use the library available in my Github.

Are you connecting CS pin on module to Arduino pin 10?

Are you doing some bridge between pin 10 and 53?
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#7 Post Wed Mar 02, 2016 4:15 pm
Posts: 11
Topics: 2
Solve rating: 0
Joined: Thu Oct 08, 2015 11:58 am
Topics: 2
Age: 41
Location: México City
Gender: Male
National Flag:
Mexico
YES, the library on the Github are used for this , the other was only to certify that the module will work properly..

the answer to the Serial Monitor with that library are wrong

"Server is at 255.255.255.255"

And

Yes, i try the configuration with the bridge between pin 10 and 53 just like this post viewtopic.php?f=24&t=36

i test the bridge between CS and pin 10 with the Enc28J60 more late
Last edited by Diego Villanueva on Wed Mar 02, 2016 4:23 pm, edited 1 time in total.

Post Number:#8 Post Wed Mar 02, 2016 4:23 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

To ethernet module I told to connect on this way without any bridge between pin 10 and 53.

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

Post Number:#9 Post Wed Mar 02, 2016 4:28 pm
Posts: 11
Topics: 2
Solve rating: 0
Joined: Thu Oct 08, 2015 11:58 am
Topics: 2
Age: 41
Location: México City
Gender: Male
National Flag:
Mexico
o.k i understand ,

I will make the corresponding test .

I imagine that in the sample code will have to change the pin 53 by 10 , right ????

Post Number:#10 Post Wed Mar 02, 2016 4:32 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

The pin 10 is for LEDs not ethernet or SD card.

Change only the IP on first code.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#11 Post Sun Mar 06, 2016 10:41 am
Posts: 11
Topics: 2
Solve rating: 0
Joined: Thu Oct 08, 2015 11:58 am
Topics: 2
Age: 41
Location: México City
Gender: Male
National Flag:
Mexico
Hi Fernando,

Sorry for the late answer ...

After some tests, unsuccessfully, i decided to return the basic troubleshooting,

Clean all libraries, reinstall the Arduino IDE, reconfigure a clean code for ferduino web control,without some positive progress.

But apparently the right solution to solve my problem, was to clean the EEPROM of Arduino Mega 2560 with the next code ...

/*
 * EEPROM Clear
 *
 * Sets all of the bytes of the EEPROM to 0.
 * This example code is in the public domain.

 */

#include <EEPROM.h>

void setup()
{
  // write a 0 to all 512 bytes of the EEPROM
  for (int i = 0; i < 4096; i++)
    EEPROM.write(i, 0);
     
  // turn the LED on when we're done
  digitalWrite(13, HIGH);
}

void loop()
{
}





And now is working perfectly the network card :D

thanks for your support

Post Number:#12 Post Sun Mar 06, 2016 11:39 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!

It no makes sense to me because Ferduino code clears the EEPROM automatically on first boot but I'm glad that the problem was solved.

Best regards.
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