<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Arduino Web-based Live Gauges</title>
	<atom:link href="http://www.nerdybynature.com/index.php/2009/07/arduino-web-based-live-gauges/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nerdybynature.com/index.php/2009/07/arduino-web-based-live-gauges/</link>
	<description>Pull up your high-water pants, strap on your suspenders and push your glasses up the bridge of your nose...</description>
	<lastBuildDate>Sun, 04 Jul 2010 23:42:51 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dan</title>
		<link>http://www.nerdybynature.com/index.php/2009/07/arduino-web-based-live-gauges/comment-page-1/#comment-294</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Thu, 17 Dec 2009 19:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdybynature.com/?p=230#comment-294</guid>
		<description>Marcos,

I noticed you changed the port that the Arduino server is listening on. If you would rather have it listen on port 23 instead of 80, you will need to make a change to the PHP code so it looks for the arduino on the correct port. Hopefully that helps!

Dan</description>
		<content:encoded><![CDATA[<p>Marcos,</p>
<p>I noticed you changed the port that the Arduino server is listening on. If you would rather have it listen on port 23 instead of 80, you will need to make a change to the PHP code so it looks for the arduino on the correct port. Hopefully that helps!</p>
<p>Dan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcos</title>
		<link>http://www.nerdybynature.com/index.php/2009/07/arduino-web-based-live-gauges/comment-page-1/#comment-292</link>
		<dc:creator>Marcos</dc:creator>
		<pubDate>Wed, 16 Dec 2009 16:40:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdybynature.com/?p=230#comment-292</guid>
		<description>Dan, mu ethernetshield has arrived. I tryed to folow your tutorial but it didn´t work.

However I folowed another example and worked fine.

Is there any kind of test that could I do?


Here is the code that worked:
Upload to arduino and browse the indicated IP (you can change to fit better your network)


// you can change this line if you want to serve, for example, XML or some other content type
#define HTTP_HEADER &quot;HTTP/1.0 200 OK\r\nServer: arduino\r\nContent-Type: text/html\r\n\r\n&quot;

void setup(){
  setupEthernet(&quot;010.000.000.011&quot;, 80);   // Arduino IP 10.0.0.11
}

void loop(){

  //put your code here 
   
  // then check for requests, and if so, serve the webpage  
  if (ethernetRequest()){
    writeHeader();    
    writePage(&quot;Seja bem vindo ao Arduino!&quot;);     
    writePage(&quot;Valores analogicos que estou lendo:&quot;);     
    for (int i = 0; i &lt; 6; i++)
    {
      writePage(&quot;&quot;);
      writePage(analogRead(i));
    }
    servePage();
  }
}



Here is your example. See if do I have to make some change, please. The IP I need to use is 10.0.0.11 (255.0.0.0):

// Arduino_live_gauge
// =======================================================================================
// This sketch takes puts the information on A5 out through the ethernet connection when
// there is a connection on port 23. There is a corresponding script that connects, then
// displays the information in a gauge via PHP and Open Flash Gauges 
// (http://www.digitaldarknet.net/flash/).
//
// Written By: Dan Wagoner - www.nerdybynature.com
// Date: 07/26/2009

#include 
#include 
#include 

//LED de teste
int LED = 7;


// define ethernet properties

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
//byte ip[] = { 192, 168, 1, 10 };
byte ip[] = { 10, 0, 0, 11 };  //ip que eu escolhi
byte gateway[] = { 10, 0, 0, 138};  //gateway
//byte subnet[] = { 255, 255, 255, 0};
byte subnet[] = { 255, 0, 0, 0};  //mascara da minha rede
Server server = Server(23);     // listen on port 23
//Server server = Server(80);      // listen on port 80



void setup()
{
  pinMode( 5, INPUT );
  pinMode( LED, OUTPUT); //pino do LED
  Serial.begin(9600);
  Ethernet.begin(mac, ip, gateway, subnet);
  server.begin();
  delay(1000);
}

void loop(){

    //pisca o led pra testar se o código está ok    
    digitalWrite (LED, HIGH);		
    delay(1000);
    digitalWrite (LED, LOW);		
    delay(1000);
  

  Client client = server.available();
  if (client){
    client.print(analogRead(5));
    Serial.println(analogRead(5));
    delay(200);
    client.stop();
    Ethernet.begin(mac, ip, gateway, subnet);
  }
}</description>
		<content:encoded><![CDATA[<p>Dan, mu ethernetshield has arrived. I tryed to folow your tutorial but it didn´t work.</p>
<p>However I folowed another example and worked fine.</p>
<p>Is there any kind of test that could I do?</p>
<p>Here is the code that worked:<br />
Upload to arduino and browse the indicated IP (you can change to fit better your network)</p>
<p>// you can change this line if you want to serve, for example, XML or some other content type<br />
#define HTTP_HEADER &#8220;HTTP/1.0 200 OK\r\nServer: arduino\r\nContent-Type: text/html\r\n\r\n&#8221;</p>
<p>void setup(){<br />
  setupEthernet(&#8221;010.000.000.011&#8243;, 80);   // Arduino IP 10.0.0.11<br />
}</p>
<p>void loop(){</p>
<p>  //put your code here </p>
<p>  // then check for requests, and if so, serve the webpage<br />
  if (ethernetRequest()){<br />
    writeHeader();<br />
    writePage(&#8221;Seja bem vindo ao Arduino!&#8221;);<br />
    writePage(&#8221;Valores analogicos que estou lendo:&#8221;);<br />
    for (int i = 0; i &lt; 6; i++)<br />
    {<br />
      writePage(&quot;&#8221;);<br />
      writePage(analogRead(i));<br />
    }<br />
    servePage();<br />
  }<br />
}</p>
<p>Here is your example. See if do I have to make some change, please. The IP I need to use is 10.0.0.11 (255.0.0.0):</p>
<p>// Arduino_live_gauge<br />
// =======================================================================================<br />
// This sketch takes puts the information on A5 out through the ethernet connection when<br />
// there is a connection on port 23. There is a corresponding script that connects, then<br />
// displays the information in a gauge via PHP and Open Flash Gauges<br />
// (<a href="http://www.digitaldarknet.net/flash/)" rel="nofollow">http://www.digitaldarknet.net/flash/)</a>.<br />
//<br />
// Written By: Dan Wagoner &#8211; <a href="http://www.nerdybynature.com" rel="nofollow">http://www.nerdybynature.com</a><br />
// Date: 07/26/2009</p>
<p>#include<br />
#include<br />
#include </p>
<p>//LED de teste<br />
int LED = 7;</p>
<p>// define ethernet properties</p>
<p>byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };<br />
//byte ip[] = { 192, 168, 1, 10 };<br />
byte ip[] = { 10, 0, 0, 11 };  //ip que eu escolhi<br />
byte gateway[] = { 10, 0, 0, 138};  //gateway<br />
//byte subnet[] = { 255, 255, 255, 0};<br />
byte subnet[] = { 255, 0, 0, 0};  //mascara da minha rede<br />
Server server = Server(23);     // listen on port 23<br />
//Server server = Server(80);      // listen on port 80</p>
<p>void setup()<br />
{<br />
  pinMode( 5, INPUT );<br />
  pinMode( LED, OUTPUT); //pino do LED<br />
  Serial.begin(9600);<br />
  Ethernet.begin(mac, ip, gateway, subnet);<br />
  server.begin();<br />
  delay(1000);<br />
}</p>
<p>void loop(){</p>
<p>    //pisca o led pra testar se o código está ok<br />
    digitalWrite (LED, HIGH);<br />
    delay(1000);<br />
    digitalWrite (LED, LOW);<br />
    delay(1000);</p>
<p>  Client client = server.available();<br />
  if (client){<br />
    client.print(analogRead(5));<br />
    Serial.println(analogRead(5));<br />
    delay(200);<br />
    client.stop();<br />
    Ethernet.begin(mac, ip, gateway, subnet);<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Magicbuss</title>
		<link>http://www.nerdybynature.com/index.php/2009/07/arduino-web-based-live-gauges/comment-page-1/#comment-289</link>
		<dc:creator>Magicbuss</dc:creator>
		<pubDate>Mon, 14 Dec 2009 20:49:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdybynature.com/?p=230#comment-289</guid>
		<description>I am having trouble.  I can see the value of Pin five when I go staight to my Arduino&#039;s IP address and port 80.  However, the Flash Gauge doesn&#039;t work.  Needle pegged at zero.  I noticed in your sample video, there are data values for the red, yellow green zones on the meter, in my site there is just 0.0</description>
		<content:encoded><![CDATA[<p>I am having trouble.  I can see the value of Pin five when I go staight to my Arduino&#8217;s IP address and port 80.  However, the Flash Gauge doesn&#8217;t work.  Needle pegged at zero.  I noticed in your sample video, there are data values for the red, yellow green zones on the meter, in my site there is just 0.0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: squartochi</title>
		<link>http://www.nerdybynature.com/index.php/2009/07/arduino-web-based-live-gauges/comment-page-1/#comment-285</link>
		<dc:creator>squartochi</dc:creator>
		<pubDate>Sat, 28 Nov 2009 15:11:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdybynature.com/?p=230#comment-285</guid>
		<description>Is it possible to use multiple gauges on one page?</description>
		<content:encoded><![CDATA[<p>Is it possible to use multiple gauges on one page?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.nerdybynature.com/index.php/2009/07/arduino-web-based-live-gauges/comment-page-1/#comment-279</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 24 Nov 2009 12:41:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdybynature.com/?p=230#comment-279</guid>
		<description>No problem, I&#039;m just glad you got it up and running! Good job!</description>
		<content:encoded><![CDATA[<p>No problem, I&#8217;m just glad you got it up and running! Good job!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: squartochi</title>
		<link>http://www.nerdybynature.com/index.php/2009/07/arduino-web-based-live-gauges/comment-page-1/#comment-278</link>
		<dc:creator>squartochi</dc:creator>
		<pubDate>Tue, 24 Nov 2009 02:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdybynature.com/?p=230#comment-278</guid>
		<description>Sorry for all the posts, but I was able to get it going on a windows box. This is great! Thanks again</description>
		<content:encoded><![CDATA[<p>Sorry for all the posts, but I was able to get it going on a windows box. This is great! Thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: squartochi</title>
		<link>http://www.nerdybynature.com/index.php/2009/07/arduino-web-based-live-gauges/comment-page-1/#comment-277</link>
		<dc:creator>squartochi</dc:creator>
		<pubDate>Mon, 23 Nov 2009 16:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdybynature.com/?p=230#comment-277</guid>
		<description>Hi, Again I have made changes to the permissions and got a bit more working but the data is not making the bridge. If I go to index the meter shows up no data. If I go directly to the arduino_fetch_output.php I get this output    #!/usr/bin/php -q &amp;value=1023&amp;range=1024  It looks like it,s reading the arduino. So I think I am close. Thanks again, Scott</description>
		<content:encoded><![CDATA[<p>Hi, Again I have made changes to the permissions and got a bit more working but the data is not making the bridge. If I go to index the meter shows up no data. If I go directly to the arduino_fetch_output.php I get this output    #!/usr/bin/php -q &amp;value=1023&amp;range=1024  It looks like it,s reading the arduino. So I think I am close. Thanks again, Scott</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.nerdybynature.com/index.php/2009/07/arduino-web-based-live-gauges/comment-page-1/#comment-276</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 23 Nov 2009 13:37:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdybynature.com/?p=230#comment-276</guid>
		<description>It&#039;s hard to say exactly what&#039;s going on, but assuming you didn&#039;t change the source code, I would check permissions on all of the files/folders. Also, ensure you have the FOG source downloaded and extracted into a subfolder of your index.html called &quot;flash&quot;. Hope that helps!</description>
		<content:encoded><![CDATA[<p>It&#8217;s hard to say exactly what&#8217;s going on, but assuming you didn&#8217;t change the source code, I would check permissions on all of the files/folders. Also, ensure you have the FOG source downloaded and extracted into a subfolder of your index.html called &#8220;flash&#8221;. Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: squartochi</title>
		<link>http://www.nerdybynature.com/index.php/2009/07/arduino-web-based-live-gauges/comment-page-1/#comment-275</link>
		<dc:creator>squartochi</dc:creator>
		<pubDate>Mon, 23 Nov 2009 11:57:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdybynature.com/?p=230#comment-275</guid>
		<description>Hi,

I am so glad I came across your site. I found you by doing a search on you-tube. Well I am starting a project that consists of two temperature sensors a PH probe and a couple digital outs for a aquarium controller. I just began the start up of a server to host the guages. I think I have followed your directions, but all I get is a blank black page. I have Ubuntu running with apache2, PHP5, and java6.

Thanks Again,
Scott</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am so glad I came across your site. I found you by doing a search on you-tube. Well I am starting a project that consists of two temperature sensors a PH probe and a couple digital outs for a aquarium controller. I just began the start up of a server to host the guages. I think I have followed your directions, but all I get is a blank black page. I have Ubuntu running with apache2, PHP5, and java6.</p>
<p>Thanks Again,<br />
Scott</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.nerdybynature.com/index.php/2009/07/arduino-web-based-live-gauges/comment-page-1/#comment-274</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 10 Nov 2009 17:52:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdybynature.com/?p=230#comment-274</guid>
		<description>Marcos...that&#039;s really awesome man! I&#039;m glad you&#039;re getting some practical use out of the code. I&#039;d be REALLY interested in knowing more about your project, so I&#039;ll shoot you an email in a bit. And I&#039;d love if you could post a link to the finished project as well!</description>
		<content:encoded><![CDATA[<p>Marcos&#8230;that&#8217;s really awesome man! I&#8217;m glad you&#8217;re getting some practical use out of the code. I&#8217;d be REALLY interested in knowing more about your project, so I&#8217;ll shoot you an email in a bit. And I&#8217;d love if you could post a link to the finished project as well!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
