Show Posts
Pages: 1 2 [3]
31  Using Arduino / Networking, Protocols, and Devices / Re: ENC28J60 + Arduino = FAIL!!! on: December 26, 2012, 02:42:32 pm
I try to go to the url - but I figured I needed parameters to get this working. Some examples I found needed parameters to work.
I'm new to ethernet, just trying out different librarys and programs, seeing what will work best for me. So far this library has been the only one that did anything at all.

When I open the serial window, I get the start setup-end setup messages, but when I try to access the webserver things go all weird.
Quote
SStart Setup
END Setup
Req*WÉсSetup
END Setup
Req*WÉсSetup
END Setup
Re¹*WÉсSetup
END kE…ÉсSetup
ENDkE…ÉсSetup
ENDkE…ÉсSetup
END Setup
Re¹*WÉсSetup

I included my modified code:

Code:
#include "etherShield.h"
#include "ETHER_28J60.h"
int LED[8] = {2,3,4,5,6,7,8,9};
static uint8_t mac[6] = {0x54, 0x55, 0x58, 0x10, 0x00, 0x24};   // this just needs to be unique for your network,
static uint8_t ip[4] = {192, 168, 1, 15}; // IP address for the webserver
static uint16_t port = 80; // Use port 80 - the standard for HTTP
ETHER_28J60 e;

void setup()
{
                                                                        Serial.begin(9600);
                                                                        Serial.println("Start Setup");
  e.setup(mac, ip, port);
  for(int x=0;x<8;x++)
  {
    pinMode(LED[x],OUTPUT);
    digitalWrite(LED[x],LOW);
    delay(200);
  }
                                                                        Serial.println("END Setup");
 
}


void loop()
{
  char* params;
  char buff[8];
  if (params = e.serviceRequest())
  {
                                                                        Serial.println("Request");
    e.print("<h1>Arduino Web Remote</h1>\n");
    for(int x = 0; x < 10; x++)
    {
      sprintf(buff, "?%d", x);
                                                                        Serial.println(buff);
      if (strcmp(params, buff) == 0)
      {
        if(digitalRead(LED[x]) == HIGH)
          digitalWrite(LED[x], LOW);
        else
          digitalWrite(LED[x], HIGH);
      }
      if(digitalRead(LED[x]) == HIGH)
      {
        e.print("<a href='?");
        e.print(x);
        e.print("'><button style='border: 1px solid #ff0000; border-left: 10px solid #ff0000' type='button'>LED");
        e.print(x);
        e.print(" IS ON</button></a>\n");
      }
      else
      {
        e.print("<a href='?");
        e.print(x);
        e.print("'><button style='border: 1px solid #000; border-left: 10px solid #000' type='button'>LED");
        e.print(x);
        e.print(" IS OFF</button></a>\n");
      }
    }
    e.respond();
  }
}

32  Using Arduino / Networking, Protocols, and Devices / Re: ENC28J60 + Arduino = FAIL!!! on: December 26, 2012, 01:43:45 pm
Hi, I tried your code and it doesn't work for me - I think it even crashes the arduino.
I think you are using a mega? I tried it on a uno, I changed the output pins, as the enc module is on pins 10 to 13.

The startup goes ok - but as soon as I try to access the server, things get all weird. Lots of garbage on the serial port, and the page never completes loading. What url do you use to access it?
33  Topics / Home Automation and Networked Objects / Re: arduino web thermostat controlled with android phone on: December 02, 2012, 10:39:48 am
Nice - thanks for sharing
what exactly do the relays hook up to and what do they do?
This could be different for a lot of heating systems, and it is the core of your whole idea.
34  Forum 2005-2010 (read only) / Interfacing / Re: Beta version of GLCD library version 3 on: December 17, 2010, 11:25:24 am
I am just getting into arduinos. I bought a kit with a glcd after I read it was well supported and saw the demo running on it (on youtube)

I want to thank the people behind this library, from what i read so far it seems to be well documented so a complete newbie (like me) can get into it.

Main thing I am missing for the projects I have in mind is touch screen. Plenty to be found on ebay, but I don't think they are supported (yet).
35  Forum 2005-2010 (read only) / Exhibition / Re: Arduino controlled CNC Miller on: December 18, 2010, 04:21:45 pm
Awesome! Thanks for sharing!
I am just getting into arduino, but I will definately bookmark your page for future reference.
Very nice project!
Pages: 1 2 [3]