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:
- Share sensor data with Pachube and grab remote sensor data, so you can effectively have both "local" and "remote" sensors.
- 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).
- EEML server template for Nuelectronics Ethernet shield for Arduino. (Requires direct access to the internet, either behind a firewall with port forwarding enabled on your router; or without a firewall).
- CSV server template for Nuelectronics Ethernet shield for Arduino.
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.
- EEML server template for Lady Ada ethernet shield and Arduino. This forum post may also help. (Requires direct access to the internet, either behind a firewall with port forwarding enabled on your router; or without a firewall).
- To update arduino data with the Lady Ada's Ethernet shield from behind a firewall: download this manual template for Arduino. This takes advantage of Pachube's "manual" update feature -- make sure to go back to your feed's page after updating to fill in data stream tags, etc.
Further information will appear here as the shields are tested further.

| Attachment | Size |
|---|---|
| eemlServer.zip | 73.21 KB |
| pachube_ada_manual.zip | 3.09 KB |
| simpleEEMLServer_0_2.zip | 3.79 KB |




Recent comments
4 days 22 hours ago
5 days 6 hours ago
5 days 7 hours ago
5 days 15 hours ago
6 days 22 hours ago
1 week 1 day ago
1 week 3 days ago
1 week 3 days ago
2 weeks 5 hours ago
2 weeks 6 hours ago