<?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 for molen, inc.</title>
	<atom:link href="http://alexmole.co.uk/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexmole.co.uk</link>
	<description></description>
	<lastBuildDate>Thu, 22 Dec 2011 12:49:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on Brighton Mini Maker Faire by molen</title>
		<link>http://alexmole.co.uk/2011/09/brighton-mini-maker-faire/#comment-106</link>
		<dc:creator>molen</dc:creator>
		<pubDate>Thu, 22 Dec 2011 12:49:30 +0000</pubDate>
		<guid isPermaLink="false">http://alexmole.co.uk/?p=59#comment-106</guid>
		<description>Did you remember to add &quot;, 8&quot; when initialising the ethernet library?
I forgot to do that at first and I think that&#039;s what happened to me too...

Instructions here: http://wiki.london.hackspace.org.uk/view/Nanode_Applications#Before_You_Start


edit: actually, looks like that says &quot;version 0&quot;, not &quot;version 7&quot;.
This code worked for me...
&lt;code&gt;
/*
 * Arduino ENC28J60 Ethernet shield/Nanode DHCP client test
 */

#include &quot;EtherShield.h&quot;
#include &quot;NanodeMAC.h&quot;

static uint8_t mymac[6] = { 0x54,0x55,0x58,0x12,0x34,0x56 };

static uint8_t myip[4] = { 0,0,0,0 };
static uint8_t mynetmask[4] = { 0,0,0,0 };

// IP address of the host being queried to contact (IP of the first portion of the URL):
static uint8_t websrvip[4] = { 0, 0, 0, 0 };

// Default gateway. The ip address of your DSL router. It can be set to the same as
// websrvip the case where there is no default GW to access the 
// web server (=web server is on the same lan as this host) 
static uint8_t gwip[4] = { 0,0,0,0};

static uint8_t dnsip[4] = { 0,0,0,0 };
static uint8_t dhcpsvrip[4] = { 0,0,0,0 };

#define DHCPLED 6

// listen port for tcp/www:
#define MYWWWPORT 80

#define BUFFER_SIZE 750
static uint8_t buf[BUFFER_SIZE+1];

EtherShield es=EtherShield();
NanodeMAC mac( mymac );

// Programmable delay for flashing LED
uint16_t delayRate = 0;

void setup() {

  Serial.begin(19200);
  Serial.println(&quot;DHCP Client test&quot;);
  pinMode( DHCPLED, OUTPUT);
  digitalWrite( DHCPLED, HIGH);    // Turn it off

  for( int i=0; i&lt;6; i++ ) {
    Serial.print( mymac[i], HEX );
    Serial.print( i &lt; 5 ? &quot;:&quot; : &quot;&quot; );
  }
  Serial.println();
  
  // Initialise SPI interface
  es.ES_enc28j60SpiInit();

  // initialize enc28j60
  Serial.println(&quot;Init ENC28J60&quot;);
  es.ES_enc28j60Init(mymac,8);

  Serial.println(&quot;Init done&quot;);
  
  Serial.print( &quot;ENC28J60 version &quot; );
  Serial.println( es.ES_enc28j60Revision(), HEX);
  if( es.ES_enc28j60Revision() &lt;= 0 ) {
    Serial.println( &quot;Failed to access ENC28J60&quot;);

    while(1);    // Just loop here
  }
  
  Serial.println(&quot;Requesting IP Addresse&quot;);
  // Get IP Address details
  if( es.allocateIPAddress(buf, BUFFER_SIZE, mymac, 80, myip, mynetmask, gwip, dhcpsvrip, dnsip ) &gt; 0 ) {
    // Display the results:
    Serial.print( &quot;My IP: &quot; );
    printIP( myip );
    Serial.println();

    Serial.print( &quot;Netmask: &quot; );
    printIP( mynetmask );
    Serial.println();

    Serial.print( &quot;DNS IP: &quot; );
    printIP( dnsip );
    Serial.println();

    Serial.print( &quot;GW IP: &quot; );
    printIP( gwip );
    Serial.println();
   
    digitalWrite( DHCPLED, HIGH);
    delayRate = 1000;
  } else {
    Serial.println(&quot;Failed to get IP address&quot;);
    delayRate = 200;
  }

}

