A Spin on previous Nanode + Pachube Sketch
Posted: September 23rd, 2011 | Author: Vic | Filed under: Uncategorized | 3 Comments »Due to popular demand I made some mods to the sketch I previously posted, which was receiving data from the Wicked Node and posting it to Pachube using the Nanode‘s excellent internet connectedness. The version I’m posting with in this blog entry has no dependence on the WickedReceiver library and instead posts the Nanode’s native Analog sensor input readings to Pachube.
As a technical note on this one, Pachube rate limits the number of posts it will accept and we were exploiting the transmit interval of the Wicked Node in the previous sketch to throttle our posts to Pachube. In this sketch we have to be a bit more explicit in our throttling using the timestamp technique.
Make sure you get the latest and greatest EtherShield Arduino library from Andrew Lindsay’s (@thiseldo) GitHub repository. It contains some important fixes with respect to TCP, DHCP, and DNS that I ran into in my initial development. Check out the code and it should make pretty good sense, all the settings are up top just like before. Enjoy!
Cheers, Vic
Download: PachubeV3_WithoutNode
Update: 12/14/2012 – The EtherShield library was retired earlier this year in favor of the EtherCard library. At some point I may get around to making another update to this post, but the EtherCard library already comes with a pretty easy to follow Cosm (the new name for Pachube) sketch. As always, feel free to post to our forum if you have questions.


[...] out this other blog post for a variation on the sketch that doesn’t use the Wicked Node, but instead posts ADC inputs [...]
thanks man, after days lookin for code like this, I founf this one who works, amazing job.
[...] So this code is the Sh1t, this: Victor Aprea, posted a working example about how to send Nanode analog’s sensors data to Pachube, here is the link [...]