scripting_circuitry+arduino 01

The first part of my physical sensing link to rhino is the creation of the circuit and the beginnings of the arduino script. For the initial testing a simple circuit has been created using the arduino diecimila in conjunction with a bead board. At this stage the circuit has a light sensor and a LED.

The arduino script that powers the circuit is also relatively simple at this stage. It takes light readings from the light sensor, and turns the LED on in low light conditions and off when the opposite occurs. The script contains a threshold value that can be set between 0 and 1024 (the range of the light sensor) to allow for fine tuning in different light conditions. The magic starts to happen when the script outputs the sensor data to the serial port, allowing other application to access the data.

you can download the script here

At this stage the circuit and script are working correctly, and the next stage will be to create an open communications link between it and rhino. The additional vbscript commands that will allow this to happen are provided by Stylianos Dritsas, who has completed some work in this area previously. Hopefully I can get this up and running soon, as it is fairly pivotal for my project.


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