Arduino + ethernet shields: connecting to Pachube

To connect to Pachube using an Arduino with ethernet shield serving, we recommend using the official Arduino Ethernet shield.

Official Arduino Ethernet shield

Recommended code: Arduino/Ethernet/DHCP/Watchdog timer tutorial - this is a tutorial for creating a connection to Pachube, but requires you to use the watchdog timer, burn a new bootloader and bend a pin on your ethernet shield. It's the most reliable way to connect - but requires a little extra work.

If you want something more basic, click here for a couple of sketches for using Arduino Ethernet with Pachube - they require you to manually select an IP address but need no modification at all to the basic arduino and ethernet shield. The first can be used to share sensor data with Pachube and grab remote sensor data, so you can effectively have both "local" and "remote" sensors; and the second enables you to control Arduino Ethernet via a web page:

Other Ethernet shields for Arduino

If you are using one of the other ethernet shields, you can use one of the following Arduino sketches (at the moment these are examples for providing inputs to Pachube -- i.e. to share your sensor data -- not to use outputs from Pachube -- i.e. other people's sensors).

Nuelectronics Ethernet Shield

The Nuelectronics.com Ethernet Shield is very stable acting as a server, but because the ethernet code is not abstracted it can be complex to debug. (These require direct access to the internet, either behind a firewall with port forwarding enabled on your router; or without a firewall).

Lady Ada's Lantronix Ethernet shield

The Lady Ada's Ethernet shield is nice to work with because it acts almost like serial port, but it's a little more complex to set up: you need to telnet into it in order set configuration preferences.

Further information will appear here as the shields are tested further.

Arduino Ethernet with Pachube Arduino Ethernet with Pachube Arduino Ethernet with Pachube

AttachmentSize
eemlServer.zip73.21 KB
pachube_ada_manual.zip3.09 KB
simpleEEMLServer_0_2.zip3.79 KB