{"id":788,"date":"2011-02-08T17:43:59","date_gmt":"2011-02-08T16:43:59","guid":{"rendered":"http:\/\/www.ellentriek.net\/?p=788"},"modified":"2011-03-30T14:13:33","modified_gmt":"2011-03-30T13:13:33","slug":"arduino-processing-and-sensors","status":"publish","type":"post","link":"https:\/\/www.ellentriek.net\/arduino-processing-and-sensors\/","title":{"rendered":"Arduino, Processing and sensors 1"},"content":{"rendered":"

I want to visualize some date from real world sensors to my computer – they are self-made variable resistors.\u00a0 For this I need to flash software on the Arduino chip<\/a>, have the right libraries and use particular sketches in Processing<\/a>.<\/p>\n

Before you get to the Processing software part, you need to install Arduino. The instructions on how to do this are really good and they are here<\/a>:<\/p>\n

You can choose for adding Arduino to your repositories, or you can install the software manually.<\/p>\n

These introductory films<\/a> give you a clear insight into this construction, on how the microcontroller counts on a library and how the software depends on that too . They do however bluntly tell you that, when you work with Linux, you are on your own..\u00a0 Boo!<\/p>\n

The Arduino playground wiki<\/a> is a bit confusing, but it does complement the video and one of the errors I got kindly referred me to the Processing wiki<\/a>.<\/p>\n

Here I’ll go over some Linux (in my case Ubuntu) & Processing quirks:<\/p>\n

– Processing needs Java – if you are running Ubuntu: here<\/a> I found the best tips.<\/p>\n

– Obstacle number two to get Processing running, is making this executable:
\n
\"\"<\/a>
\n-> Click right on the file and choose properties<\/p>\n

\"\"<\/a><\/p>\n

Whereas you just have to choose the following – Allow executing file as a program:<\/p>\n

\"\"<\/a><\/p>\n

Now your Processing file is executable: just double click and choose Run (it is a bash script)<\/p>\n

– Apparently Compiz<\/a> – fancy 3D graphics\u00a0 – can give you trouble<\/a> – so it’s best to turn it off.<\/p>\n

– Proecssing needs Java -> you need to choose between OpenJDK<\/a> of Sun Java -> when you choose Open JDK, you always get this error when you start Processing. It does work!
\n
\"\"<\/a><\/p>\n

The next tutorial I’m following is Arduino meets Processing, physical computing and computer graphics,<\/a> which dates from 2005, so I’ll check the strength of their tutorial (6 years old seems like an eternity in tutorialland…).<\/del>
\n** Update ** This tutorial is outdated!
\nGo
Arduino, Processing and sensors 2<\/a> for more up-to-date links.<\/p>","protected":false},"excerpt":{"rendered":"

I want to visualize some date from real world sensors to my computer – they are self-made variable resistors.\u00a0 For this I need to flash software on the Arduino chip, have the right libraries and use particular sketches in Processing. Before you get to the Processing software part, you need to install Arduino. The instructions […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[14,33],"tags":[90,49,91],"_links":{"self":[{"href":"https:\/\/www.ellentriek.net\/wp-json\/wp\/v2\/posts\/788"}],"collection":[{"href":"https:\/\/www.ellentriek.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ellentriek.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ellentriek.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ellentriek.net\/wp-json\/wp\/v2\/comments?post=788"}],"version-history":[{"count":12,"href":"https:\/\/www.ellentriek.net\/wp-json\/wp\/v2\/posts\/788\/revisions"}],"predecessor-version":[{"id":848,"href":"https:\/\/www.ellentriek.net\/wp-json\/wp\/v2\/posts\/788\/revisions\/848"}],"wp:attachment":[{"href":"https:\/\/www.ellentriek.net\/wp-json\/wp\/v2\/media?parent=788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ellentriek.net\/wp-json\/wp\/v2\/categories?post=788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ellentriek.net\/wp-json\/wp\/v2\/tags?post=788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}