Arduino Ethernet Shield com conector para SD Card

Caros, Amigos

Alguem sabe onde encontro um tutorial basico para iniciante em Arduino Ethernet?

no google ;)

Muito obrigado vc está certo, vou bucar lá mesmo e o pior não tinha pensado nisso obrigado muito obrigado pela ajuda, caso vc tb tenha duvidas sobre esse assunto assim que tiver algo claro testado por mim, te passarei… perque imagino que vc também não saiba nada Zé Mane

Esta pagina do site do Arduino tem diversos tutoriais, inclusive do Ethernet shield.

hauehauheauhe sempre tem um cara com tempo sobrando pra encher né!

Veja, iniciei esse tópico a um tempo, mas tem bastante informação por la também =)

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1279552147

Obrigado pelas diacas…

Amigo gostarei de mais uma ajuda estou tentnado compilar esse código mas não consigo o objetivo é acionar led’s via web usando o shield ethernet e nas pesquisas encontrei esse site que me audaria nisso : http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1281474310 e copie pra testar o código:

//zoomkat 5-24-10
#include <SPI.h>
#include <WString.h>
#include <Ethernet.h>

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //physical mac address
byte ip[] = { 192, 168, 0, 12 }; // ip in lan
byte gateway[] = { 192, 168, 0, 5 }; // internet access via router
byte subnet[] = { 255, 255, 255, 0 }; //subnet mask
Server server(84); //server port

String readString = String(100); //string for fetching data from address

///////////////////////
 String teststring = String(100);
 String finalstring = String(100);
 String flag = String(2);
 int ind1 = 0;
 int ind2 = 0;
 int pos = 0;
 //////////////////////

void setup(){

//start Ethernet
Ethernet.begin(mac, ip, gateway, subnet);
server.begin();

//enable serial data print
Serial.begin(9600); }

void loop(){
// Create a client connection
Client client = server.available();
if (client) {
while (client.connected()) {
if (client.available()) {
char c = client.read();

//read char by char HTTP request
if (readString.length() < 100) {

//store characters to string
readString.append(c);
}

//if HTTP request has ended
if (c == '\n') {

///////////////
//Serial.println(readString);
//readString looks like "GET /?-0p1555-1p500t1000 HTTP/1.1"

  if(readString.contains("-")) { //test for servo control sring
  readString.replace('-', '#');
  pos = readString.length(); //capture string length
  //find start of servo command string (#)
  ind1 = readString.indexOf('#');
  //capture front part of command string
  teststring = readString.substring(ind1, pos);
  //locate the end of the command string
  ind2 = teststring.indexOf(' ');
  //capturing the servo command string from readString
  finalstring = readString.substring(ind1, ind2+ind1);
  //print "finalstring" to com port;
  Serial.println(finalstring); //print string with CR
    }
  ////////////////////////
  //GET /?Slidervalue0=1800&Submit=Sub+0 HTTP/1.1
  if(readString.contains("Slidervalue")) {
  ind1 = readString.indexOf('u');
  ind2 = readString.indexOf('&');
  finalstring = readString.substring(ind1+1, ind2);
  finalstring.replace('e', '#');
  finalstring.replace('=', 'p');
  Serial.println(finalstring);
  }
  ///////////////////
  
  //now output HTML data header
  client.println("HTTP/1.1 204 Zoomkat");
  client.println();
  client.println();
  delay(1);
  //stopping client
client.stop();

/////////////////////
//clearing string for next read
readString="";
teststring="";
finalstring="";
  
}}}}}

Mas quando tento compilar ocorre esse erro ralacionado a biblioteca WString.h mas ela está na pasta do ide arduino o erro é esse:

sketch_oct06a.cpp: In function ‘void loop()’:
sketch_oct06a:43: error: ‘class String’ has no member named ‘append’
sketch_oct06a:53: error: ‘class String’ has no member named ‘contains’
sketch_oct06a:69: error: ‘class String’ has no member named ‘contains’

Esse erro já ocorreu outra vezes mas não tou conseguindo resolver alguem sabe como consigo resolver isso???

//zoomkat 5-24-10
#include <SPI.h>
//#include <WString.h>
#include <Ethernet.h>
//#include<stdio.h>

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //physical mac address
byte ip[] = { 192, 168, 0, 12 }; // ip in lan
byte gateway[] = { 192, 168, 0, 5 }; // internet access via router
byte subnet[] = { 255, 255, 255, 0 }; //subnet mask
Server server(84); //server port

String readString = String(100); //string for fetching data from address

///////////////////////
 String teststring = String(100);
 String finalstring = String(100);
 String flag = String(2);
 int ind1 = 0;
 int ind2 = 0;
 int pos = 0;
 //////////////////////

void setup(){

//start Ethernet
Ethernet.begin(mac, ip, gateway, subnet);
server.begin();

//enable serial data print
Serial.begin(9600); }

void loop(){
// Create a client connection
Client client = server.available();
if (client) {
while (client.connected()) {
if (client.available()) {
char c = client.read();

//read char by char HTTP request
if (readString.length() < 100) {

//store characters to string
readString.concat(c);
}

//if HTTP request has ended
if (c == '\n') {

///////////////
//Serial.println(readString);
//readString looks like "GET /?-0p1555-1p500t1000 HTTP/1.1"

  if(readString.indexOf("-") != -1 ) { //test for servo control sring
  readString.replace('-', '#');
  pos = readString.length(); //capture string length
  //find start of servo command string (#)
  ind1 = readString.indexOf('#');
  //capture front part of command string
  teststring = readString.substring(ind1, pos);
  //locate the end of the command string
  ind2 = teststring.indexOf(' ');
  //capturing the servo command string from readString
  finalstring = readString.substring(ind1, ind2+ind1);
  //print "finalstring" to com port;
  Serial.println(finalstring); //print string with CR
    }
  ////////////////////////
  //GET /?Slidervalue0=1800&Submit=Sub+0 HTTP/1.1
  if(readString.indexOf("Slidervalue") != -1 ) {
  ind1 = readString.indexOf('u');
  ind2 = readString.indexOf('&');
  finalstring = readString.substring(ind1+1, ind2);
  finalstring.replace('e', '#');
  finalstring.replace('=', 'p');
  Serial.println(finalstring);
  }
  ///////////////////

  //now output HTML data header
  client.println("HTTP/1.1 204 Zoomkat");
  client.println();
  client.println();
  delay(1);
  //stopping client
client.stop();

/////////////////////
//clearing string for next read
readString="";
teststring="";
finalstring="";

}}}}}

Acredito que assim funcionará… modifiquei as linhas que estão dando erro e compilou de boa.

O que acontece, é que essa lib (Wstring) foi incluída no core a partir da versão 19, então algumas classes e métodos mudaram.

sketch_oct06a:43: error: 'class String' has no member named 'append'

http://arduino.cc/en/Tutorial/StringAppendOperator

sketch_oct06a:53: error: 'class String' has no member named 'contains' sketch_oct06a:69: error: 'class String' has no member named 'contains'

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1284029115

Obrigado amigos, instalei a versão 0.20 e resolvel, mas ficou entendido sobre as bibliotecas