Categories

Using the Arduino Ethernet shield as a server

Posted on Tuesday, February 28th, 2012 in tutorials by DP

Luca shows how to turn your Arduino with an Ethernet shield into a server. He goes over how to code your Arduino to handle HTML and HTTP protocols using strings.

I’m going to show you a simple program that prints on serial connection browser‘s requests and answers with a simple HTML page. This program is useful to understand how to use HTTP functions and also to find out which informations a browser sends within the request (you’ll learn how to use those informations in a coming post).

At the bottom of the page he showed an example of page icon usage, for which he used our site. Thanks Luca!

This entry was posted on Tuesday, February 28th, 2012 at 1:00 pm and is filed under tutorials. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

2 Responses to “Using the Arduino Ethernet shield as a server”

  1. bob says:

    Since the Ethernet shied only has 4 connections available, it is not going to be much of a ‘server’ especially since the Arduino is not multithreaded, as such it is only going to deal with 1 connection at a time
    So this cannot be classed as a ‘server’ but rather a single client and master.
    Move along nothing to see here.

    • James Kasper says:

      thanks for the comment bob. so here I am trolling again. Wait, what is it? not much of a server or not a server? 4 connections really? good because I didn’t realize it had that many. I was going to be happy with “get inline and wait your turn”… No it’s ok I just looked it up over here: http://en.wikipedia.org/wiki/Web_server and it doesn’t say what is the minimum connections it only says usually. It says this specifically about load limits:

      A web server (program) has defined load limits, because it can handle only a limited number of concurrent client connections (usually between 2 and 80,000, by default between 500 and 1,000) per IP address (and TCP port) and it can serve only a certain maximum number of requests per second depending on:
      its own settings,
      the HTTP request type,
      whether the content is static or dynamic,
      whether the content is cached, and
      the hardware and software limitations of the OS of the computer on which the web server runs.

      So It can be a server and no one has to rewrite anything. Or leave.
      I have an Arduino Uno Ethernet, a mega, ethernet shield, 328 chip…
      Rock on makers build yourself a “personal webserver” just check out luca and arduino.cc

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • Paul Campbell: I'm old enough that I started programming with punched cards .... each card had a sequence number in the last few characters. A friend once...
  • Ian: test comment on /blog/ page
  • ian: No, that's exactly how it should be :) Sorry about missing names on comments, the theme is being reworked as we speak.
  • J. Peterson: Nice writeup. It looks like some of the formatting for your command examples needs some missing newlines?
  • Geert Jordaens: I'm not sure what kind of licensing I have to add since it is a fairly straight forward implementation of the adaptive Huffman Decoding. For...