scripting_inputSideComplete

Well it’s not completely true, the bulk of it is finished but if I get time there will be some adjustment later on. For now it is done.

download the scripts here

I continued to pursue the live link from the dsLib, but after a couple of emails from the man himself, it is apparent that there are a few technical problems that I am unable to overcome. So taking that into account, I am now going for a semi-live link.

The code for the arduino circuit has been updated to allow for a better delay time between sensor reads. This script is written in arduino/C++, but as it is a fairly simple and well documented operation is was quite easy to get it working properly. Unfortunately the arduino language doesn’t support export to a text based file natively (to my knowledge), so I have used processing as an in between interface for this task.

The processing script (also based on C++) establishes a connection with the serial port, reads the data flowing through it and when it has received 40 sets of data, dumps it to a csv text file that can be read by rhino. This script will hopefully evolve a little more to create multiple csv files, allowing for rhino to bed fed data in a stream like manner. At the moment it will overwrite the file each time.

The final script I have been working on is the beginnings of the rhino side of things. Presently I have created an endless loop that prints the rhino build information continuously until the snap control is turned on. It create a graceful way for the loop to end. This is going to be built upon to allow rhino to read the csv files and do something with it. At this stage I am aiming for rhino to create a series of objects and ‘animate’ them based on the input data.
Hopefully all goes well.


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply