Hello all
I just received my W5100 ethernet shield + MicroSD.
Here in the picture:
My board is a mega 1280.
First thing strange:
For the card reader, normally for this kind of shield, the ChipSelect is 4 and, no way to make it work.
After some research, I saw that some shields card reader used the PIN 8.
I tested and the miracle :), it works.
So I decided to go to the function and the ethernet ... : 0: smiley-smiley :: roll-blue-zip: = (.
From what I read, the CS 10 and 53 for the uno for the mega.
So I tried with 10, with 53 post and nothing works.
My shield does not want to assign a correct IP.
Here is my code:
#include <SPI.h>
#include <Ethernet.h>
byte mac[] = {
** 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };**
IPAddress ip(192,168,1, 55);
void setup() {
** pinMode(53, OUTPUT);**
** digitalWrite(53,HIGH);**
** delay(1000);**
** Serial.begin(9600);**
** Ethernet.begin(mac, ip);**
** // print your local IP address:**
** Serial.print("My IP address: ");**
** ip = Ethernet.localIP();**
** for (byte thisByte = 0; thisByte < 4; thisByte++) {**
** // print the value of each byte of the IP address:**
** Serial.print(ip[thisByte], DEC);**
** Serial.print(".");**
** }**
** Serial.println();**
}
void loop() {
}
I tried to mount the drive has PIN8 LOW in case but nothing changes.
Always the same thing: My IP address: 255.255.255.255.
I said that on my shield he had not the MAC @ Stickers but apparently a new shield on there is no predefined MAC @.
I need light, if someone can help me.
thank you
FRENCH :
Bonjour a tous
Je viens juste de recevoir mon shield W5100 ethernet+MicroSD .
Cela fais maintenant 2 jours que je galere. Le voici en photo :
Ma board est une mega 1280.
Premiere chose louche :
Pour le lecteur de carte, normalement, pour ce genre de shield, le ChipSelect est 4 et la , pas moyen de le faire marcher.
Apres quelques recherche, j'ai vue que certains shields lecteur de carte utilisés la PIN 8.
J'ai testé et la miracle :), ça marche.
J'ai donc decidé de passer a la fonction ethernet et la ... :0
=( .
D’après ce que j'ai pu lire, le CS est 10 pour le uno et 53 pour le mega.
J'ai donc tenté avec 10, après avec 53 et rien ne fonctionne.
Mon shield ne veut pas s'affecter une IP correct.
Voici mon code :
#include <SPI.h>
#include <Ethernet.h>
byte mac[] = {
** 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };**
IPAddress ip(192,168,1, 55);
void setup() {
** pinMode(53, OUTPUT);**
** digitalWrite(53,HIGH);**
** delay(1000);**
** Serial.begin(9600);**
** Ethernet.begin(mac, ip);**
** // print your local IP address:**
** Serial.print("My IP address: ");**
** ip = Ethernet.localIP();**
** for (byte thisByte = 0; thisByte < 4; thisByte++) {**
** // print the value of each byte of the IP address:**
** Serial.print(ip[thisByte], DEC);**
** Serial.print(".");**
** }**
** Serial.println();**
}
void loop() {
}
J'ai essayé aussi de mettre la PIN8 du lecteur a LOW au cas où mais rien ne change.
Toujours la meme chose : My IP address: 255.255.255.255.
Je précise que sur mon shield il n'y avais pas l'@ MAC sur un Stickers mais apparemment sur les nouveau shield il n'y a pas d'@ MAC prédéfinie.
J'ai besoin de lumière, si quelqu'un peux m'aider .
Merci