Description
ENC28J60 est un module Ethernet compact avec le contrôleur Ethernet ENC28J60, le connecteur LAN et l'interface SPI pour le microcontrôleur, Arduino, AVR, Pic. Connectez votre projet au réseau et à Internet, exécutez un serveur Web ou un client Web.
A utiliser avec le Carte éther bibliothèque.
Spécifications ENC28J60 :
– Fonctionne sur 3.3V.
– Contrôleur Ethernet : ENC28J60 avec tampon interne 8K.
– Vitesse de connexion : 10/100Mo.
– Connexion à votre Arduino via SPI.
– Dimensions : 56 mm x 34 mm.
Connectez-vous à Arduino UNO :
VCC – 3.3 V
Masse – Masse
SCK – Broche 13
DONC – Broche 12
SI – Broche 11
CS – Pin 8 # Sélectionnable avec la fonction ether.begin()
Exemple de code Arduino :
A utiliser avec le Carte éther bibliothèque math
// Demo using DHCP and DNS to perform a web client request.
// 2011-06-08 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php
#include <EtherCard.h>
// ethernet interface mac address, must be unique on the LAN
static byte mymac[] = { 0x74,0x69,0x69,0x2D,0x30,0x31 };
byte Ethernet::buffer[700];
static uint32_t timer;
char website[] PROGMEM = "www.google.com";
// called when the client request is complete
static void my_callback (byte status, word off, word len) {
Serial.println(">>>");
Ethernet::buffer[off+300] = 0;
Serial.print((const char*) Ethernet::buffer + off);
Serial.println("...");
}
void setup () {
Serial.begin(57600);
Serial.println("\n[webClient]");
if (ether.begin(sizeof Ethernet::buffer, mymac) == 0)
Serial.println( "Failed to access Ethernet controller");
if (!ether.dhcpSetup())
Serial.println("DHCP failed");
ether.printIp("IP: ", ether.myip);
ether.printIp("GW: ", ether.gwip);
ether.printIp("DNS: ", ether.dnsip);
if (!ether.dnsLookup(website))
Serial.println("DNS failed");
ether.printIp("SRV: ", ether.hisip);
}
void loop () {
ether.packetLoop(ether.packetReceive());
if (millis() > timer) {
timer = millis() + 5000;
Serial.println();
Serial.print("<<< REQ ");
ether.browseUrl(PSTR("/foo/"), "bar", website, my_callback);
}
}
Seuls les clients connectés ayant acheté ce produit peuvent rédiger un avis.
Expédition aux Pays-Bas
Ce produit est livré par courrier postal PostNL dans une enveloppe à bulles.- 3.45 € de frais de port pour les commandes inférieures à 25 €.
- 2.95 € de frais de port pour les commandes comprises entre 25 et 45 €.
- Les commandes supérieures à 45 € seront acceptées
gratuitement envoyé par la poste aux lettres PostNL.
Commandé avant 16h30 les jours ouvrables, expédié le jour même !
Cliquez ici pour connaître les coûts en dehors des Pays-Bas.
Avis
Er zijn nog geen Testimonials.