// Output a ip address from buffer
void printIP( uint8_t *buf ) {
  for( int i = 0; i &lt; 4; i++ ) {
    Serial.print( buf[i], DEC );
    if( i&lt;3 )
      Serial.print( &quot;.&quot; );
  }
}

void loop(){
  digitalWrite( DHCPLED, HIGH);
  delay(delayRate);
  digitalWrite(DHCPLED, LOW);
  delay(delayRate);
}
&lt;/code&gt;

I have since switched to using EtherCard instead of EtherShield, and that made things a fair bit easier.</description>
		<content:encoded><![CDATA[<p>Did you remember to add &#8220;, 8&#8243; when initialising the ethernet library?<br />
I forgot to do that at first and I think that&#8217;s what happened to me too&#8230;</p>
<p>Instructions here: <a href="http://wiki.london.hackspace.org.uk/view/Nanode_Applications#Before_You_Start" rel="nofollow">http://wiki.london.hackspace.org.uk/view/Nanode_Applications#Before_You_Start</a></p>
<p>edit: actually, looks like that says &#8220;version 0&#8243;, not &#8220;version 7&#8243;.<br />
This code worked for me&#8230;<br />
<code><br />
/*<br />
 * Arduino ENC28J60 Ethernet shield/Nanode DHCP client test<br />
 */</p>
<p>#include "EtherShield.h"<br />
#include "NanodeMAC.h"</p>
<p>static uint8_t mymac[6] = { 0x54,0x55,0x58,0x12,0x34,0x56 };</p>
<p>static uint8_t myip[4] = { 0,0,0,0 };<br />
static uint8_t mynetmask[4] = { 0,0,0,0 };</p>
<p>// IP address of the host being queried to contact (IP of the first portion of the URL):<br />
static uint8_t websrvip[4] = { 0, 0, 0, 0 };</p>
<p>// Default gateway. The ip address of your DSL router. It can be set to the same as<br />
// websrvip the case where there is no default GW to access the<br />
// web server (=web server is on the same lan as this host)<br />
static uint8_t gwip[4] = { 0,0,0,0};</p>
<p>static uint8_t dnsip[4] = { 0,0,0,0 };<br />
static uint8_t dhcpsvrip[4] = { 0,0,0,0 };</p>
<p>#define DHCPLED 6</p>
<p>// listen port for tcp/www:<br />
#define MYWWWPORT 80</p>
<p>#define BUFFER_SIZE 750<br />
static uint8_t buf[BUFFER_SIZE+1];</p>
<p>EtherShield es=EtherShield();<br />
NanodeMAC mac( mymac );</p>
<p>// Programmable delay for flashing LED<br />
uint16_t delayRate = 0;</p>
<p>void setup() {</p>
<p>  Serial.begin(19200);<br />
  Serial.println("DHCP Client test");<br />
  pinMode( DHCPLED, OUTPUT);<br />
  digitalWrite( DHCPLED, HIGH);    // Turn it off</p>
<p>  for( int i=0; i&lt;6; i++ ) {<br />
    Serial.print( mymac[i], HEX );<br />
    Serial.print( i < 5 ? ":" : "" );<br />
  }<br />
  Serial.println();</p>
<p>  // Initialise SPI interface<br />
  es.ES_enc28j60SpiInit();</p>
<p>  // initialize enc28j60<br />
  Serial.println("Init ENC28J60");<br />
  es.ES_enc28j60Init(mymac,8);</p>
<p>  Serial.println("Init done");</p>
<p>  Serial.print( "ENC28J60 version " );<br />
  Serial.println( es.ES_enc28j60Revision(), HEX);<br />
  if( es.ES_enc28j60Revision() <= 0 ) {<br />
    Serial.println( "Failed to access ENC28J60");</p>
<p>    while(1);    // Just loop here<br />
  }</p>
<p>  Serial.println("Requesting IP Addresse");<br />
  // Get IP Address details<br />
  if( es.allocateIPAddress(buf, BUFFER_SIZE, mymac, 80, myip, mynetmask, gwip, dhcpsvrip, dnsip ) > 0 ) {<br />
    // Display the results:<br />
    Serial.print( "My IP: " );<br />
    printIP( myip );<br />
    Serial.println();</p>
<p>    Serial.print( "Netmask: " );<br />
    printIP( mynetmask );<br />
    Serial.println();</p>
<p>    Serial.print( "DNS IP: " );<br />
    printIP( dnsip );<br />
    Serial.println();</p>
<p>    Serial.print( "GW IP: " );<br />
    printIP( gwip );<br />
    Serial.println();</p>
<p>    digitalWrite( DHCPLED, HIGH);<br />
    delayRate = 1000;<br />
  } else {<br />
    Serial.println("Failed to get IP address");<br />
    delayRate = 200;<br />
  }</p>
<p>}</p>
<p>// Output a ip address from buffer<br />
void printIP( uint8_t *buf ) {<br />
  for( int i = 0; i < 4; i++ ) {<br />
    Serial.print( buf[i], DEC );<br />
    if( i&lt;3 )<br />
      Serial.print( "." );<br />
  }<br />
}</p>
<p>void loop(){<br />
  digitalWrite( DHCPLED, HIGH);<br />
  delay(delayRate);<br />
  digitalWrite(DHCPLED, LOW);<br />
  delay(delayRate);<br />
}<br />
</code></p>
<p>I have since switched to using EtherCard instead of EtherShield, and that made things a fair bit easier.</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Brighton Mini Maker Faire by Jon</title>
		<link>http://alexmole.co.uk/2011/09/brighton-mini-maker-faire/#comment-103</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Wed, 21 Dec 2011 16:36:58 +0000</pubDate>
		<guid isPermaLink="false">http://alexmole.co.uk/?p=59#comment-103</guid>
		<description>I cant get my Nanode to get an IP address.
I get ENC28J60 Version 7 when running the DHCP test, but th eethernet lights dont come on (although they do flash three times when I reset the Nanode).
Any ideas ?</description>
		<content:encoded><![CDATA[<p>I cant get my Nanode to get an IP address.<br />
I get ENC28J60 Version 7 when running the DHCP test, but th eethernet lights dont come on (although they do flash three times when I reset the Nanode).<br />
Any ideas ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ikea DIODER custom controller by molen</title>
		<link>http://alexmole.co.uk/2011/12/ikea-dioder-custom-controller/#comment-92</link>
		<dc:creator>molen</dc:creator>
		<pubDate>Thu, 15 Dec 2011 19:10:33 +0000</pubDate>
		<guid isPermaLink="false">http://alexmole.co.uk/?p=78#comment-92</guid>
		<description>Looks interesting, thanks!</description>
		<content:encoded><![CDATA[<p>Looks interesting, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ikea DIODER custom controller by Alexander Sadleir</title>
		<link>http://alexmole.co.uk/2011/12/ikea-dioder-custom-controller/#comment-91</link>
		<dc:creator>Alexander Sadleir</dc:creator>
		<pubDate>Thu, 15 Dec 2011 13:40:50 +0000</pubDate>
		<guid isPermaLink="false">http://alexmole.co.uk/?p=78#comment-91</guid>
		<description>If you need javascript color manipulation, look no further than chroma.js released this week https://github.com/gka/chroma.js</description>
		<content:encoded><![CDATA[<p>If you need javascript color manipulation, look no further than chroma.js released this week <a href="https://github.com/gka/chroma.js" rel="nofollow">https://github.com/gka/chroma.js</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ikea DIODER custom controller by leds by pearljames - Pearltrees</title>
		<link>http://alexmole.co.uk/2011/12/ikea-dioder-custom-controller/#comment-90</link>
		<dc:creator>leds by pearljames - Pearltrees</dc:creator>
		<pubDate>Thu, 15 Dec 2011 08:54:34 +0000</pubDate>
		<guid isPermaLink="false">http://alexmole.co.uk/?p=78#comment-90</guid>
		<description>[...] The hardware side was pretty straightforward – a MOSFET (Stp36nf06l) per channel to buffer the output from the microcontroller (the LEDs run at 12v). I just used the 12v adaptor that came with the DIODER, and ditched the Ikea controller and little junction box thingy. I did add a switch to kick the ethernet chip into a low power mode (because it saves ~350mA and it was easy )  Ikea DIODER custom controller &#124; molen, inc. [...]</description>
		<content:encoded><![CDATA[<p>[...] The hardware side was pretty straightforward – a MOSFET (Stp36nf06l) per channel to buffer the output from the microcontroller (the LEDs run at 12v). I just used the 12v adaptor that came with the DIODER, and ditched the Ikea controller and little junction box thingy. I did add a switch to kick the ethernet chip into a low power mode (because it saves ~350mA and it was easy )  Ikea DIODER custom controller | molen, inc. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ikea DIODER custom controller by JbLb</title>
		<link>http://alexmole.co.uk/2011/12/ikea-dioder-custom-controller/#comment-89</link>
		<dc:creator>JbLb</dc:creator>
		<pubDate>Thu, 15 Dec 2011 08:18:49 +0000</pubDate>
		<guid isPermaLink="false">http://alexmole.co.uk/?p=78#comment-89</guid>
		<description>Nice work !
for the jQuery’d webpage take a look on Andy blog http://blog.thiseldo.co.uk/?p=599 and code https://github.com/thiseldo/EtherShield_RESTduino . It&#039;s based on EtherShield library but Andy also work on Ethercard, he can probably help.</description>
		<content:encoded><![CDATA[<p>Nice work !<br />
for the jQuery’d webpage take a look on Andy blog <a href="http://blog.thiseldo.co.uk/?p=599" rel="nofollow">http://blog.thiseldo.co.uk/?p=599</a> and code <a href="https://github.com/thiseldo/EtherShield_RESTduino" rel="nofollow">https://github.com/thiseldo/EtherShield_RESTduino</a> . It&#8217;s based on EtherShield library but Andy also work on Ethercard, he can probably help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ikea DIODER custom controller by Adding HTTP to Ikea DIODER &#124; ro-Stire</title>
		<link>http://alexmole.co.uk/2011/12/ikea-dioder-custom-controller/#comment-86</link>
		<dc:creator>Adding HTTP to Ikea DIODER &#124; ro-Stire</dc:creator>
		<pubDate>Thu, 15 Dec 2011 04:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://alexmole.co.uk/?p=78#comment-86</guid>
		<description>[...] sent in a neat Ikea DIODER build that controls strings of RGB LEDs with HTTP [...]</description>
		<content:encoded><![CDATA[<p>[...] sent in a neat Ikea DIODER build that controls strings of RGB LEDs with HTTP [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ikea DIODER custom controller by Steve</title>
		<link>http://alexmole.co.uk/2011/12/ikea-dioder-custom-controller/#comment-85</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 14 Dec 2011 19:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://alexmole.co.uk/?p=78#comment-85</guid>
		<description>This guy did something like this too...

http://bit.ly/ueHkV1</description>
		<content:encoded><![CDATA[<p>This guy did something like this too&#8230;</p>
<p><a href="http://bit.ly/ueHkV1" rel="nofollow">http://bit.ly/ueHkV1</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ikea DIODER custom controller by Adding HTTP to Ikea DIODER &#171; HuntAll</title>
		<link>http://alexmole.co.uk/2011/12/ikea-dioder-custom-controller/#comment-84</link>
		<dc:creator>Adding HTTP to Ikea DIODER &#171; HuntAll</dc:creator>
		<pubDate>Wed, 14 Dec 2011 19:06:21 +0000</pubDate>
		<guid isPermaLink="false">http://alexmole.co.uk/?p=78#comment-84</guid>
		<description>[...] sent in a neat Ikea DIODER build that controls strings of RGB LEDs with HTTP [...]</description>
		<content:encoded><![CDATA[<p>[...] sent in a neat Ikea DIODER build that controls strings of RGB LEDs with HTTP [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ikea DIODER custom controller by Adding HTTP to Ikea DIODER &#187; Geko Geek</title>
		<link>http://alexmole.co.uk/2011/12/ikea-dioder-custom-controller/#comment-83</link>
		<dc:creator>Adding HTTP to Ikea DIODER &#187; Geko Geek</dc:creator>
		<pubDate>Wed, 14 Dec 2011 17:30:38 +0000</pubDate>
		<guid isPermaLink="false">http://alexmole.co.uk/?p=78#comment-83</guid>
		<description>[...] sent in a neat Ikea DIODER build that controls strings of RGB LEDs with HTTP [...]</description>
		<content:encoded><![CDATA[<p>[...] sent in a neat Ikea DIODER build that controls strings of RGB LEDs with HTTP [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

