November 13, 2007

Using SRF02 ultrasound ranger in VB


Lately I have been working with ultrasound rang finders. I’m using the very inexpensive Devantech SRF02 (approx 14 €). This ranger has an I2C interface ideal for microprocessors such as the Arduino or the BASIC Stamp. If you want to connect it directly to a PC you will need some sort of interface available on a standard computer. I´m using the Devantech USB-to-I2C board. This board is tiny, priced at approx. 27 € and can interface up to 16 ultrasound rangers. I’m working in VB.net (VS2005) and had to do some code-twisting to get it to work. You can download my srf02.vb module as a ZIP-file. Just add this module to your VS2005 project and call the function like this:
sonarping(comport As String, sf02_address As Byte)
The function returns the distance in centimeters as an integer. The default address of the SRF02 is &HE0.
Download the SRF02.vb module

Labels: , , , , , , , ,

May 10, 2007

Guide for using Windows-based computers in art pieces


During the last few years I have made several art installations using computers with Windows OS. If you plan to set up a piece in a gallery and have it running unattended, I have several hints for you. Download the guidelines as PDF

Labels: , , , ,

RSS